Mercurial > hg > vampy
comparison Makefile.linux @ 44:2fbb37d50be5
* Makefile updates
author | cannam |
---|---|
date | Mon, 05 Oct 2009 13:54:40 +0000 |
parents | Makefile.cc-linux@09e326f8114d |
children | 0f16923521bb |
comparison
equal
deleted
inserted
replaced
43:09e326f8114d | 44:2fbb37d50be5 |
---|---|
1 | |
2 CXXFLAGS := -DHAVE_NUMPY -O2 -Wall -I/usr/include/python2.6 -I/usr/lib/python2.6/dist-packages/numpy/core/include/numpy -fPIC | |
3 LDFLAGS := -shared -Wl,-Bstatic -lvamp-sdk -Wl,-Bdynamic -lpython2.6 -lpthread -Wl,--version-script=vamp-plugin.map | |
4 | |
5 default: vampy.so | |
6 all: vampy.so vampymod.so | |
7 | |
8 PyExtensionModule.a: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o | |
9 ar cr $@ $^ | |
10 | |
11 # The standard python extension is .so (even on the Mac) | |
12 vampymod.so: PyExtensionModule.o PyRealTime.o PyFeature.o PyParameterDescriptor.o PyOutputDescriptor.o PyFeatureSet.o | |
13 g++ $^ -o $@ $(LDFLAGS) | |
14 | |
15 vampy.so: PyPlugin.o PyPlugScanner.o vampy-main.o Mutex.o PyTypeInterface.o PyExtensionModule.a PyExtensionManager.o | |
16 g++ $^ -o $@ $(LDFLAGS) | |
17 | |
18 # Install plugin | |
19 # | |
20 INSTALL_DIR :=$(DESTDIR)/usr/local/lib/vamp | |
21 PYEXAMPLE_DIR :='Example VamPy Plugins' | |
22 PLUGIN_NAME :=vampy | |
23 PLUGIN_EXT :=.so | |
24 | |
25 install: | |
26 mkdir -p $(INSTALL_DIR) | |
27 rm -f $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT) | |
28 cp $(PLUGIN_NAME)$(PLUGIN_EXT) $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT) | |
29 | |
30 installplug : install | |
31 cleanplug : clean | |
32 | |
33 clean: | |
34 rm *.o | |
35 rm *.a | |
36 rm *$(PLUGIN_EXT) | |
37 |