| GENNAMES = Storage storage_types |
| GENHEADERS = $(addsuffix .h, $(GENNAMES)) |
| GENSRCS = $(addsuffix .cpp, $(GENNAMES)) |
| GENOBJS = $(addsuffix .o, $(GENNAMES)) |
| PYLIBS = storage/__init__.py |
| PROGS = test-client test-server test-sender test-receiver |
| test-client: test-client.o TZmqClient.o $(GENOBJS) |
| $(CXX) $^ -o $@ -lzmq -lthrift |
| test-server: test-server.o TZmqServer.o $(GENOBJS) |
| $(CXX) $^ -o $@ -lzmq -lthrift |
| test-sender: test-sender.o TZmqClient.o $(GENOBJS) |
| $(CXX) $^ -o $@ -lzmq -lthrift |
| test-receiver: test-receiver.o TZmqServer.o $(GENOBJS) |
| $(CXX) $^ -o $@ -lzmq -lthrift |
| test-client.o test-server.o test-sender.o test-receiver.o: $(GENSRCS) |
| storage/__init__.py: storage.thrift |
| $(GENSRCS): storage.thrift |
| mv $(addprefix gen-cpp/, $(GENSRCS) $(GENHEADERS)) . |
| $(RM) -r *.o $(PROGS) storage $(GENSRCS) $(GENHEADERS) |