comparison Makefile @ 26:906d3705536d matthiasm-plugin

* Update Makefile
author Chris Cannam
date Thu, 21 Oct 2010 14:50:24 +0100
parents 1e2d0db15920
children 8edcf48f4031
comparison
equal deleted inserted replaced
25:6d9e1ee7b35a 26:906d3705536d
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 1 PLUGIN_LIBRARY_NAME = matthiasm
18 2
19 # Edit this to list one .o file for each .cpp file in your plugin project 3 # Edit this to list one .o file for each .cpp file in your plugin project
20 # 4 #
21 PLUGIN_CODE_OBJECTS = NNLSChroma.o plugins.o nnls.o 5 PLUGIN_CODE_OBJECTS = NNLSChroma.o plugins.o nnls.o
22 6
23 # Edit this to the location of the Vamp plugin SDK, relative to your 7 # Edit this to the location of the Vamp plugin SDK, relative to your
24 # project directory 8 # project directory
25 # 9 #
26 VAMP_SDK_DIR = ../vamp-plugin-sdk 10 VAMP_SDK_DIR = ../vamp-plugin-sdk
27 # LAPACK_DIR = ../lapack
28 QMDSP_DIR = ../qm-dsp/build/osx/20091028 11 QMDSP_DIR = ../qm-dsp/build/osx/20091028
29 FFT_DIR = ../qm-dsp/dsp/transforms 12 BOOST_ROOT = ../boost_1_44_0
30 NNLS_DIR = ../nnls_suvrit
31 BOOST_ROOT = /usr/local/boost_1_43_0
32 13
33 14
34 ## Uncomment these for an OS/X native build using command-line tools: 15 ## Uncomment these for an OS/X native build using command-line tools:
35 CXXFLAGS = -mmacosx-version-min=10.5 -arch i386 -I$(VAMP_SDK_DIR) -I$(FFT_DIR) -I$(NNLS_DIR) -I$(BOOST_ROOT) -Wall -fPIC -g 16 ARCHFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -arch ppc -arch i386
17 CFLAGS = $(ARCHFLAGS) -Wall -fPIC -g
18 CXXFLAGS = $(CFLAGS) -I$(VAMP_SDK_DIR) -I$(BOOST_ROOT)
36 PLUGIN_EXT = .dylib 19 PLUGIN_EXT = .dylib
37 PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) 20 PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
38 LDFLAGS = -mmacosx-version-min=10.5 -g -m32 -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list -framework Accelerate 21 LDFLAGS = $(ARCHFLAGS) -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list -framework Accelerate
39 22
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 23
78 $(PLUGIN): $(PLUGIN_CODE_OBJECTS) 24 $(PLUGIN): $(PLUGIN_CODE_OBJECTS)
79 $(CXX) -o $@ $^ $(LDFLAGS) 25 $(CXX) -o $@ $^ $(LDFLAGS)
80 26
81 NNLSChroma.o: NNLSChroma.h 27 NNLSChroma.o: NNLSChroma.h
82 plugins.o: NNLSChroma.h 28 plugins.o: NNLSChroma.h
83 29
30 nnls.o: nnls.c # not nnls.f
31
84 clean: 32 clean:
85 rm -f *.o 33 rm -f *.o
86 34