comparison Makefile @ 0:8aa2e8b3a778 matthiasm-plugin

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