Mercurial > hg > vampy
annotate Makefile.osx.108 @ 76:d8eaa10e153e
Build fixes
author | Chris Cannam |
---|---|
date | Fri, 28 Nov 2014 15:28:31 +0000 |
parents | c3b1580fec04 |
children |
rev | line source |
---|---|
Chris@61 | 1 |
Chris@61 | 2 CXXFLAGS := -D_DEBUG -DHAVE_NUMPY -I../vamp-plugin-sdk -O2 -Wall -I/usr/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include |
Chris@61 | 3 |
Chris@61 | 4 LDFLAGS := -install_name vampy.dylib -exported_symbols_list vamp-plugin.list ../vamp-plugin-sdk/libvamp-sdk.a -dynamiclib -lpython2.7 -lpthread |
Chris@61 | 5 |
Chris@61 | 6 default: vampy.dylib |
Chris@61 | 7 all: vampy.dylib vampymod.so |
Chris@61 | 8 |
Chris@61 | 9 PyExtensionModule.a: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o |
Chris@61 | 10 libtool -static $^ -o $@ |
Chris@61 | 11 |
Chris@61 | 12 # The standard python extension is .so (even on the Mac) |
Chris@61 | 13 vampymod.so: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o |
Chris@61 | 14 g++ -shared $^ -o $@ $(LDFLAGS) |
Chris@61 | 15 |
Chris@61 | 16 vampy.dylib: PyPlugin.o PyPlugScanner.o vampy-main.o Mutex.o PyTypeInterface.o PyExtensionModule.a PyExtensionManager.o |
Chris@61 | 17 g++ -shared $^ -o $@ $(LDFLAGS) |
Chris@61 | 18 |
Chris@61 | 19 # Install plugin |
Chris@61 | 20 # |
Chris@61 | 21 LIBRARY_PREFIX :=/Library |
Chris@61 | 22 INSTALL_DIR :=$(LIBRARY_PREFIX)/Audio/Plug-Ins/Vamp |
Chris@61 | 23 PYEXAMPLE_DIR :='Example VamPy Plugins' |
Chris@61 | 24 PLUGIN_NAME :=vampy |
Chris@61 | 25 PLUGIN_EXT :=.dylib |
Chris@61 | 26 |
Chris@61 | 27 install: |
Chris@61 | 28 mkdir -p $(INSTALL_DIR) |
Chris@61 | 29 rm -f $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT) |
Chris@61 | 30 cp $(PLUGIN_NAME)$(PLUGIN_EXT) $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT) |
Chris@61 | 31 #cp $(PYEXAMPLE_DIR)/*.py $(INSTALL_DIR) |
Chris@61 | 32 |
Chris@61 | 33 installplug : install |
Chris@61 | 34 cleanplug : clean |
Chris@61 | 35 |
Chris@61 | 36 clean: |
Chris@61 | 37 rm *.o |
Chris@61 | 38 rm *.a |
Chris@61 | 39 rm *$(PLUGIN_EXT) |
Chris@61 | 40 |