fazekasgy@37
|
1
|
Chris@69
|
2 CXXFLAGS := -DHAVE_NUMPY \
|
Chris@69
|
3 -O2 -Wall -Werror -fno-strict-aliasing -fPIC \
|
Chris@69
|
4 -I/usr/include/python2.7 \
|
Chris@69
|
5 -I/usr/lib/python2.7/dist-packages/numpy/core/include
|
Chris@69
|
6
|
Chris@72
|
7 LDFLAGS := -shared -Wl,-Bstatic -lvamp-sdk -Wl,-Bdynamic -Wl,-z,defs -lpython2.7 -lpthread -Wl,--version-script=vamp-plugin.map -ldl
|
fazekasgy@37
|
8
|
fazekasgy@37
|
9 default: vampy.so
|
fazekasgy@37
|
10
|
Chris@71
|
11 vampy.so: PyRealTime.o PyFeature.o PyFeatureSet.o PyParameterDescriptor.o PyOutputDescriptor.o PyTypeConversions.o PyExtensionModule.o PyPlugin.o PyPlugScanner.o Mutex.o PyExtensionManager.o PyTypeInterface.o vampy-main.o
|
fazekasgy@37
|
12 g++ $^ -o $@ $(LDFLAGS)
|
fazekasgy@37
|
13
|
fazekasgy@37
|
14 # Install plugin
|
fazekasgy@37
|
15 #
|
cannam@43
|
16 INSTALL_DIR :=$(DESTDIR)/usr/local/lib/vamp
|
gyorgyf@62
|
17 PYEXAMPLE_DIR :='Example VamPy Plugins'
|
fazekasgy@37
|
18 PLUGIN_NAME :=vampy
|
cannam@43
|
19 PLUGIN_EXT :=.so
|
fazekasgy@37
|
20
|
fazekasgy@37
|
21 install:
|
fazekasgy@37
|
22 mkdir -p $(INSTALL_DIR)
|
fazekasgy@37
|
23 rm -f $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT)
|
fazekasgy@37
|
24 cp $(PLUGIN_NAME)$(PLUGIN_EXT) $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT)
|
fazekasgy@37
|
25
|
fazekasgy@37
|
26 installplug : install
|
fazekasgy@37
|
27 cleanplug : clean
|
Chris@71
|
28 depend:
|
Chris@71
|
29 makedepend -Y -fMakefile.linux *.cpp *.h
|
fazekasgy@37
|
30
|
fazekasgy@37
|
31 clean:
|
cannam@49
|
32 rm -f *.o
|
cannam@49
|
33 rm -f *.a
|
cannam@49
|
34 rm -f *$(PLUGIN_EXT)
|
fazekasgy@37
|
35
|
Chris@71
|
36 # DO NOT DELETE
|
Chris@71
|
37
|
Chris@71
|
38 Mutex.o: Mutex.h
|
Chris@71
|
39 PyExtensionManager.o: PyExtensionModule.h PyRealTime.h PyFeature.h
|
Chris@71
|
40 PyExtensionManager.o: PyFeatureSet.h PyParameterDescriptor.h
|
Chris@71
|
41 PyExtensionManager.o: PyOutputDescriptor.h PyExtensionManager.h Debug.h
|
Chris@71
|
42 PyExtensionModule.o: PyExtensionModule.h PyRealTime.h PyFeature.h
|
Chris@71
|
43 PyExtensionModule.o: PyFeatureSet.h PyParameterDescriptor.h
|
Chris@71
|
44 PyExtensionModule.o: PyOutputDescriptor.h Debug.h
|
Chris@71
|
45 PyFeature.o: PyExtensionModule.h PyRealTime.h PyFeature.h PyFeatureSet.h
|
Chris@71
|
46 PyFeature.o: PyParameterDescriptor.h PyOutputDescriptor.h
|
Chris@71
|
47 PyFeatureSet.o: PyFeatureSet.h
|
Chris@71
|
48 PyOutputDescriptor.o: PyOutputDescriptor.h PyTypeInterface.h
|
Chris@71
|
49 PyOutputDescriptor.o: PyExtensionModule.h PyRealTime.h PyFeature.h
|
Chris@71
|
50 PyOutputDescriptor.o: PyFeatureSet.h PyParameterDescriptor.h
|
Chris@71
|
51 PyParameterDescriptor.o: PyParameterDescriptor.h PyTypeInterface.h
|
Chris@71
|
52 PyParameterDescriptor.o: PyExtensionModule.h PyRealTime.h PyFeature.h
|
Chris@71
|
53 PyParameterDescriptor.o: PyFeatureSet.h PyOutputDescriptor.h
|
Chris@71
|
54 PyPlugin.o: PyPlugin.h PyExtensionModule.h PyRealTime.h PyFeature.h
|
Chris@71
|
55 PyPlugin.o: PyFeatureSet.h PyParameterDescriptor.h PyOutputDescriptor.h
|
Chris@71
|
56 PyPlugin.o: PyTypeInterface.h Mutex.h Debug.h
|
Chris@71
|
57 PyPlugScanner.o: PyPlugScanner.h
|
Chris@71
|
58 PyRealTime.o: PyRealTime.h
|
Chris@71
|
59 PyTypeConversions.o: PyTypeConversions.h PyRealTime.h PyExtensionModule.h
|
Chris@71
|
60 PyTypeConversions.o: PyFeature.h PyFeatureSet.h PyParameterDescriptor.h
|
Chris@71
|
61 PyTypeConversions.o: PyOutputDescriptor.h
|
Chris@71
|
62 PyTypeInterface.o: PyTypeInterface.h PyExtensionModule.h PyRealTime.h
|
Chris@71
|
63 PyTypeInterface.o: PyFeature.h PyFeatureSet.h PyParameterDescriptor.h
|
Chris@71
|
64 PyTypeInterface.o: PyOutputDescriptor.h
|
Chris@71
|
65 vampy-main.o: PyPlugScanner.h PyPlugin.h PyExtensionModule.h PyRealTime.h
|
Chris@71
|
66 vampy-main.o: PyFeature.h PyFeatureSet.h PyParameterDescriptor.h
|
Chris@71
|
67 vampy-main.o: PyOutputDescriptor.h PyTypeInterface.h Mutex.h
|
Chris@71
|
68 vampy-main.o: PyExtensionManager.h Debug.h
|
Chris@71
|
69 PyExtensionModule.o: PyRealTime.h PyFeature.h PyFeatureSet.h
|
Chris@71
|
70 PyExtensionModule.o: PyParameterDescriptor.h PyOutputDescriptor.h
|
Chris@71
|
71 PyPlugin.o: PyExtensionModule.h PyRealTime.h PyFeature.h PyFeatureSet.h
|
Chris@71
|
72 PyPlugin.o: PyParameterDescriptor.h PyOutputDescriptor.h PyTypeInterface.h
|
Chris@71
|
73 PyPlugin.o: Mutex.h
|
Chris@71
|
74 PyTypeInterface.o: PyExtensionModule.h PyRealTime.h PyFeature.h
|
Chris@71
|
75 PyTypeInterface.o: PyFeatureSet.h PyParameterDescriptor.h
|
Chris@71
|
76 PyTypeInterface.o: PyOutputDescriptor.h
|