annotate Makefile.osx.universal @ 46:af9c4cee95a8

VC++ fixes. Much of this is changing "and" to "&&". I had never realised until today that "and" is in fact a keyword in C++, albeit not one that has been there since the start, so this should compile (I eventually looked this up having been puzzled by how this code could ever build with any other compiler). However, despite its keywordness, "and" still doesn't seem to be acceptable to VC++. Possibly there's an option to change this, or one could use a macro -- but why not just stick with the token that compilers are known to like?
author cannam
date Mon, 05 Oct 2009 16:14:25 +0000
parents 91d6cfd22883
children 7e59caea821b
rev   line source
cannam@45 1
cannam@45 2 CXXFLAGS := -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -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@45 3
cannam@45 4 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 -lpython2.5 -lpthread
cannam@45 5
cannam@45 6 default: vampy.dylib
cannam@45 7 all: vampy.dylib vampymod.so
cannam@45 8
cannam@45 9 PyExtensionModule.a: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o
cannam@45 10 libtool -static $^ -o $@
cannam@45 11
cannam@45 12 # The standard python extension is .so (even on the Mac)
cannam@45 13 vampymod.so: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o
cannam@45 14 g++ -shared $^ -o $@ $(LDFLAGS)
cannam@45 15
cannam@45 16 vampy.dylib: PyPlugin.o PyPlugScanner.o vampy-main.o Mutex.o PyTypeInterface.o PyExtensionModule.a PyExtensionManager.o
cannam@45 17 g++ -shared $^ -o $@ $(LDFLAGS)
cannam@45 18
cannam@45 19 # Install plugin
cannam@45 20 #
cannam@45 21 LIBRARY_PREFIX :=/Library
cannam@45 22 INSTALL_DIR :=$(LIBRARY_PREFIX)/Audio/Plug-Ins/Vamp
cannam@45 23 PYEXAMPLE_DIR :='Example VamPy Plugins'
cannam@45 24 PLUGIN_NAME :=vampy
cannam@45 25 PLUGIN_EXT :=.dylib
cannam@45 26
cannam@45 27 install:
cannam@45 28 mkdir -p $(INSTALL_DIR)
cannam@45 29 rm -f $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT)
cannam@45 30 cp $(PLUGIN_NAME)$(PLUGIN_EXT) $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT)
cannam@45 31 #cp $(PYEXAMPLE_DIR)/*.py $(INSTALL_DIR)
cannam@45 32
cannam@45 33 installplug : install
cannam@45 34 cleanplug : clean
cannam@45 35
cannam@45 36 clean:
cannam@45 37 rm *.o
cannam@45 38 rm *.a
cannam@45 39 rm *$(PLUGIN_EXT)
cannam@45 40