comparison Makefile.cc-linux @ 0:8aa2e8b3a778 matthiasm-plugin

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