c@8
|
1
|
c@55
|
2 CXXFLAGS := -Wall -Werror -g3 -std=c++11
|
c@37
|
3 INCFLAGS := -Ivamp-plugin-sdk -Ijson -I/usr/local/include -Icapnproto -I.
|
c@37
|
4
|
c@37
|
5 LDFLAGS := vamp-plugin-sdk/libvamp-hostsdk.a -L/usr/local/lib -lcapnp -lkj -ldl
|
c@8
|
6
|
c@32
|
7 #!!! todo: proper dependencies
|
c@32
|
8
|
c@60
|
9 all: bin/vampipe-convert bin/vampipe-server
|
c@23
|
10
|
c@27
|
11 bin/vampipe-convert: o/vampipe-convert.o o/json11.o o/vamp.capnp.o
|
c@23
|
12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
c@8
|
13
|
c@31
|
14 bin/vampipe-server: o/vampipe-server.o o/vamp.capnp.o
|
c@31
|
15 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
c@31
|
16
|
c@8
|
17 capnproto/vamp.capnp.h: capnproto/vamp.capnp
|
c@8
|
18 capnp compile $< -oc++
|
c@8
|
19
|
c@27
|
20 o/vamp.capnp.o: capnproto/vamp.capnp.c++ capnproto/vamp.capnp.h
|
c@37
|
21 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@27
|
22
|
c@27
|
23 o/json11.o: json/json11/json11.cpp
|
c@27
|
24 c++ $(CXXFLAGS) -c $< -o $@
|
c@27
|
25
|
c@27
|
26 o/vampipe-convert.o: utilities/vampipe-convert.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h
|
c@23
|
27 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@23
|
28
|
c@31
|
29 o/vampipe-server.o: utilities/vampipe-server.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h
|
c@31
|
30 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@31
|
31
|
c@8
|
32 test: all
|
c@60
|
33 test/test-vampipe-server.sh
|
c@8
|
34
|
c@8
|
35 clean:
|
c@27
|
36 rm -f */*.o capnproto/vamp.capnp.h capnproto/vamp.capnp.c++
|
c@8
|
37
|
c@8
|
38 distclean: clean
|
c@8
|
39 rm -f bin/*
|
c@8
|
40
|
c@70
|
41 # cancel implicit rule which otherwise could try to link %.capnp
|
c@70
|
42 %: %.o
|