annotate Makefile @ 19:e85edf00a480 matthiasm-plugin

added linux lapack
author matthiasm
date Wed, 29 Sep 2010 13:07:33 +0000
parents 0f270f3d2131
children 1e2d0db15920
rev   line source
matthiasm@0 1 ## Skeleton Makefile for Vamp plugin builds using command-line tools.
matthiasm@0 2 ##
matthiasm@0 3 ## Rename this to Makefile, and edit as appropriate.
matthiasm@0 4 ## This Makefile WILL NOT WORK until you have edited it as described
matthiasm@0 5 ## below -- the Makefile as supplied does nothing useful at all!
matthiasm@0 6 ##
matthiasm@0 7 ## Various sets of options are provided, commented out -- just uncomment
matthiasm@0 8 ## (remove the '#' characters for) the set that most closely resembles
matthiasm@0 9 ## your own situation, and adjust to taste. Then run "make".
matthiasm@0 10 ##
matthiasm@0 11 ## (For Windows builds using MS Visual Studio, start instead with the
matthiasm@0 12 ## VampExamplePlugins project found in the build directory of the SDK.)
matthiasm@0 13
matthiasm@0 14
matthiasm@0 15 # Edit this to the base name of your plugin library
matthiasm@0 16 #
matthiasm@0 17 PLUGIN_LIBRARY_NAME = matthiasm
matthiasm@0 18
matthiasm@0 19 # Edit this to list one .o file for each .cpp file in your plugin project
matthiasm@0 20 #
matthiasm@1 21 PLUGIN_CODE_OBJECTS = NNLSChroma.o plugins.o nnls.o
matthiasm@0 22
matthiasm@0 23 # Edit this to the location of the Vamp plugin SDK, relative to your
matthiasm@0 24 # project directory
matthiasm@0 25 #
matthiasm@0 26 VAMP_SDK_DIR = ../vamp-plugin-sdk
matthiasm@0 27 # LAPACK_DIR = ../lapack
matthiasm@0 28 QMDSP_DIR = ../qm-dsp/build/osx/20091028
matthiasm@0 29 FFT_DIR = ../qm-dsp/dsp/transforms
matthiasm@1 30 NNLS_DIR = ../nnls_suvrit
matthiasm@9 31 BOOST_ROOT = /usr/local/boost_1_43_0
matthiasm@0 32
matthiasm@0 33
matthiasm@0 34 ## Uncomment these for an OS/X native build using command-line tools:
matthiasm@7 35 CXXFLAGS = -arch i386 -I$(VAMP_SDK_DIR) -I$(FFT_DIR) -I$(NNLS_DIR) -I$(BOOST_ROOT) -Wall -fPIC -g
matthiasm@0 36 PLUGIN_EXT = .dylib
matthiasm@0 37 PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
matthiasm@8 38 LDFLAGS = -fopenmp -g -m32 -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list -framework Accelerate
matthiasm@0 39
matthiasm@0 40
matthiasm@0 41 ## Uncomment these for an OS/X universal binary using command-line tools:
matthiasm@0 42
matthiasm@0 43 # CXXFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -I$(VAMP_SDK_DIR) -Wall -fPIC
matthiasm@0 44 # PLUGIN_EXT = .dylib
matthiasm@0 45 # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
matthiasm@0 46 # LDFLAGS = -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list
matthiasm@0 47
matthiasm@0 48
matthiasm@0 49 ## Uncomment these for Linux using the standard tools:
matthiasm@0 50
matthiasm@0 51 # CXXFLAGS = -I$(VAMP_SDK_DIR) -Wall -fPIC
matthiasm@0 52 # PLUGIN_EXT = .so
matthiasm@0 53 # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
matthiasm@0 54 # LDFLAGS = -shared -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map
matthiasm@0 55
matthiasm@0 56
matthiasm@0 57 ## Uncomment these for a cross-compile from Linux to Windows using MinGW:
matthiasm@0 58
matthiasm@0 59 # CXX = i586-mingw32msvc-g++
matthiasm@0 60 # CXXFLAGS = -I$(VAMP_SDK_DIR) -Wall
matthiasm@0 61 # PLUGIN_EXT = .dll
matthiasm@0 62 # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
matthiasm@0 63 # LDFLAGS = --static-libgcc -Wl,-soname=$(PLUGIN) -shared $(VAMP_SDK_DIR)/libvamp-sdk.a
matthiasm@0 64
matthiasm@0 65
matthiasm@0 66 ## Uncomment these for OpenSolaris using SunStudio compiler and GNU make:
matthiasm@0 67
matthiasm@0 68 # CXX = CC
matthiasm@0 69 # CXXFLAGS = -G -I$(VAMP_SDK_DIR) +w -KPIC
matthiasm@0 70 # PLUGIN_EXT = .so
matthiasm@0 71 # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
matthiasm@0 72 # LDFLAGS = -G -h$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Qoption ld -Mvamp-plugin.map
matthiasm@0 73
matthiasm@0 74
matthiasm@0 75
matthiasm@0 76 ## All of the above
matthiasm@0 77
matthiasm@0 78 $(PLUGIN): $(PLUGIN_CODE_OBJECTS)
matthiasm@0 79 $(CXX) -o $@ $^ $(LDFLAGS)
matthiasm@0 80
matthiasm@8 81 NNLSChroma.o: NNLSChroma.h
matthiasm@8 82 plugins.o: NNLSChroma.h
matthiasm@8 83
matthiasm@0 84 clean:
matthiasm@0 85 rm -f *.o
matthiasm@0 86