matthiasm@0: matthiasm@0: ## Skeleton Makefile for Vamp plugin builds using command-line tools. matthiasm@0: ## matthiasm@0: ## Rename this to Makefile, and edit as appropriate. matthiasm@0: ## This Makefile WILL NOT WORK until you have edited it as described matthiasm@0: ## below -- the Makefile as supplied does nothing useful at all! matthiasm@0: ## matthiasm@0: ## Various sets of options are provided, commented out -- just uncomment matthiasm@0: ## (remove the '#' characters for) the set that most closely resembles matthiasm@0: ## your own situation, and adjust to taste. Then run "make". matthiasm@0: ## matthiasm@0: ## (For Windows builds using MS Visual Studio, start instead with the matthiasm@0: ## VampExamplePlugins project found in the build directory of the SDK.) matthiasm@0: matthiasm@0: matthiasm@0: # Edit this to the base name of your plugin library matthiasm@0: # matthiasm@0: PLUGIN_LIBRARY_NAME = matthiasm matthiasm@0: matthiasm@0: # Edit this to list one .o file for each .cpp file in your plugin project matthiasm@0: # matthiasm@0: PLUGIN_CODE_OBJECTS = NNLSChroma.o plugins.o coskernel-20-105-3-44100-16384-80.o matthiasm@0: matthiasm@0: # Edit this to the location of the Vamp plugin SDK, relative to your matthiasm@0: # project directory matthiasm@0: # matthiasm@0: VAMP_SDK_DIR = /work/vamp-plugin-sdk matthiasm@0: LAPACK_DIR = /work/qm-dsp/include matthiasm@0: QMDSP_DIR = /work/qm-dsp matthiasm@0: FFT_DIR = /work/qm-dsp/dsp/transforms matthiasm@0: NNLS_DIR = ../tsnnls/tsnnls matthiasm@0: matthiasm@0: matthiasm@0: matthiasm@0: ## Uncomment these for an OS/X native build using command-line tools: matthiasm@0: #CXXFLAGS = -I$(VAMP_SDK_DIR) -I$(LAPACK_DIR) -I$(FFT_DIR) -I$(NNLS_DIR) -Wall -fPIC -g matthiasm@0: #PLUGIN_EXT = .dylib matthiasm@0: #PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) matthiasm@0: #LDFLAGS = -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a $(QMDSP_DIR)/libqm-dsp.a ../tsnnls/tsnnls/.libs/libtsnnls.a -exported_symbols_list vamp-plugin.list -framework Accelerate matthiasm@0: matthiasm@0: matthiasm@0: ## Uncomment these for an OS/X universal binary using command-line tools: matthiasm@0: matthiasm@0: # CXXFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -I$(VAMP_SDK_DIR) -Wall -fPIC matthiasm@0: # PLUGIN_EXT = .dylib matthiasm@0: # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) matthiasm@0: # LDFLAGS = -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list matthiasm@0: matthiasm@0: matthiasm@0: ## Uncomment these for Linux using the standard tools: matthiasm@0: matthiasm@0: CXXFLAGS = -I$(VAMP_SDK_DIR) -I$(LAPACK_DIR) -I$(FFT_DIR) -I$(NNLS_DIR) -Wall -fPIC matthiasm@0: PLUGIN_EXT = .so matthiasm@0: PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) matthiasm@0: LDFLAGS = -shared -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map $(QMDSP_DIR)/libqm-dsp.a ../tsnnls/tsnnls/.libs/libtsnnls.a -llapack-3 matthiasm@0: matthiasm@0: matthiasm@0: ## Uncomment these for a cross-compile from Linux to Windows using MinGW: matthiasm@0: matthiasm@0: # CXX = i586-mingw32msvc-g++ matthiasm@0: # CXXFLAGS = -I$(VAMP_SDK_DIR) -Wall matthiasm@0: # PLUGIN_EXT = .dll matthiasm@0: # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) matthiasm@0: # LDFLAGS = --static-libgcc -Wl,-soname=$(PLUGIN) -shared $(VAMP_SDK_DIR)/libvamp-sdk.a matthiasm@0: matthiasm@0: matthiasm@0: ## Uncomment these for OpenSolaris using SunStudio compiler and GNU make: matthiasm@0: matthiasm@0: # CXX = CC matthiasm@0: # CXXFLAGS = -G -I$(VAMP_SDK_DIR) +w -KPIC matthiasm@0: # PLUGIN_EXT = .so matthiasm@0: # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) matthiasm@0: # LDFLAGS = -G -h$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Qoption ld -Mvamp-plugin.map matthiasm@0: matthiasm@0: matthiasm@0: matthiasm@0: ## All of the above matthiasm@0: matthiasm@0: $(PLUGIN): $(PLUGIN_CODE_OBJECTS) matthiasm@0: $(CXX) -o $@ $^ $(LDFLAGS) matthiasm@0: matthiasm@0: clean: matthiasm@0: rm -f *.o matthiasm@0: