]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/thrift/contrib/zeromq/Makefile
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / contrib / zeromq / Makefile
CommitLineData
f67539c2
TL
1THRIFT = thrift
2
3CXXFLAGS += -g3 -O0
4
5GENNAMES = Storage storage_types
6GENHEADERS = $(addsuffix .h, $(GENNAMES))
7GENSRCS = $(addsuffix .cpp, $(GENNAMES))
8GENOBJS = $(addsuffix .o, $(GENNAMES))
9
10PYLIBS = storage/__init__.py
11
12PROGS = test-client test-server test-sender test-receiver
13
14all: $(PYLIBS) $(PROGS)
15
16test-client: test-client.o TZmqClient.o $(GENOBJS)
17 $(CXX) $^ -o $@ -lzmq -lthrift
18test-server: test-server.o TZmqServer.o $(GENOBJS)
19 $(CXX) $^ -o $@ -lzmq -lthrift
20test-sender: test-sender.o TZmqClient.o $(GENOBJS)
21 $(CXX) $^ -o $@ -lzmq -lthrift
22test-receiver: test-receiver.o TZmqServer.o $(GENOBJS)
23 $(CXX) $^ -o $@ -lzmq -lthrift
24
25test-client.o test-server.o test-sender.o test-receiver.o: $(GENSRCS)
26
27storage/__init__.py: storage.thrift
28 $(RM) $(dir $@)
29 $(THRIFT) --gen py $<
30 mv gen-py/$(dir $@) .
31
32$(GENSRCS): storage.thrift
33 $(THRIFT) --gen cpp $<
34 mv $(addprefix gen-cpp/, $(GENSRCS) $(GENHEADERS)) .
35
36clean:
37 $(RM) -r *.o $(PROGS) storage $(GENSRCS) $(GENHEADERS)
38
39.PHONY: clean