mathieu@0: # Makefile for the Calcium Signal Analyser Vamp plugin mathieu@0: mathieu@0: ## Skeleton Makefile for Vamp plugin builds using command-line tools. mathieu@0: ## mathieu@0: ## Rename this to Makefile, and edit as appropriate. mathieu@0: ## This Makefile WILL NOT WORK until you have edited it as described mathieu@0: ## below -- the Makefile as supplied does nothing useful at all! mathieu@0: ## mathieu@0: ## Various sets of options are provided, commented out -- just uncomment mathieu@0: ## (remove the '#' characters for) the set that most closely resembles mathieu@0: ## your own situation, and adjust to taste. Then run "make". mathieu@0: ## mathieu@0: ## (For Windows builds using MS Visual Studio, start instead with the mathieu@0: ## VampExamplePlugins project found in the build directory of the SDK.) mathieu@0: mathieu@0: mathieu@0: # Edit this to the base name of your plugin library mathieu@0: # mathieu@0: PLUGIN_LIBRARY_NAME = vamp-calcium-signal-analyser mathieu@0: mathieu@0: # Edit this to list one .o file for each .cpp file in your plugin project mathieu@0: # mathieu@0: PLUGIN_CODE_OBJECTS = CalciumSignalAnalyser.o CalciumSignalAnalyser_plugins.o mathieu@0: mathieu@0: # Edit this to the location of the Vamp plugin SDK, relative to your mathieu@0: # project directory mathieu@0: # mathieu@0: mathieu@0: VAMP_SDK_DIR = ../vamp-plugin-sdk mathieu@0: mathieu@0: # Directory of the qm-dsp files mathieu@0: mathieu@0: QM_DSP_DIR = ../qm-dsp mathieu@0: mathieu@0: ## Uncomment these for an OS/X native build using command-line tools: mathieu@0: mathieu@0: CXXFLAGS = -I$(VAMP_SDK_DIR) -I$(QM_DSP_DIR) -Wall -fPIC mathieu@0: PLUGIN_EXT = .dylib mathieu@0: PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) mathieu@0: LDFLAGS = -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a $(QM_DSP_DIR)/libqm-dsp.a -exported_symbols_list vamp-plugin.list mathieu@0: mathieu@0: ## Uncomment these for an OS/X universal binary using command-line tools: mathieu@0: mathieu@0: # CXXFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -I$(VAMP_SDK_DIR) -I$(QM_DSP_DIR) -Wall -fPIC mathieu@0: # PLUGIN_EXT = .dylib mathieu@0: # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) mathieu@0: # LDFLAGS = -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a $(QM_DSP_DIR)/libqm-dsp.a -exported_symbols_list vamp-plugin.list mathieu@0: mathieu@0: mathieu@0: ## Uncomment these for Linux using the standard tools: mathieu@0: mathieu@0: # CXXFLAGS = -I$(VAMP_SDK_DIR) -I$(QM_DSP_DIR) -Wall -fPIC mathieu@0: # PLUGIN_EXT = .so mathieu@0: # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) mathieu@0: # LDFLAGS = -shared -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a $(QM_DSP_DIR)/libqm-dsp.a -Wl,--version-script=vamp-plugin.map mathieu@0: mathieu@0: mathieu@0: ## Uncomment these for a cross-compile from Linux to Windows using MinGW: mathieu@0: mathieu@0: # MINGW_DIR = ../mingw-cross-env/usr/bin mathieu@0: mathieu@0: # CXX = $(MINGW_DIR)/./i686-pc-mingw32-g++ mathieu@0: # CXXFLAGS = -I$(VAMP_SDK_DIR) -I$(QM_DSP_DIR) -Wall mathieu@0: # PLUGIN_EXT = .dll mathieu@0: # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) mathieu@0: # LDFLAGS = --static-libgcc -Wl,-soname=$(PLUGIN) -shared $(VAMP_SDK_DIR)/libvamp-sdk.a $(QM_DSP_DIR)/libqm-dsp.a mathieu@0: mathieu@0: mathieu@0: ## Uncomment these for OpenSolaris using SunStudio compiler and GNU make: mathieu@0: mathieu@0: # CXX = CC mathieu@0: # CXXFLAGS = -G -I$(VAMP_SDK_DIR) -I$(QM_DSP_DIR) +w -KPIC mathieu@0: # PLUGIN_EXT = .so mathieu@0: # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) mathieu@0: # LDFLAGS = -G -h$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a $(QM_DSP_DIR)/libqm-dsp.a -Qoption ld -Mvamp-plugin.map mathieu@0: mathieu@0: mathieu@0: mathieu@0: ## All of the above mathieu@0: mathieu@0: $(PLUGIN): $(PLUGIN_CODE_OBJECTS) mathieu@0: $(CXX) -o $@ $^ $(LDFLAGS) mathieu@0: mathieu@0: clean: mathieu@0: rm -f *.o mathieu@0: mathieu@0: # only relevant for OS/X mathieu@0: mathieu@0: copy: mathieu@0: sudo cp $(PLUGIN_LIBRARY_NAME).dylib /Library/Audio/Plug-Ins/Vamp