view makefile @ 4:f19dfc9cbd91 tip

Win32 build added
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Wed, 22 Jun 2011 20:41:48 +0100
parents cd5e0ac31ff7
children
line wrap: on
line source
# Makefile for the Calcium Signal Analyser Vamp plugin

##  Skeleton Makefile for Vamp plugin builds using command-line tools.
##
##  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 "make".
##
##  (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 = vamp-calcium-signal-analyser

# Edit this to list one .o file for each .cpp file in your plugin project
#
PLUGIN_CODE_OBJECTS = CalciumSignalAnalyser.o CalciumSignalAnalyser_plugins.o 

# Edit this to the location of the Vamp plugin SDK, relative to your
# project directory
#

VAMP_SDK_DIR = ../vamp-plugin-sdk

# Directory of the qm-dsp files

QM_DSP_DIR = ../qm-dsp

##  Uncomment these for an OS/X native build using command-line tools:

CXXFLAGS = -I$(VAMP_SDK_DIR) -I$(QM_DSP_DIR) -Wall -fPIC
PLUGIN_EXT = .dylib
PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
LDFLAGS = -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a $(QM_DSP_DIR)/libqm-dsp.a -exported_symbols_list vamp-plugin.list

##  Uncomment these for an OS/X universal binary using command-line tools:

# CXXFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -I$(VAMP_SDK_DIR) -I$(QM_DSP_DIR) -Wall -fPIC
# PLUGIN_EXT = .dylib
# PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
# LDFLAGS = -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a $(QM_DSP_DIR)/libqm-dsp.a -exported_symbols_list vamp-plugin.list


##  Uncomment these for Linux using the standard tools:

# CXXFLAGS = -I$(VAMP_SDK_DIR) -I$(QM_DSP_DIR) -Wall -fPIC
# PLUGIN_EXT = .so
# PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
# LDFLAGS = -shared -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a $(QM_DSP_DIR)/libqm-dsp.a -Wl,--version-script=vamp-plugin.map


##  Uncomment these for a cross-compile from Linux to Windows using MinGW:

# MINGW_DIR = ../mingw-cross-env/usr/bin

# CXX = $(MINGW_DIR)/./i686-pc-mingw32-g++
# CXXFLAGS = -I$(VAMP_SDK_DIR) -I$(QM_DSP_DIR) -Wall 
# PLUGIN_EXT = .dll
# PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
# LDFLAGS = --static-libgcc -Wl,-soname=$(PLUGIN) -shared $(VAMP_SDK_DIR)/libvamp-sdk.a $(QM_DSP_DIR)/libqm-dsp.a


##  Uncomment these for OpenSolaris using SunStudio compiler and GNU make:

# CXX = CC
# CXXFLAGS = -G -I$(VAMP_SDK_DIR) -I$(QM_DSP_DIR) +w -KPIC
# PLUGIN_EXT = .so
# PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
# LDFLAGS = -G -h$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a $(QM_DSP_DIR)/libqm-dsp.a -Qoption ld -Mvamp-plugin.map



##  All of the above

$(PLUGIN): $(PLUGIN_CODE_OBJECTS)
	   $(CXX) -o $@ $^ $(LDFLAGS)

clean:
	rm -f *.o

# only relevant for OS/X

copy:
	sudo cp $(PLUGIN_LIBRARY_NAME).dylib /Library/Audio/Plug-Ins/Vamp