comparison Makefile @ 205:587e9691a44e

Merge pull request #4 from piper-audio/test/plugin-stub-configured-framing Test/plugin stub configured framing
author Chris Cannam <cannam@all-day-breakfast.com>
date Thu, 09 Feb 2017 12:54:00 +0000
parents e07c05ea8952
children f7045f7995bc
comparison
equal deleted inserted replaced
204:fbc61cf65c64 205:587e9691a44e
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
12 12
13 all: o bin bin/piper-convert bin/piper-vamp-simple-server 13 TEST_SRCS := test/vamp-client/tst_PluginStub.cpp
14
15 all: o bin bin/piper-convert bin/piper-vamp-simple-server bin/test-suite
14 16
15 bin: 17 bin:
16 mkdir bin 18 mkdir bin
17 19
18 o: 20 o:
21 bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o 23 bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o
22 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 24 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
23 25
24 bin/piper-vamp-simple-server: o/simple-server.o o/json11.o o/piper.capnp.o 26 bin/piper-vamp-simple-server: o/simple-server.o o/json11.o o/piper.capnp.o
25 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 27 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
28
29 bin/test-suite: test/main.cpp $(TEST_SRCS)
30 c++ $(CXXFLAGS) $(INCFLAGS) $< $(TEST_SRCS) -o $@ $(LDFLAGS)
31 bin/test-suite
26 32
27 o/piper.capnp.o: vamp-capnp/piper.capnp.c++ 33 o/piper.capnp.o: vamp-capnp/piper.capnp.c++
28 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ 34 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
29 35
30 vamp-capnp/piper.capnp.h: vamp-capnp/piper.capnp.c++ 36 vamp-capnp/piper.capnp.h: vamp-capnp/piper.capnp.c++
40 46
41 o/simple-server.o: vamp-server/simple-server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h 47 o/simple-server.o: vamp-server/simple-server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h
42 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ 48 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
43 49
44 test: all 50 test: all
51 bin/test-suite -s -d yes
45 vamp-server/test.sh 52 vamp-server/test.sh
46 53
47 clean: 54 clean:
48 rm -f */*.o 55 rm -f */*.o
49 56
50 distclean: clean 57 distclean: clean
51 rm -f bin/* 58 rm -rf bin/*
52 59
53 # cancel implicit rule which otherwise could try to link %.capnp 60 # cancel implicit rule which otherwise could try to link %.capnp
54 %: %.o 61 %: %.o