-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.inc
63 lines (42 loc) · 1.42 KB
/
Makefile.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Edit this to the base name of your plugin library
#
PLUGIN_LIBRARY_NAME := tuning-difference
# Edit this to list the .cpp or .c files in your plugin project
#
PLUGIN_SOURCES := src/TuningDifference.cpp src/plugins.cpp
# Edit this to list the .h files in your plugin project
#
PLUGIN_HEADERS := src/TuningDifference.h
## Normally you should not edit anything below this line
SRC_DIR := .
CFLAGS := $(ARCHFLAGS) $(CFLAGS)
CXXFLAGS := $(CFLAGS) -I. -I$(VAMPSDK_DIR) -Iconstant-q-cpp $(CXXFLAGS)
LDFLAGS := $(ARCHFLAGS) $(LDFLAGS) -Lconstant-q-cpp -lcq
PLUGIN_LDFLAGS := $(LDFLAGS) $(PLUGIN_LDFLAGS)
# Defaults, overridden from the platform-specific Makefile
VAMPSDK_DIR ?= ../vamp-plugin-sdk
PLUGIN_EXT ?= .so
CXX ?= g++
CC ?= gcc
PLUGIN := $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
PLUGIN_OBJECTS := $(PLUGIN_SOURCES:.cpp=.o)
PLUGIN_OBJECTS := $(PLUGIN_OBJECTS:.c=.o)
all: constant-q-cpp $(PLUGIN)
.PHONY: constant-q-cpp
constant-q-cpp:
$(MAKE) -C $@ -f Makefile$(MAKEFILE_EXT) libcq.a
$(PLUGIN): $(PLUGIN_OBJECTS)
$(CXX) -o $@ $^ $(PLUGIN_LDFLAGS)
$(PLUGIN_OBJECTS): $(PLUGIN_HEADERS)
test: all
bash test/regression.sh
clean:
rm -f $(PLUGIN_OBJECTS)
$(MAKE) -C constant-q-cpp -f Makefile$(MAKEFILE_EXT) clean
distclean: clean
rm -f $(PLUGIN)
depend:
makedepend -Y -fMakefile.inc $(PLUGIN_SOURCES) $(PLUGIN_HEADERS)
# DO NOT DELETE
src/TuningDifference.o: src/TuningDifference.h
src/plugins.o: src/TuningDifference.h