Mercurial > hg > vampy-host
annotate Makefile @ 11:e5b575d69b01 lf-numpy-arrays
changed a comment
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 20 Mar 2013 11:07:24 +0000 |
parents | db72f98403b4 |
children |
rev | line source |
---|---|
Chris@0 | 1 |
Chris@1 | 2 PY_INCLUDE_PATH := /usr/include/python2.7 |
luis@8 | 3 NUMPY_INCLUDE_PATH := /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include |
Chris@1 | 4 |
Chris@4 | 5 CFLAGS := -O2 -fPIC -Wall -I$(PY_INCLUDE_PATH) -I$(NUMPY_INCLUDE_PATH) -I. |
luis@8 | 6 CXXFLAGS := -O2 -fPIC -Wall -I$(PY_INCLUDE_PATH) -I$(NUMPY_INCLUDE_PATH) -I. -I../vamp-plugin-sdk |
Chris@1 | 7 |
luis@8 | 8 LDFLAGS := -shared -L../vamp-plugin-sdk -lpython2.7 -lvamp-hostsdk |
Chris@1 | 9 #LDFLAGS := -dynamiclib -lpython2.5 /usr/lib/libvamp-hostsdk.a |
Chris@0 | 10 |
luis@8 | 11 all: pyRealTime.so vampyhost.so |
Chris@0 | 12 |
luis@8 | 13 pyRealTime.a: pyRealTime.o |
Chris@0 | 14 ar r $@ pyRealTime.o |
Chris@0 | 15 |
Chris@0 | 16 pyRealTime.so: pyRealTime.o |
luis@8 | 17 g++ -shared $^ -o $@ $(LDFLAGS) |
Chris@0 | 18 |
Chris@0 | 19 vampyhost.so: vampyhost.o pyRealTime.a |
Chris@0 | 20 g++ -o $@ -shared $^ $(LDFLAGS) |
Chris@0 | 21 |
luis@8 | 22 clean: |
Chris@0 | 23 rm *.o |
Chris@0 | 24 rm *.so |
luis@8 | 25 rm *.a |