Chris@31
|
1
|
Chris@31
|
2 ## Skeleton Makefile for Vamp plugin builds using command-line tools.
|
Chris@31
|
3 ##
|
Chris@31
|
4 ## Rename this to Makefile, and edit as appropriate.
|
Chris@31
|
5 ## This Makefile WILL NOT WORK until you have edited it as described
|
Chris@31
|
6 ## below -- the Makefile as supplied does nothing useful at all!
|
Chris@31
|
7 ##
|
Chris@31
|
8 ## Various sets of options are provided, commented out -- just uncomment
|
Chris@31
|
9 ## (remove the '#' characters for) the set that most closely resembles
|
Chris@31
|
10 ## your own situation, and adjust to taste. Then run "make".
|
Chris@31
|
11 ##
|
Chris@31
|
12 ## (For Windows builds using MS Visual Studio, start instead with the
|
Chris@31
|
13 ## VampExamplePlugins project found in the build directory of the SDK.)
|
Chris@31
|
14
|
Chris@31
|
15
|
Chris@31
|
16 # Edit this to the base name of your plugin library
|
Chris@31
|
17 #
|
Chris@31
|
18 PLUGIN_LIBRARY_NAME = matthiasm
|
Chris@31
|
19
|
Chris@31
|
20 # Edit this to list one .o file for each .cpp file in your plugin project
|
Chris@31
|
21 #
|
Chris@31
|
22 PLUGIN_CODE_OBJECTS = chromamethods.o NNLSChroma.o plugins.o nnls.o
|
Chris@31
|
23
|
Chris@31
|
24 # Edit this to the location of the Vamp plugin SDK, relative to your
|
Chris@31
|
25 # project directory
|
Chris@31
|
26 #
|
Chris@31
|
27 VAMP_SDK_DIR = /work/vamp-plugin-sdk
|
Chris@31
|
28 QMDSP_DIR = /work/qm-dsp
|
Chris@31
|
29
|
Chris@31
|
30 CFLAGS = -I$(VAMP_SDK_DIR) -Wall -fPIC
|
Chris@31
|
31 CXXFLAGS = -I$(VAMP_SDK_DIR) -Wall -fPIC
|
Chris@31
|
32 PLUGIN_EXT = .so
|
Chris@31
|
33 PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
|
Chris@31
|
34 #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
|
Chris@31
|
35 LDFLAGS = -shared -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map $(QMDSP_DIR)/libqm-dsp.a
|
Chris@31
|
36
|
Chris@31
|
37
|
Chris@31
|
38
|
Chris@31
|
39
|
Chris@31
|
40 ## All of the above
|
Chris@31
|
41
|
Chris@31
|
42 $(PLUGIN): $(PLUGIN_CODE_OBJECTS)
|
Chris@31
|
43 $(CXX) -o $@ $^ $(LDFLAGS)
|
Chris@31
|
44
|
Chris@31
|
45 clean:
|
Chris@31
|
46 rm -f *.o
|
Chris@31
|
47
|