Mercurial > hg > vamp-tempogram
view Makefile @ 26:ff6110f1144b
* Added an additional buffer in AutocorrelationProcessor::process() - possibly a little bit slower, but much easier to debug!
author | Carl Bussey <c.bussey@se10.qmul.ac.uk> |
---|---|
date | Wed, 20 Aug 2014 16:32:52 +0100 |
parents | fe23998968b4 |
children |
line wrap: on
line source
## Skeleton Makefile for Vamp plugin builds using command-line tools. ## This requires GNU make, which is what you get with OS/X, Linux, or ## MinGW/Cygwin on Windows. ## ## Rename this to Makefile, and edit as appropriate. ## This Makefile WILL NOT WORK until you have edited it as described ## below -- the Makefile as supplied does nothing useful at all! ## ## Various sets of options are provided, commented out -- just uncomment ## (remove the '#' characters for) the set that most closely resembles ## your own situation, and adjust to taste. Then run "gmake". ## ## (For Windows builds using MS Visual Studio, start instead with the ## VampExamplePlugins project found in the build directory of the SDK.) # Edit this to the base name of your plugin library # PLUGIN_LIBRARY_NAME := tempogram # Edit this to list the .cpp or .c files in your plugin project # PLUGIN_SOURCES := TempogramPlugin.cpp FIRFilter.cpp WindowFunction.cpp plugins.cpp NoveltyCurveProcessor.cpp SpectrogramProcessor.cpp AutocorrelationProcessor.cpp # Edit this to list the .h files in your plugin project # PLUGIN_HEADERS := TempogramPlugin.h FIRFilter.h WindowFunction.h NoveltyCurveProcessor.h SpectrogramProcessor.h AutocorrelationProcessor.h # Edit this to the location of the Vamp plugin SDK, relative to your # project directory # #VAMP_SDK_DIR := ../../vamp-plugin-sdk VAMP_SDK_DIR := /usr/local/include ## Uncomment these for an OS/X universal binary (32- and 64-bit Intel) ## supporting 10.5 or newer. Use this if you have OS/X 10.7 with the ## Xcode 4 command-line tools. CXX := g++ #-mmacosx-version-min=10.6 CXXFLAGS := -g -mmacosx-version-min=10.6 -arch x86_64 -I$(VAMP_SDK_DIR) -Wall -Wextra -fPIC PLUGIN_EXT := .dylib LDFLAGS := $(CXXFLAGS) -dynamiclib -install_name $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) /usr/local/lib/libvamp-sdk.a -exported_symbols_list vamp-plugin.list ## Uncomment these for an OS/X universal binary (PPC and 32- and ## 64-bit Intel) supporting 10.5 or newer. Use this if you have OS/X ## 10.6 with the Xcode 3 command-line tools. # CXXFLAGS := -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -arch i386 -arch x86_64 -arch ppc -I$(VAMP_SDK_DIR) -Wall -fPIC # PLUGIN_EXT := .dylib # LDFLAGS := $(CXXFLAGS) -dynamiclib -install_name $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list ## Uncomment these for an OS/X universal binary (PPC and 32- and ## 64-bit Intel) supporting 10.4 or newer. Use this if you have OS/X ## 10.4, 10.5 or 10.6 and you have the 10.4 SDK installed. # CXX := g++-4.0 # CXXFLAGS := -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -arch i386 -arch x86_64 -arch ppc -I$(VAMP_SDK_DIR) -Wall -fPIC # PLUGIN_EXT := .dylib # LDFLAGS := $(CXXFLAGS) -dynamiclib -install_name $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list ## Uncomment these for Linux using the standard tools: # CXXFLAGS := -I$(VAMP_SDK_DIR) -Wall -fPIC -g # PLUGIN_EXT := .so # LDFLAGS := -shared -Wl,-soname=$(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map ## Uncomment these for a cross-compile from Linux to Windows using MinGW: # CXX := i586-mingw32msvc-g++ # CXXFLAGS := -I$(VAMP_SDK_DIR) -Wall # PLUGIN_EXT := .dll # LDFLAGS := --static-libgcc -Wl,-soname=$(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) -shared $(VAMP_SDK_DIR)/libvamp-sdk.a ## Uncomment these for OpenSolaris using SunStudio compiler and GNU make: # CXX := CC # CXXFLAGS := -G -I$(VAMP_SDK_DIR) +w -KPIC # PLUGIN_EXT := .so # LDFLAGS := -G -h$(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -Qoption ld -Mvamp-plugin.map ## All of the above PLUGIN_OBJECTS := $(PLUGIN_SOURCES:.cpp=.o) PLUGIN_OBJECTS := $(PLUGIN_OBJECTS:.c=.o) $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT): $(PLUGIN_OBJECTS) $(CXX) -o $@ $^ $(LDFLAGS) $(PLUGIN_OBJECTS): $(PLUGIN_HEADERS) install: $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) if [ -e ~/Library/Audio/Plug-Ins/Vamp/$(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) ] ; then \ rm ~/Library/Audio/Plug-Ins/Vamp/$(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) ;\ fi ;\ cp $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) ~/Library/Audio/Plug-Ins/Vamp clean: rm -f *.o *.dylib