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