c@75
|
1
|
c@75
|
2 VAMPSDK_DIR := ../vamp-plugin-sdk
|
c@75
|
3 PIPER_DIR := ../piper
|
c@8
|
4
|
c@103
|
5 CXXFLAGS := -Wall -Wextra -Werror -g3 -std=c++11
|
cannam@150
|
6 INCFLAGS := -Iext -I$(VAMPSDK_DIR) -I. -I/usr/local/include
|
c@116
|
7
|
c@118
|
8 #LDFLAGS := -L$(VAMPSDK_DIR) -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj
|
c@118
|
9 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -lcapnp -lkj
|
c@116
|
10
|
c@116
|
11 LDFLAGS += -ldl
|
c@8
|
12
|
dev@190
|
13 TEST_SRCS := test/vamp-client/tst_PluginStub.cpp
|
dev@190
|
14
|
dev@190
|
15 all: o bin bin/piper-convert bin/piper-vamp-simple-server bin/test-suite
|
c@32
|
16
|
c@75
|
17 bin:
|
c@75
|
18 mkdir bin
|
c@23
|
19
|
c@75
|
20 o:
|
c@75
|
21 mkdir o
|
c@75
|
22
|
c@75
|
23 bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o
|
c@23
|
24 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
c@8
|
25
|
c@125
|
26 bin/piper-vamp-simple-server: o/simple-server.o o/json11.o o/piper.capnp.o
|
c@31
|
27 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
dev@190
|
28
|
dev@190
|
29 bin/test-suite: test/main.cpp $(TEST_SRCS)
|
dev@190
|
30 c++ $(CXXFLAGS) $(INCFLAGS) $< $(TEST_SRCS) -o $@ $(LDFLAGS)
|
c@31
|
31
|
cannam@185
|
32 o/piper.capnp.o: vamp-capnp/piper.capnp.c++
|
c@37
|
33 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@27
|
34
|
cannam@185
|
35 vamp-capnp/piper.capnp.h: vamp-capnp/piper.capnp.c++
|
cannam@185
|
36
|
cannam@185
|
37 vamp-capnp/piper.capnp.c++: $(PIPER_DIR)/capnp/piper.capnp
|
cannam@185
|
38 capnpc --src-prefix=$(PIPER_DIR)/capnp -oc++:vamp-capnp $<
|
cannam@185
|
39
|
cannam@150
|
40 o/json11.o: ext/json11/json11.cpp
|
c@27
|
41 c++ $(CXXFLAGS) -c $< -o $@
|
c@27
|
42
|
c@75
|
43 o/convert.o: vamp-server/convert.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h
|
c@23
|
44 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@23
|
45
|
c@125
|
46 o/simple-server.o: vamp-server/simple-server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h
|
c@31
|
47 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@31
|
48
|
c@8
|
49 test: all
|
dev@198
|
50 bin/test-suite -s -d yes
|
cannam@150
|
51 vamp-server/test.sh
|
c@8
|
52
|
c@8
|
53 clean:
|
c@118
|
54 rm -f */*.o
|
c@8
|
55
|
c@8
|
56 distclean: clean
|
dev@190
|
57 rm -rf bin/*
|
c@8
|
58
|
c@70
|
59 # cancel implicit rule which otherwise could try to link %.capnp
|
c@70
|
60 %: %.o
|