comparison Makefile @ 116:d15cb1151d76

Add JSON support directly to the server. Had hoped to avoid this (using Capnp as canonical in the server and then converting externally as necessary) but it's just too useful for debugging purposes when bundled with client app
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 27 Oct 2016 11:39:41 +0100
parents 5a716f08e4be
children ff3fd8d1b2dc
comparison
equal deleted inserted replaced
115:5a716f08e4be 116:d15cb1151d76
1 1
2 VAMPSDK_DIR := ../vamp-plugin-sdk 2 VAMPSDK_DIR := ../vamp-plugin-sdk
3 PIPER_DIR := ../piper 3 PIPER_DIR := ../piper
4 4
5 CXXFLAGS := -Wall -Wextra -Werror -g3 -std=c++11 5 CXXFLAGS := -Wall -Wextra -Werror -g3 -std=c++11
6 INCFLAGS := -I$(VAMPSDK_DIR) -I. -I/usr/local/include -I../sv-dependency-builds/win32-mingw/include 6 INCFLAGS := -I$(VAMPSDK_DIR) -I. -I/usr/local/include
7 7
8 LDFLAGS := -L../sv-dependency-builds/win32-mingw/lib -L../../vamp-plugin-sdk -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj 8 LDFLAGS := -L$(VAMPSDK_DIR) -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj
9
10 LDFLAGS += -ldl
9 11
10 all: o bin bin/piper-convert bin/piper-vamp-server 12 all: o bin bin/piper-convert bin/piper-vamp-server
11 13
12 bin: 14 bin:
13 mkdir bin 15 mkdir bin
16 mkdir o 18 mkdir o
17 19
18 bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o 20 bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o
19 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 21 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
20 22
21 bin/piper-vamp-server: o/server.o o/piper.capnp.o 23 bin/piper-vamp-server: o/server.o o/json11.o o/piper.capnp.o
22 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 24 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
23 25
24 #vamp-capnp/piper.capnp.h: $(PIPER_DIR)/capnp/piper.capnp 26 #vamp-capnp/piper.capnp.h: $(PIPER_DIR)/capnp/piper.capnp
25 # capnp compile -oc++:vamp-capnp --src-prefix=$(PIPER_DIR)/capnp $< 27 # capnp compile -oc++:vamp-capnp --src-prefix=$(PIPER_DIR)/capnp $<
26 28
31 c++ $(CXXFLAGS) -c $< -o $@ 33 c++ $(CXXFLAGS) -c $< -o $@
32 34
33 o/convert.o: vamp-server/convert.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h 35 o/convert.o: vamp-server/convert.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h
34 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ 36 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
35 37
36 o/server.o: vamp-server/server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h 38 o/server.o: vamp-server/server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h
37 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ 39 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
38 40
39 test: all 41 test: all
40 test/test-server.sh 42 test/test-server.sh
41 43