c@8
|
1
|
c@8
|
2 CXXFLAGS := -Wall -Werror -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@23
|
6 all: bin/vamp-json-cli bin/vamp-json-to-capnp bin/vampipe-convert
|
c@23
|
7
|
c@23
|
8 bin/vampipe-convert: utilities/vampipe-convert.o json/json11/json11.o
|
c@23
|
9 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
c@8
|
10
|
c@8
|
11 bin/vamp-json-to-capnp: utilities/json-to-capnp.o json/json11/json11.o
|
c@8
|
12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
c@8
|
13
|
c@8
|
14 bin/vamp-json-cli: utilities/json-cli.o json/json11/json11.o
|
c@8
|
15 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
c@8
|
16
|
c@8
|
17 capnproto/vamp.capnp.h: capnproto/vamp.capnp
|
c@8
|
18 capnp compile $< -oc++
|
c@8
|
19
|
c@23
|
20 utilities/vampipe-convert.o: utilities/vampipe-convert.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h
|
c@23
|
21 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@23
|
22
|
c@8
|
23 utilities/json-to-capnp.o: utilities/json-to-capnp.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h
|
c@8
|
24 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@8
|
25
|
c@8
|
26 utilities/json-cli.o: utilities/json-cli.cpp json/VampJson.h
|
c@8
|
27 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@8
|
28
|
c@8
|
29 test: all
|
c@8
|
30 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-cli.sh
|
c@8
|
31 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-to-capnp.sh
|
c@8
|
32
|
c@8
|
33 clean:
|
c@8
|
34 rm -f */*.o capnp/vamp.capnp.h capnp/vamp.capnp.c++
|
c@8
|
35
|
c@8
|
36 distclean: clean
|
c@8
|
37 rm -f bin/*
|
c@8
|
38
|