Mercurial > hg > vampy
comparison Makefile.osx @ 43:09e326f8114d
* Makefile bits
author | cannam |
---|---|
date | Mon, 05 Oct 2009 13:15:21 +0000 |
parents | |
children | 6c755f3e1173 |
comparison
equal
deleted
inserted
replaced
42:06bbfa2aa51a | 43:09e326f8114d |
---|---|
1 | |
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/ | |
3 | |
4 LDFLAGS := -install_name vampy.dylib -exported_symbols_list vamp-plugin.list ../vamp-plugin-sdk/libvamp-sdk.a -dynamiclib -lpython2.5 -lpthread | |
5 | |
6 default: vampy.dylib | |
7 all: vampy.dylib vampymod.so | |
8 | |
9 PyExtensionModule.a: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o | |
10 libtool -static $^ -o $@ | |
11 | |
12 # The standard python extension is .so (even on the Mac) | |
13 vampymod.so: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o | |
14 g++ -shared $^ -o $@ $(LDFLAGS) | |
15 | |
16 vampy.dylib: PyPlugin.o PyPlugScanner.o vampy-main.o Mutex.o PyTypeInterface.o PyExtensionModule.a PyExtensionManager.o | |
17 g++ -shared $^ -o $@ $(LDFLAGS) | |
18 | |
19 # Install plugin | |
20 # | |
21 LIBRARY_PREFIX :=/Library | |
22 INSTALL_DIR :=$(LIBRARY_PREFIX)/Audio/Plug-Ins/Vamp | |
23 PYEXAMPLE_DIR :='Example VamPy Plugins' | |
24 PLUGIN_NAME :=vampy | |
25 PLUGIN_EXT :=.dylib | |
26 | |
27 install: | |
28 mkdir -p $(INSTALL_DIR) | |
29 rm -f $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT) | |
30 cp $(PLUGIN_NAME)$(PLUGIN_EXT) $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT) | |
31 #cp $(PYEXAMPLE_DIR)/*.py $(INSTALL_DIR) | |
32 | |
33 installplug : install | |
34 cleanplug : clean | |
35 | |
36 clean: | |
37 rm *.o | |
38 rm *.a | |
39 rm *$(PLUGIN_EXT) | |
40 |