Mercurial > hg > vampy
view Makefile.osx.universal @ 53:7e59caea821b
* Make a better job of preloading Python, especially when it's in a
framework. Go for the Python file in the frameworks directory in
preference to any libpythonX.Y.dylib. Particularly, don't try to
preload any library without an absolute path until we've exhausted
all our framework possibilities (so as to avoid picking up an
ancient system library).
author | cannam |
---|---|
date | Fri, 09 Oct 2009 13:48:25 +0000 |
parents | 91d6cfd22883 |
children |
line wrap: on
line source
CXXFLAGS := -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -D_DEBUG -DHAVE_NUMPY -I../vamp-plugin-sdk -O2 -Wall -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include/ LDFLAGS := -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -install_name vampy.dylib -exported_symbols_list vamp-plugin.list ../vamp-plugin-sdk/libvamp-sdk.a -dynamiclib -framework Python -lpthread default: vampy.dylib all: vampy.dylib vampymod.so PyExtensionModule.a: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o libtool -static $^ -o $@ # The standard python extension is .so (even on the Mac) vampymod.so: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o g++ -dynamiclib $^ -o $@ $(LDFLAGS) vampy.dylib: PyPlugin.o PyPlugScanner.o vampy-main.o Mutex.o PyTypeInterface.o PyExtensionModule.a PyExtensionManager.o g++ -dynamiclib $^ -o $@ $(LDFLAGS) # Install plugin # LIBRARY_PREFIX :=/Library INSTALL_DIR :=$(LIBRARY_PREFIX)/Audio/Plug-Ins/Vamp PYEXAMPLE_DIR :='Example VamPy Plugins' PLUGIN_NAME :=vampy PLUGIN_EXT :=.dylib install: mkdir -p $(INSTALL_DIR) rm -f $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT) cp $(PLUGIN_NAME)$(PLUGIN_EXT) $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT) #cp $(PYEXAMPLE_DIR)/*.py $(INSTALL_DIR) installplug : install cleanplug : clean clean: rm *.o rm *.a rm *$(PLUGIN_EXT)