Mercurial > hg > piper-cpp
comparison Makefile @ 150:bf8e3e7dd7de
Move some things around, and add overall test script
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 20 Jan 2017 17:45:54 +0000 |
parents | ea06fae1567c |
children | 3eb00e5c76c4 |
comparison
equal
deleted
inserted
replaced
149:70bf40743d6a | 150:bf8e3e7dd7de |
---|---|
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 | 6 INCFLAGS := -Iext -I$(VAMPSDK_DIR) -I. -I/usr/local/include |
7 | 7 |
8 #LDFLAGS := -L$(VAMPSDK_DIR) -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj | 8 #LDFLAGS := -L$(VAMPSDK_DIR) -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj |
9 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -lcapnp -lkj | 9 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -lcapnp -lkj |
10 | 10 |
11 LDFLAGS += -ldl | 11 LDFLAGS += -ldl |
22 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) | 22 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) |
23 | 23 |
24 bin/piper-vamp-simple-server: o/simple-server.o o/json11.o o/piper.capnp.o | 24 bin/piper-vamp-simple-server: o/simple-server.o o/json11.o o/piper.capnp.o |
25 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) | 25 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) |
26 | 26 |
27 #vamp-capnp/piper.capnp.h: $(PIPER_DIR)/capnp/piper.capnp | |
28 # capnp compile -oc++:vamp-capnp --src-prefix=$(PIPER_DIR)/capnp $< | |
29 | |
30 o/piper.capnp.o: vamp-capnp/piper.capnp.c++ vamp-capnp/piper.capnp.h | 27 o/piper.capnp.o: vamp-capnp/piper.capnp.c++ vamp-capnp/piper.capnp.h |
31 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | 28 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ |
32 | 29 |
33 o/json11.o: json11/json11.cpp | 30 o/json11.o: ext/json11/json11.cpp |
34 c++ $(CXXFLAGS) -c $< -o $@ | 31 c++ $(CXXFLAGS) -c $< -o $@ |
35 | 32 |
36 o/convert.o: vamp-server/convert.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h | 33 o/convert.o: vamp-server/convert.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h |
37 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | 34 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ |
38 | 35 |
39 o/simple-server.o: vamp-server/simple-server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h | 36 o/simple-server.o: vamp-server/simple-server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h |
40 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | 37 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ |
41 | 38 |
42 test: all | 39 test: all |
43 test/test-server.sh | 40 vamp-server/test.sh |
44 | 41 |
45 clean: | 42 clean: |
46 rm -f */*.o | 43 rm -f */*.o |
47 | 44 |
48 distclean: clean | 45 distclean: clean |