comparison Makefile @ 219:db929669e7d3

*Ahem* Rebuild for actual capnp v0.6. (Really should find a better way than committing these!) Also simplify Makefile a bit, remove o directory.
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 22 May 2017 08:57:02 +0100
parents a69724686f0b
children e0e3d9efa774
comparison
equal deleted inserted replaced
218:ea8994465322 219:db929669e7d3
8 #LDFLAGS := -L$(VAMPSDK_DIR) -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj 8 #LDFLAGS := -L$(VAMPSDK_DIR) -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj
9 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -lcapnp -lkj 9 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -lcapnp -lkj
10 10
11 LDFLAGS += -ldl 11 LDFLAGS += -ldl
12 12
13 COMMON_OBJS := ext/json11/json11.o vamp-capnp/piper.capnp.o
14
13 TEST_SRCS := test/main.cpp test/vamp-client/tst_PluginStub.cpp 15 TEST_SRCS := test/main.cpp test/vamp-client/tst_PluginStub.cpp
14 TEST_OBJS := $(TEST_SRCS:.cpp=.o) 16 TEST_OBJS := $(TEST_SRCS:.cpp=.o)
15 17
16 all: o bin bin/piper-convert bin/piper-vamp-simple-server bin/test-suite 18 all: bin bin/piper-convert bin/piper-vamp-simple-server bin/test-suite
17 19
18 bin: 20 bin:
19 mkdir bin 21 mkdir bin
20 22
21 o: 23 bin/piper-convert: vamp-server/convert.o $(COMMON_OBJS)
22 mkdir o
23
24 bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o
25 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 24 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
26 25
27 bin/piper-vamp-simple-server: o/simple-server.o o/json11.o o/piper.capnp.o 26 bin/piper-vamp-simple-server: vamp-server/simple-server.o $(COMMON_OBJS)
28 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 27 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
29 28
30 bin/test-suite: $(TEST_OBJS) 29 bin/test-suite: $(TEST_OBJS)
31 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 30 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
32 bin/test-suite 31 bin/test-suite
33 32
34 o/piper.capnp.o: vamp-capnp/piper.capnp.c++ 33 vamp-capnp/piper.capnp.o: vamp-capnp/piper.capnp.c++
35 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ 34 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
36 35
37 vamp-capnp/piper.capnp.h: vamp-capnp/piper.capnp.c++ 36 vamp-capnp/piper.capnp.h: vamp-capnp/piper.capnp.c++
38 37
39 vamp-capnp/piper.capnp.c++: $(PIPER_DIR)/capnp/piper.capnp 38 vamp-capnp/piper.capnp.c++: $(PIPER_DIR)/capnp/piper.capnp
40 capnpc --src-prefix=$(PIPER_DIR)/capnp -oc++:vamp-capnp $< 39 capnpc --src-prefix=$(PIPER_DIR)/capnp -oc++:vamp-capnp $<
41
42 o/json11.o: ext/json11/json11.cpp
43 c++ $(CXXFLAGS) -c $< -o $@
44
45 o/convert.o: vamp-server/convert.cpp
46 c++ $(CXXFLAGS) -c $< -o $@
47
48 o/simple-server.o: vamp-server/simple-server.cpp
49 c++ $(CXXFLAGS) -c $< -o $@
50 40
51 test: all 41 test: all
52 bin/test-suite -s -d yes 42 bin/test-suite -s -d yes
53 vamp-server/test.sh 43 vamp-server/test.sh
54 44