Mercurial > hg > piper-cpp
comparison Makefile @ 75:81e1c48e97f9
Rearrange and rename to Piper C++ structure
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 10 Oct 2016 16:31:09 +0100 |
parents | 6c908ee3ad3b |
children | 6fad5154778e |
comparison
equal
deleted
inserted
replaced
74:d45cfa25aaad | 75:81e1c48e97f9 |
---|---|
1 | |
2 VAMPSDK_DIR := ../vamp-plugin-sdk | |
3 PIPER_DIR := ../piper | |
1 | 4 |
2 CXXFLAGS := -Wall -Werror -g3 -std=c++11 | 5 CXXFLAGS := -Wall -Werror -g3 -std=c++11 |
3 INCFLAGS := -Ivamp-plugin-sdk -Ijson -I/usr/local/include -Icapnproto -I. | 6 INCFLAGS := -I$(VAMPSDK_DIR) -I. -I/usr/local/include |
4 | 7 |
5 LDFLAGS := vamp-plugin-sdk/libvamp-hostsdk.a -L/usr/local/lib -lcapnp -lkj -ldl | 8 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -L/usr/local/lib -lcapnp -lkj -ldl |
6 | 9 |
7 #!!! todo: proper dependencies | 10 all: o bin bin/piper-convert bin/piper-vamp-server |
8 | 11 |
9 all: bin/vampipe-convert bin/vampipe-server | 12 bin: |
13 mkdir bin | |
10 | 14 |
11 bin/vampipe-convert: o/vampipe-convert.o o/json11.o o/piper.capnp.o | 15 o: |
16 mkdir o | |
17 | |
18 bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o | |
12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) | 19 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) |
13 | 20 |
14 bin/vampipe-server: o/vampipe-server.o o/piper.capnp.o | 21 bin/piper-vamp-server: o/server.o o/piper.capnp.o |
15 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) | 22 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) |
16 | 23 |
17 capnproto/piper.capnp.h: capnproto/piper.capnp | 24 vamp-capnp/piper.capnp.h: $(PIPER_DIR)/capnp/piper.capnp |
18 capnp compile $< -oc++ | 25 capnp compile -oc++:vamp-capnp --src-prefix=$(PIPER_DIR)/capnp $< |
19 | 26 |
20 o/piper.capnp.o: capnproto/piper.capnp.c++ capnproto/piper.capnp.h | 27 o/piper.capnp.o: vamp-capnp/piper.capnp.c++ vamp-capnp/piper.capnp.h |
21 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | 28 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ |
22 | 29 |
23 o/json11.o: json/json11/json11.cpp | 30 o/json11.o: json11/json11.cpp |
24 c++ $(CXXFLAGS) -c $< -o $@ | 31 c++ $(CXXFLAGS) -c $< -o $@ |
25 | 32 |
26 o/vampipe-convert.o: utilities/vampipe-convert.cpp capnproto/piper.capnp.h capnproto/VampnProto.h json/VampJson.h | 33 o/convert.o: vamp-server/convert.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h |
27 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | 34 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ |
28 | 35 |
29 o/vampipe-server.o: utilities/vampipe-server.cpp capnproto/piper.capnp.h capnproto/VampnProto.h | 36 o/server.o: vamp-server/server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h |
30 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | 37 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ |
31 | 38 |
32 test: all | 39 test: all |
33 test/test-vampipe-server.sh | 40 test/test-server.sh |
34 | 41 |
35 clean: | 42 clean: |
36 rm -f */*.o capnproto/piper.capnp.h capnproto/piper.capnp.c++ | 43 rm -f */*.o vamp-capnp/piper.capnp.h vamp-capnp/piper.capnp.c++ |
37 | 44 |
38 distclean: clean | 45 distclean: clean |
39 rm -f bin/* | 46 rm -f bin/* |
40 | 47 |
41 # cancel implicit rule which otherwise could try to link %.capnp | 48 # cancel implicit rule which otherwise could try to link %.capnp |