Working through the weather update pub/sub example

This commit is contained in:
Dan Buch
2012-03-16 15:24:24 -04:00
parent c3731f19a7
commit b79dfcbc61
3 changed files with 29 additions and 7 deletions

View File

@@ -1,16 +1,13 @@
CFLAGS += -I. -I/usr/local/include
LDFLAGS += -lstdc++ -lpthread -luuid -lrt
LIBZMQ := /usr/local/lib/libzmq.a
all: hwserver hwclient
%:%.c
$(CC) $(CFLAGS) -o $@ $^ $(LIBZMQ) $(LDFLAGS)
hwserver: hwserver.c /usr/local/lib/libzmq.a
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
hwclient: hwclient.c /usr/local/lib/libzmq.a
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
all: hwserver hwclient wuserver
.PHONY: all