c@8
|
1
|
c@32
|
2 CXXFLAGS := -Wall -Werror -g -std=c++11
|
c@10
|
3 INCFLAGS := -Ivamp-plugin-sdk -Ijson -Icapnproto -I.
|
c@8
|
4 LDFLAGS := -Lvamp-plugin-sdk -Wl,-Bstatic -lvamp-hostsdk -Wl,-Bdynamic -lcapnp -lkj -ldl
|
c@8
|
5
|
c@32
|
6 #!!! todo: proper dependencies
|
c@32
|
7
|
c@31
|
8 all: bin/vamp-json-cli bin/vamp-json-to-capnp bin/vampipe-convert bin/vampipe-server
|
c@23
|
9
|
c@27
|
10 bin/vampipe-convert: o/vampipe-convert.o o/json11.o o/vamp.capnp.o
|
c@23
|
11 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
c@8
|
12
|
c@31
|
13 bin/vampipe-server: o/vampipe-server.o o/vamp.capnp.o
|
c@31
|
14 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
c@31
|
15
|
c@27
|
16 bin/vamp-json-to-capnp: o/json-to-capnp.o o/json11.o
|
c@8
|
17 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
c@8
|
18
|
c@27
|
19 bin/vamp-json-cli: o/json-cli.o o/json11.o
|
c@8
|
20 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
c@8
|
21
|
c@8
|
22 capnproto/vamp.capnp.h: capnproto/vamp.capnp
|
c@8
|
23 capnp compile $< -oc++
|
c@8
|
24
|
c@27
|
25 o/vamp.capnp.o: capnproto/vamp.capnp.c++ capnproto/vamp.capnp.h
|
c@27
|
26 c++ $(CXXFLAGS) -c $< -o $@
|
c@27
|
27
|
c@27
|
28 o/json11.o: json/json11/json11.cpp
|
c@27
|
29 c++ $(CXXFLAGS) -c $< -o $@
|
c@27
|
30
|
c@27
|
31 o/vampipe-convert.o: utilities/vampipe-convert.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h
|
c@23
|
32 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@23
|
33
|
c@31
|
34 o/vampipe-server.o: utilities/vampipe-server.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h
|
c@31
|
35 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@31
|
36
|
c@27
|
37 o/json-to-capnp.o: utilities/json-to-capnp.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h
|
c@8
|
38 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@8
|
39
|
c@27
|
40 o/json-cli.o: utilities/json-cli.cpp json/VampJson.h
|
c@8
|
41 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@8
|
42
|
c@8
|
43 test: all
|
c@8
|
44 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-cli.sh
|
c@8
|
45 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-to-capnp.sh
|
c@8
|
46
|
c@8
|
47 clean:
|
c@27
|
48 rm -f */*.o capnproto/vamp.capnp.h capnproto/vamp.capnp.c++
|
c@8
|
49
|
c@8
|
50 distclean: clean
|
c@8
|
51 rm -f bin/*
|
c@8
|
52
|