Chris@3
|
1
|
Chris@3
|
2 ## Makefile for Vamp plugin builds using command-line tools.
|
Chris@3
|
3 ##
|
Chris@3
|
4 ## This file defines all of the system-independent information about
|
Chris@3
|
5 ## your project: the list of source files, plugin library name, etc.
|
Chris@3
|
6 ## Edit this file to make sure it has all the right information.
|
Chris@3
|
7 ##
|
Chris@3
|
8 ## This file does not define the system-specific stuff such as which
|
Chris@3
|
9 ## compiler to use -- that goes into Makefile.osx, Makefile.mingw32,
|
Chris@3
|
10 ## Makefile.linux etc. Those files all include this file, so that
|
Chris@3
|
11 ## they all have a consistent set of project data.
|
Chris@3
|
12 ##
|
Chris@3
|
13 ## To build the plugin project, type
|
Chris@3
|
14 ##
|
Chris@3
|
15 ## $ gmake -f Makefile.osx
|
Chris@3
|
16 ##
|
Chris@3
|
17 ## or whatever the equivalent filename suffix is for your platform.
|
Chris@3
|
18 ##
|
Chris@3
|
19 ## This requires GNU make, which is what you get with OS/X, Linux, or
|
Chris@3
|
20 ## MinGW/Cygwin on Windows.
|
Chris@3
|
21 ##
|
Chris@3
|
22 ## (For Windows builds using MS Visual Studio, start instead with the
|
Chris@3
|
23 ## VampExamplePlugins project found in the build directory of the SDK.)
|
Chris@3
|
24
|
Chris@3
|
25
|
Chris@3
|
26 # Edit this to the base name of your plugin library
|
Chris@3
|
27 #
|
Chris@3
|
28 PLUGIN_LIBRARY_NAME := fanchirp
|
Chris@3
|
29
|
Chris@3
|
30 # Edit this to list the .cpp or .c files in your plugin project
|
Chris@3
|
31 #
|
Chris@3
|
32 PLUGIN_SOURCES := FChTransformF0gram.cpp FChTransformUtils.cpp plugins.cpp
|
Chris@3
|
33
|
Chris@3
|
34 # Edit this to list the .h files in your plugin project
|
Chris@3
|
35 #
|
Chris@3
|
36 PLUGIN_HEADERS := FChTransformF0gram.h FChTransformUtils.h
|
Chris@3
|
37
|
Chris@3
|
38
|
Chris@3
|
39 ## Normally you should not edit anything below this line
|
Chris@3
|
40
|
Chris@3
|
41 SRC_DIR := .
|
Chris@3
|
42
|
Chris@3
|
43 # Defaults, overridden from the platform-specific Makefile
|
Chris@26
|
44 VAMPSDK_DIR ?= ext/vamp-plugin-sdk
|
Chris@3
|
45 PLUGIN_EXT ?= .so
|
Chris@3
|
46 CXX ?= g++
|
Chris@3
|
47 CC ?= gcc
|
Chris@3
|
48
|
Chris@26
|
49 VAMP_SOURCES := \
|
Chris@26
|
50 $(VAMPSDK_DIR)/src/vamp-sdk/PluginAdapter.cpp \
|
Chris@26
|
51 $(VAMPSDK_DIR)/src/vamp-sdk/FFT.cpp \
|
Chris@26
|
52 $(VAMPSDK_DIR)/src/vamp-sdk/RealTime.cpp
|
Chris@26
|
53
|
Chris@13
|
54 CFLAGS := $(ARCHFLAGS) $(CFLAGS)
|
Chris@13
|
55 CXXFLAGS := $(CFLAGS) -I. -I$(VAMPSDK_DIR) -Iext/bqvec $(CXXFLAGS)
|
Chris@13
|
56
|
Chris@13
|
57 LDFLAGS := $(ARCHFLAGS) $(LDFLAGS)
|
Chris@13
|
58 PLUGIN_LDFLAGS := $(LDFLAGS) $(PLUGIN_LDFLAGS)
|
Chris@13
|
59
|
Chris@3
|
60 PLUGIN := $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
|
Chris@3
|
61
|
Chris@26
|
62 PLUGIN_OBJECTS := $(PLUGIN_SOURCES:.cpp=.o) $(VAMP_SOURCES:.cpp=.o)
|
Chris@3
|
63 PLUGIN_OBJECTS := $(PLUGIN_OBJECTS:.c=.o)
|
Chris@3
|
64
|
Chris@3
|
65 $(PLUGIN): $(PLUGIN_OBJECTS)
|
Chris@26
|
66 $(CXX) -o $@ $^ $(PLUGIN_LDFLAGS)
|
Chris@3
|
67
|
Chris@26
|
68 $(PLUGIN_OBJECTS): .repoint.point $(PLUGIN_HEADERS)
|
Chris@26
|
69
|
Chris@26
|
70 .repoint.point: repoint-project.json
|
Chris@26
|
71 ./repoint install
|
Chris@3
|
72
|
Chris@3
|
73 clean:
|
Chris@3
|
74 rm -f $(PLUGIN_OBJECTS)
|
Chris@3
|
75
|
Chris@3
|
76 distclean: clean
|
Chris@3
|
77 rm -f $(PLUGIN)
|
Chris@3
|
78
|
Chris@3
|
79 depend:
|
Chris@3
|
80 makedepend -Y -fMakefile.inc $(PLUGIN_SOURCES) $(PLUGIN_HEADERS)
|
Chris@3
|
81
|