comparison Makefile @ 37:f8332b1acfc2

Adjust build for OSX
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 25 May 2016 14:49:44 +0100
parents 2d97883d20df
children 38780f15ac8d
comparison
equal deleted inserted replaced
36:1307d0d7e3ed 37:f8332b1acfc2
1 1
2 CXXFLAGS := -Wall -Werror -g -std=c++11 2 CXXFLAGS := -Wall -Werror -g -std=c++11
3 INCFLAGS := -Ivamp-plugin-sdk -Ijson -Icapnproto -I. 3 INCFLAGS := -Ivamp-plugin-sdk -Ijson -I/usr/local/include -Icapnproto -I.
4 LDFLAGS := -Lvamp-plugin-sdk -Wl,-Bstatic -lvamp-hostsdk -Wl,-Bdynamic -lcapnp -lkj -ldl 4
5 LDFLAGS := vamp-plugin-sdk/libvamp-hostsdk.a -L/usr/local/lib -lcapnp -lkj -ldl
5 6
6 #!!! todo: proper dependencies 7 #!!! todo: proper dependencies
7 8
8 all: bin/vamp-json-cli bin/vamp-json-to-capnp bin/vampipe-convert bin/vampipe-server 9 all: bin/vamp-json-cli bin/vamp-json-to-capnp bin/vampipe-convert bin/vampipe-server
9 10
21 22
22 capnproto/vamp.capnp.h: capnproto/vamp.capnp 23 capnproto/vamp.capnp.h: capnproto/vamp.capnp
23 capnp compile $< -oc++ 24 capnp compile $< -oc++
24 25
25 o/vamp.capnp.o: capnproto/vamp.capnp.c++ capnproto/vamp.capnp.h 26 o/vamp.capnp.o: capnproto/vamp.capnp.c++ capnproto/vamp.capnp.h
26 c++ $(CXXFLAGS) -c $< -o $@ 27 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
27 28
28 o/json11.o: json/json11/json11.cpp 29 o/json11.o: json/json11/json11.cpp
29 c++ $(CXXFLAGS) -c $< -o $@ 30 c++ $(CXXFLAGS) -c $< -o $@
30 31
31 o/vampipe-convert.o: utilities/vampipe-convert.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h 32 o/vampipe-convert.o: utilities/vampipe-convert.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h