Mercurial > hg > piper-cpp
view 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 |
line wrap: on
line source
VAMPSDK_DIR := ../vamp-plugin-sdk PIPER_DIR := ../piper CXXFLAGS := -Wall -Wextra -Werror -g3 -std=c++11 INCFLAGS := -I$(VAMPSDK_DIR) -I. -I/usr/local/include LDFLAGS := -L$(VAMPSDK_DIR) -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj LDFLAGS += -ldl all: o bin bin/piper-convert bin/piper-vamp-server bin: mkdir bin o: mkdir o bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) bin/piper-vamp-server: o/server.o o/json11.o o/piper.capnp.o c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) #vamp-capnp/piper.capnp.h: $(PIPER_DIR)/capnp/piper.capnp # capnp compile -oc++:vamp-capnp --src-prefix=$(PIPER_DIR)/capnp $< o/piper.capnp.o: vamp-capnp/piper.capnp.c++ vamp-capnp/piper.capnp.h c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ o/json11.o: json11/json11.cpp c++ $(CXXFLAGS) -c $< -o $@ o/convert.o: vamp-server/convert.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ o/server.o: vamp-server/server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ test: all test/test-server.sh clean: rm -f */*.o vamp-capnp/piper.capnp.h vamp-capnp/piper.capnp.c++ distclean: clean rm -f bin/* # cancel implicit rule which otherwise could try to link %.capnp %: %.o