comparison Makefile.cc-linux @ 27:690bd9148467 matthiasm-plugin

* Split out some common code into chromamethods.cpp from NNLSChroma.cpp (the latter is destined to become the chroma plugin only, eventually)
author Chris Cannam
date Thu, 21 Oct 2010 16:34:58 +0100
parents 6d9e1ee7b35a
children 52b6dbd61553 e2b8b2a1cd9b
comparison
equal deleted inserted replaced
26:906d3705536d 27:690bd9148467
17 # 17 #
18 PLUGIN_LIBRARY_NAME = matthiasm 18 PLUGIN_LIBRARY_NAME = matthiasm
19 19
20 # Edit this to list one .o file for each .cpp file in your plugin project 20 # Edit this to list one .o file for each .cpp file in your plugin project
21 # 21 #
22 PLUGIN_CODE_OBJECTS = NNLSChroma.o plugins.o nnls.o 22 PLUGIN_CODE_OBJECTS = chromamethods.o NNLSChroma.o plugins.o nnls.o
23 23
24 # Edit this to the location of the Vamp plugin SDK, relative to your 24 # Edit this to the location of the Vamp plugin SDK, relative to your
25 # project directory 25 # project directory
26 # 26 #
27 VAMP_SDK_DIR = /work/vamp-plugin-sdk 27 VAMP_SDK_DIR = /work/vamp-plugin-sdk
28 #LAPACK_DIR = /work/qm-dsp/include
29 QMDSP_DIR = /work/qm-dsp 28 QMDSP_DIR = /work/qm-dsp
30 FFT_DIR = /work/qm-dsp/dsp/transforms
31 NNLS_DIR = ../tsnnls/tsnnls 29 NNLS_DIR = ../tsnnls/tsnnls
32 30
33 31
34 ## Uncomment these for an OS/X native build using command-line tools: 32 CFLAGS = -I$(VAMP_SDK_DIR) -I$(LAPACK_DIR) -I$(NNLS_DIR) -Wall -fPIC
35 #CXXFLAGS = -I$(VAMP_SDK_DIR) -I$(LAPACK_DIR) -I$(FFT_DIR) -I$(NNLS_DIR) -Wall -fPIC -g 33 CXXFLAGS = -I$(VAMP_SDK_DIR) -I$(LAPACK_DIR) -I$(NNLS_DIR) -Wall -fPIC
36 #PLUGIN_EXT = .dylib
37 #PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
38 #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
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 CFLAGS = -I$(VAMP_SDK_DIR) -I$(LAPACK_DIR) -I$(FFT_DIR) -I$(NNLS_DIR) -Wall -fPIC
52 CXXFLAGS = -I$(VAMP_SDK_DIR) -I$(LAPACK_DIR) -I$(FFT_DIR) -I$(NNLS_DIR) -Wall -fPIC
53 PLUGIN_EXT = .so 34 PLUGIN_EXT = .so
54 PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) 35 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 36 #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 LDFLAGS = -shared -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map $(QMDSP_DIR)/libqm-dsp.a 37 LDFLAGS = -shared -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map $(QMDSP_DIR)/libqm-dsp.a
57 38
58
59 ## Uncomment these for a cross-compile from Linux to Windows using MinGW:
60
61 # CXX = i586-mingw32msvc-g++
62 # CXXFLAGS = -I$(VAMP_SDK_DIR) -Wall
63 # PLUGIN_EXT = .dll
64 # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
65 # LDFLAGS = --static-libgcc -Wl,-soname=$(PLUGIN) -shared $(VAMP_SDK_DIR)/libvamp-sdk.a
66
67
68 ## Uncomment these for OpenSolaris using SunStudio compiler and GNU make:
69
70 # CXX = CC
71 # CXXFLAGS = -G -I$(VAMP_SDK_DIR) +w -KPIC
72 # PLUGIN_EXT = .so
73 # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
74 # LDFLAGS = -G -h$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Qoption ld -Mvamp-plugin.map
75 39
76 40
77 41
78 ## All of the above 42 ## All of the above
79 43