view Makefile @ 29:e80caada79a8

* Remove nonportable and unnecessary opendir features test (originally inherited from the Vamp SDK's implementation of a similar plugin lookup, but it's been gone from the SDK for ages now) * Comment out some excessive debug output
author cannam
date Tue, 22 Sep 2009 15:20:44 +0000
parents 7648f3f2fa14
children 4f1894c7591b
line wrap: on
line source

CXXFLAGS	:= -I../vamp-plugin-sdk -O2 -Wall -I/usr/include/python2.5 
#-fvisibility=hidden

vampy.dylib:	PyPlugin.o PyPlugScanner.o pyvamp-main.o Mutex.o
	g++ -shared $^ -o $@ -L../vamp-plugin-sdk/vamp-sdk -lvamp-sdk -dynamiclib -lpython2.5 -lpthread

# Install plugin
#
LIBRARY_PREFIX		:=/Library
INSTALL_DIR			:=$(LIBRARY_PREFIX)/Audio/Plug-Ins/Vamp
PYEXAMPLE_DIR		:='Example VamPy Plugins'
PLUGIN_NAME			:=vampy
PLUGIN_EXT			:=.dylib
	
install:
	mkdir -p $(INSTALL_DIR)
	rm -f $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT)
	cp $(PLUGIN_NAME)$(PLUGIN_EXT) $(INSTALL_DIR)/$(PLUGIN_NAME)$(PLUGIN_EXT)	
	#cp $(PYEXAMPLE_DIR)/*.py $(INSTALL_DIR)
	
installplug : install
cleanplug : clean

clean:	
	rm *.o
	rm *$(PLUGIN_EXT)