Mercurial > hg > piper-cpp
comparison Makefile @ 201:e07c05ea8952
Run the tests after building.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Thu, 09 Feb 2017 12:04:58 +0000 |
parents | 94bab7bfbc78 |
children | f7045f7995bc |
comparison
equal
deleted
inserted
replaced
200:e2eb1ccf3deb | 201:e07c05ea8952 |
---|---|
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 TEST_SRCS := test/vamp-client/tst_PluginStub.cpp | 13 TEST_SRCS := test/vamp-client/tst_PluginStub.cpp |
14 | 14 |
15 all: o bin bin/piper-convert bin/piper-vamp-simple-server bin/test-suite | 15 all: o bin bin/piper-convert bin/piper-vamp-simple-server bin/test-suite |
16 | 16 |
17 bin: | 17 bin: |
18 mkdir bin | 18 mkdir bin |
26 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 |
27 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) | 27 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) |
28 | 28 |
29 bin/test-suite: test/main.cpp $(TEST_SRCS) | 29 bin/test-suite: test/main.cpp $(TEST_SRCS) |
30 c++ $(CXXFLAGS) $(INCFLAGS) $< $(TEST_SRCS) -o $@ $(LDFLAGS) | 30 c++ $(CXXFLAGS) $(INCFLAGS) $< $(TEST_SRCS) -o $@ $(LDFLAGS) |
31 bin/test-suite | |
31 | 32 |
32 o/piper.capnp.o: vamp-capnp/piper.capnp.c++ | 33 o/piper.capnp.o: vamp-capnp/piper.capnp.c++ |
33 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | 34 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ |
34 | 35 |
35 vamp-capnp/piper.capnp.h: vamp-capnp/piper.capnp.c++ | 36 vamp-capnp/piper.capnp.h: vamp-capnp/piper.capnp.c++ |