Discard stdout output that occurs in between our own outputs (e.g. from plugin)
author |
Chris Cannam <c.cannam@qmul.ac.uk> |
date |
Thu, 12 Jan 2017 08:49:26 +0000 |
parents |
ea06fae1567c |
children |
bf8e3e7dd7de |
rev |
line source |
c@75
|
1
|
c@75
|
2 VAMPSDK_DIR := ../vamp-plugin-sdk
|
c@75
|
3 PIPER_DIR := ../piper
|
c@8
|
4
|
c@103
|
5 CXXFLAGS := -Wall -Wextra -Werror -g3 -std=c++11
|
c@116
|
6 INCFLAGS := -I$(VAMPSDK_DIR) -I. -I/usr/local/include
|
c@116
|
7
|
c@118
|
8 #LDFLAGS := -L$(VAMPSDK_DIR) -L/usr/local/lib -lvamp-hostsdk -lcapnp -lkj
|
c@118
|
9 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -lcapnp -lkj
|
c@116
|
10
|
c@116
|
11 LDFLAGS += -ldl
|
c@8
|
12
|
c@125
|
13 all: o bin bin/piper-convert bin/piper-vamp-simple-server
|
c@32
|
14
|
c@75
|
15 bin:
|
c@75
|
16 mkdir bin
|
c@23
|
17
|
c@75
|
18 o:
|
c@75
|
19 mkdir o
|
c@75
|
20
|
c@75
|
21 bin/piper-convert: o/convert.o o/json11.o o/piper.capnp.o
|
c@23
|
22 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
c@8
|
23
|
c@125
|
24 bin/piper-vamp-simple-server: o/simple-server.o o/json11.o o/piper.capnp.o
|
c@31
|
25 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|
c@31
|
26
|
c@115
|
27 #vamp-capnp/piper.capnp.h: $(PIPER_DIR)/capnp/piper.capnp
|
c@115
|
28 # capnp compile -oc++:vamp-capnp --src-prefix=$(PIPER_DIR)/capnp $<
|
c@8
|
29
|
c@75
|
30 o/piper.capnp.o: vamp-capnp/piper.capnp.c++ vamp-capnp/piper.capnp.h
|
c@37
|
31 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@27
|
32
|
c@75
|
33 o/json11.o: json11/json11.cpp
|
c@27
|
34 c++ $(CXXFLAGS) -c $< -o $@
|
c@27
|
35
|
c@75
|
36 o/convert.o: vamp-server/convert.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h
|
c@23
|
37 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@23
|
38
|
c@125
|
39 o/simple-server.o: vamp-server/simple-server.cpp vamp-capnp/piper.capnp.h vamp-capnp/VampnProto.h vamp-json/VampJson.h
|
c@31
|
40 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
|
c@31
|
41
|
c@8
|
42 test: all
|
c@75
|
43 test/test-server.sh
|
c@8
|
44
|
c@8
|
45 clean:
|
c@118
|
46 rm -f */*.o
|
c@8
|
47
|
c@8
|
48 distclean: clean
|
c@8
|
49 rm -f bin/*
|
c@8
|
50
|
c@70
|
51 # cancel implicit rule which otherwise could try to link %.capnp
|
c@70
|
52 %: %.o
|