Mercurial > hg > vampy
annotate Makefile.cc-linux @ 35:2ba482378038 vampy2
* Fix compile error with VC++. I am totally at a loss to explain
why this should have compiled with any other compiler!
* Update VC project file.
This code does now build with VC++ without HAVE_NUMPY -- I haven't
installed Numpy yet
author | cannam |
---|---|
date | Thu, 24 Sep 2009 08:52:04 +0000 |
parents | c4da8d559872 |
children |
rev | line source |
---|---|
cannam@4 | 1 |
cannam@33 | 2 CXXFLAGS := -DHAVE_NUMPY -O2 -Wall -I/usr/include/python2.6 -I/usr/lib/python2.6/dist-packages/numpy/core/include/numpy -fPIC |
cannam@33 | 3 LDFLAGS := -shared -Wl,-Bstatic -lvamp-sdk -Wl,-Bdynamic -lpython2.6 -lpthread -Wl,--version-script=vamp-plugin.map |
cannam@4 | 4 |
cannam@33 | 5 default: vampy.so |
cannam@33 | 6 all: vampy.so vampymod.so |
cannam@33 | 7 |
cannam@33 | 8 PyExtensionModule.a: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o |
cannam@33 | 9 ar cr $@ $^ |
cannam@33 | 10 |
cannam@33 | 11 # The standard python extension is .so (even on the Mac) |
cannam@33 | 12 vampymod.so: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o |
cannam@33 | 13 g++ $^ -o $@ $(LDFLAGS) |
cannam@33 | 14 |
cannam@33 | 15 vampy.so: PyPlugin.o PyPlugScanner.o vampy-main.o Mutex.o PyTypeInterface.o PyExtensionModule.a |
cannam@33 | 16 g++ $^ -o $@ $(LDFLAGS) |
cannam@33 | 17 |
cannam@33 | 18 # Install plugin |
cannam@33 | 19 # |
cannam@33 | 20 LIBRARY_PREFIX :=/Library |
cannam@33 | 21 INSTALL_DIR :=$(LIBRARY_PREFIX)/Audio/Plug-Ins/Vamp |
cannam@33 | 22 PYEXAMPLE_DIR :='Example VamPy Plugins' |
cannam@33 | 23 PLUGIN_NAME :=vampy |
cannam@33 | 24 PLUGIN_EXT :=.dylib |
cannam@33 | 25 |
cannam@33 | 26 install: |
cannam@33 | 27 mkdir -p $(INSTALL_DIR) |
cannam@33 | 28 rm -f $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT) |
cannam@33 | 29 cp $(PLUGIN_NAME)$(PLUGIN_EXT) $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT) |
cannam@33 | 30 |
cannam@33 | 31 installplug : install |
cannam@33 | 32 cleanplug : clean |
cannam@4 | 33 |
cannam@4 | 34 clean: |
cannam@4 | 35 rm *.o |
cannam@33 | 36 rm *.a |
cannam@33 | 37 rm *$(PLUGIN_EXT) |
cannam@4 | 38 |