comparison Makefile @ 267:febeaa54bd81

Let's try std=c++1y, see if this gets us sensible behaviour on both Linux and Mac Travis builds (effectively we need C++11 on the former and C++14 on the latter)
author Chris Cannam <cannam@all-day-breakfast.com>
date Sat, 13 Oct 2018 12:32:53 +0100
parents 0e3a36ba8736
children
comparison
equal deleted inserted replaced
266:234f89708d75 267:febeaa54bd81
5 INCFLAGS := -Iext -Iext/sord -Iext/serd -I$(VAMPSDK_DIR) -I. -I/usr/local/include 5 INCFLAGS := -Iext -Iext/sord -Iext/serd -I$(VAMPSDK_DIR) -I. -I/usr/local/include
6 6
7 OPTFLAGS := -O3 -fPIC 7 OPTFLAGS := -O3 -fPIC
8 8
9 CFLAGS := -Wall -std=c99 $(OPTFLAGS) $(INCFLAGS) 9 CFLAGS := -Wall -std=c99 $(OPTFLAGS) $(INCFLAGS)
10 CXXFLAGS := -Wall -Wextra -Werror -Wno-error=unused-parameter -std=c++11 $(OPTFLAGS) $(INCFLAGS) 10 CXXFLAGS := -Wall -Wextra -Werror -Wno-error=unused-parameter -std=c++1y $(OPTFLAGS) $(INCFLAGS)
11
12 CXX ?= c++
11 13
12 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -L/usr/local/lib -lcapnp -lkj 14 LDFLAGS := $(VAMPSDK_DIR)/libvamp-hostsdk.a -L/usr/local/lib -lcapnp -lkj
13 15
14 LDFLAGS += -ldl 16 LDFLAGS += -ldl
15 17
22 24
23 bin: 25 bin:
24 mkdir bin 26 mkdir bin
25 27
26 bin/piper-convert: vamp-server/convert.o $(COMMON_OBJS) 28 bin/piper-convert: vamp-server/convert.o $(COMMON_OBJS)
27 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 29 $(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
28 30
29 bin/piper-vamp-simple-server: vamp-server/simple-server.o $(COMMON_OBJS) 31 bin/piper-vamp-simple-server: vamp-server/simple-server.o $(COMMON_OBJS)
30 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 32 $(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
31 33
32 bin/test-suite: $(TEST_OBJS) 34 bin/test-suite: $(TEST_OBJS)
33 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) 35 $(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
34 bin/test-suite 36 bin/test-suite
35 37
36 vamp-capnp/piper.capnp.o: vamp-capnp/piper.capnp.c++ 38 vamp-capnp/piper.capnp.o: vamp-capnp/piper.capnp.c++
37 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ 39 $(CXX) $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
38 40
39 vamp-capnp/piper.capnp.c++: vamp-capnp/piper.capnp.h 41 vamp-capnp/piper.capnp.c++: vamp-capnp/piper.capnp.h
40 42
41 vamp-capnp/piper.capnp.h: $(PIPER_DIR)/capnp/piper.capnp 43 vamp-capnp/piper.capnp.h: $(PIPER_DIR)/capnp/piper.capnp
42 capnpc --src-prefix=$(PIPER_DIR)/capnp -oc++:vamp-capnp $< 44 capnpc --src-prefix=$(PIPER_DIR)/capnp -oc++:vamp-capnp $<