view Makefile.linux @ 72:ffaa1fb3d7de vampyhost

inline is not a useful keyword with contemporary compilers
author Chris Cannam
date Mon, 24 Nov 2014 09:50:49 +0000
parents 40a01bb24209
children
line wrap: on
line source

CXXFLAGS	:= -DHAVE_NUMPY \
		-O2 -Wall -Werror -fno-strict-aliasing -fPIC \
		-I/usr/include/python2.7 \
		-I/usr/lib/python2.7/dist-packages/numpy/core/include

LDFLAGS		:= -shared -Wl,-Bstatic -lvamp-sdk -Wl,-Bdynamic -Wl,-z,defs -lpython2.7 -lpthread -Wl,--version-script=vamp-plugin.map -ldl

default: vampy.so 

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
	g++ $^ -o $@ $(LDFLAGS) 

# Install plugin
#
INSTALL_DIR			:=$(DESTDIR)/usr/local/lib/vamp
PYEXAMPLE_DIR		:='Example VamPy Plugins'
PLUGIN_NAME			:=vampy
PLUGIN_EXT			:=.so

install:
	mkdir -p $(INSTALL_DIR)
	rm -f $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT)
	cp $(PLUGIN_NAME)$(PLUGIN_EXT) $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT)

installplug : install
cleanplug : clean
depend:
	makedepend -Y -fMakefile.linux *.cpp *.h

clean:	
	rm -f *.o
	rm -f *.a
	rm -f *$(PLUGIN_EXT)

# DO NOT DELETE

Mutex.o: Mutex.h
PyExtensionManager.o: PyExtensionModule.h PyRealTime.h PyFeature.h
PyExtensionManager.o: PyFeatureSet.h PyParameterDescriptor.h
PyExtensionManager.o: PyOutputDescriptor.h PyExtensionManager.h Debug.h
PyExtensionModule.o: PyExtensionModule.h PyRealTime.h PyFeature.h
PyExtensionModule.o: PyFeatureSet.h PyParameterDescriptor.h
PyExtensionModule.o: PyOutputDescriptor.h Debug.h
PyFeature.o: PyExtensionModule.h PyRealTime.h PyFeature.h PyFeatureSet.h
PyFeature.o: PyParameterDescriptor.h PyOutputDescriptor.h
PyFeatureSet.o: PyFeatureSet.h
PyOutputDescriptor.o: PyOutputDescriptor.h PyTypeInterface.h
PyOutputDescriptor.o: PyExtensionModule.h PyRealTime.h PyFeature.h
PyOutputDescriptor.o: PyFeatureSet.h PyParameterDescriptor.h
PyParameterDescriptor.o: PyParameterDescriptor.h PyTypeInterface.h
PyParameterDescriptor.o: PyExtensionModule.h PyRealTime.h PyFeature.h
PyParameterDescriptor.o: PyFeatureSet.h PyOutputDescriptor.h
PyPlugin.o: PyPlugin.h PyExtensionModule.h PyRealTime.h PyFeature.h
PyPlugin.o: PyFeatureSet.h PyParameterDescriptor.h PyOutputDescriptor.h
PyPlugin.o: PyTypeInterface.h Mutex.h Debug.h
PyPlugScanner.o: PyPlugScanner.h
PyRealTime.o: PyRealTime.h
PyTypeConversions.o: PyTypeConversions.h PyRealTime.h PyExtensionModule.h
PyTypeConversions.o: PyFeature.h PyFeatureSet.h PyParameterDescriptor.h
PyTypeConversions.o: PyOutputDescriptor.h
PyTypeInterface.o: PyTypeInterface.h PyExtensionModule.h PyRealTime.h
PyTypeInterface.o: PyFeature.h PyFeatureSet.h PyParameterDescriptor.h
PyTypeInterface.o: PyOutputDescriptor.h
vampy-main.o: PyPlugScanner.h PyPlugin.h PyExtensionModule.h PyRealTime.h
vampy-main.o: PyFeature.h PyFeatureSet.h PyParameterDescriptor.h
vampy-main.o: PyOutputDescriptor.h PyTypeInterface.h Mutex.h
vampy-main.o: PyExtensionManager.h Debug.h
PyExtensionModule.o: PyRealTime.h PyFeature.h PyFeatureSet.h
PyExtensionModule.o: PyParameterDescriptor.h PyOutputDescriptor.h
PyPlugin.o: PyExtensionModule.h PyRealTime.h PyFeature.h PyFeatureSet.h
PyPlugin.o: PyParameterDescriptor.h PyOutputDescriptor.h PyTypeInterface.h
PyPlugin.o: Mutex.h
PyTypeInterface.o: PyExtensionModule.h PyRealTime.h PyFeature.h
PyTypeInterface.o: PyFeatureSet.h PyParameterDescriptor.h
PyTypeInterface.o: PyOutputDescriptor.h