annotate Makefile.octave @ 19:e85edf00a480 matthiasm-plugin

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