Mercurial > hg > vampy
annotate Makefile.cc-osol @ 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 | c905122f79e7 |
children |
rev | line source |
---|---|
cannam@34 | 1 |
cannam@34 | 2 CXX := CC |
cannam@34 | 3 CXXFLAGS := -I/usr/local/include -G -DHAVE_NUMPY -O2 +w -I/usr/include/python2.6 -I/usr/lib/python2.6/site-packages/numpy/core/include/numpy -KPIC |
cannam@34 | 4 LDFLAGS := -L/usr/local/lib -G -Bstatic -lvamp-sdk -Bdynamic -lpython2.6 -lpthread -Qoption ld -Mvamp-plugin.map |
cannam@34 | 5 |
cannam@34 | 6 default: vampy.so |
cannam@34 | 7 all: vampy.so vampymod.so |
cannam@34 | 8 |
cannam@34 | 9 PyExtensionModule.a: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o |
cannam@34 | 10 ar cr $@ $^ |
cannam@34 | 11 |
cannam@34 | 12 # The standard python extension is .so (even on the Mac) |
cannam@34 | 13 vampymod.so: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o |
cannam@34 | 14 $(CXX) $^ -o $@ $(LDFLAGS) |
cannam@34 | 15 |
cannam@34 | 16 vampy.so: PyPlugin.o PyPlugScanner.o vampy-main.o Mutex.o PyTypeInterface.o PyExtensionModule.a |
cannam@34 | 17 $(CXX) $^ -o $@ $(LDFLAGS) |
cannam@34 | 18 |
cannam@34 | 19 # Install plugin |
cannam@34 | 20 # |
cannam@34 | 21 LIBRARY_PREFIX :=/Library |
cannam@34 | 22 INSTALL_DIR :=$(LIBRARY_PREFIX)/Audio/Plug-Ins/Vamp |
cannam@34 | 23 PYEXAMPLE_DIR :='Example VamPy Plugins' |
cannam@34 | 24 PLUGIN_NAME :=vampy |
cannam@34 | 25 PLUGIN_EXT :=.so |
cannam@34 | 26 |
cannam@34 | 27 install: |
cannam@34 | 28 mkdir -p $(INSTALL_DIR) |
cannam@34 | 29 rm -f $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT) |
cannam@34 | 30 cp $(PLUGIN_NAME)$(PLUGIN_EXT) $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT) |
cannam@34 | 31 |
cannam@34 | 32 installplug : install |
cannam@34 | 33 cleanplug : clean |
cannam@34 | 34 |
cannam@34 | 35 clean: |
cannam@34 | 36 rm -f *.o |
cannam@34 | 37 rm -f *.a |
cannam@34 | 38 rm -f *$(PLUGIN_EXT) |
cannam@34 | 39 |