]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/thrift/contrib/async-test/Makefile
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / contrib / async-test / Makefile
CommitLineData
f67539c2
TL
1THRIFT = thrift
2CXXFLAGS = `pkg-config --cflags thrift thrift-nb` -levent
3LDLIBS = `pkg-config --libs thrift thrift-nb` -levent
4CXXFLAGS += -g -O0
5
6GENNAMES = Aggr aggr_types
7GENHEADERS = $(addsuffix .h, $(GENNAMES))
8GENSRCS = $(addsuffix .cpp, $(GENNAMES))
9GENOBJS = $(addsuffix .o, $(GENNAMES))
10
11PYLIBS = aggr/__init__.py
12
13PROGS = test-server
14
15all: $(PYLIBS) $(PROGS)
16
17test-server: test-server.o $(GENOBJS)
18
19test-server.o: $(GENSRCS)
20
21aggr/__init__.py: aggr.thrift
22 $(RM) $(dir $@)
23 $(THRIFT) --gen py:newstyle $<
24 mv gen-py/$(dir $@) .
25
26$(GENSRCS): aggr.thrift
27 $(THRIFT) --gen cpp:cob_style $<
28 mv $(addprefix gen-cpp/, $(GENSRCS) $(GENHEADERS)) .
29
30clean:
31 $(RM) -r *.o $(PROGS) $(GENSRCS) $(GENHEADERS) gen-* aggr
32
33.PHONY: clean