Chris@31
|
1
|
Chris@31
|
2 SRC_DIR := src
|
Chris@31
|
3
|
Chris@31
|
4 VAMPSDK_DIR ?= ../vamp-plugin-sdk
|
Chris@31
|
5
|
Chris@153
|
6 CQ_DIR ?= constant-q-cpp
|
Chris@310
|
7 BQVEC_DIR ?= bqvec
|
Chris@246
|
8 FD_DIR ?= flattendynamics
|
Chris@31
|
9
|
Chris@31
|
10 PLUGIN_EXT ?= .so
|
Chris@31
|
11
|
Chris@31
|
12 CXX ?= g++
|
Chris@31
|
13 CC ?= gcc
|
Chris@368
|
14 AR ?= ar
|
Chris@368
|
15 RANLIB ?= ranlib
|
Chris@31
|
16
|
Chris@152
|
17 CFLAGS := $(CFLAGS)
|
Chris@367
|
18 CXXFLAGS := $(CFLAGS) -I. -I$(VAMPSDK_DIR) -I$(CQ_DIR) -I$(BQVEC_DIR) -I$(BQVEC_DIR) -I$(BQVEC_DIR)/bqvec -I$(FD_DIR) $(CXXFLAGS)
|
Chris@31
|
19
|
Chris@31
|
20 LDFLAGS := $(LDFLAGS)
|
Chris@31
|
21 PLUGIN_LDFLAGS := $(LDFLAGS) $(PLUGIN_LDFLAGS)
|
Chris@31
|
22
|
Chris@31
|
23 PLUGIN := silvet$(PLUGIN_EXT)
|
Chris@368
|
24 STATICLIB := libsilvet.a
|
Chris@31
|
25
|
Chris@298
|
26 PLUGIN_HEADERS := $(SRC_DIR)/Silvet.h $(SRC_DIR)/EM.h $(SRC_DIR)/Instruments.h $(SRC_DIR)/LiveInstruments.h
|
Chris@298
|
27 PLUGIN_SOURCES := $(SRC_DIR)/Silvet.cpp $(SRC_DIR)/EM.cpp $(SRC_DIR)/Instruments.cpp $(SRC_DIR)/LiveInstruments.cpp $(SRC_DIR)/libmain.cpp
|
Chris@31
|
28
|
Chris@126
|
29 BQVEC_HEADERS := $(BQVEC_DIR)/Allocators.h $(BQVEC_DIR)/Restrict.h $(BQVEC_DIR)/VectorOps.h
|
Chris@310
|
30 BQVEC_SOURCES := $(BQVEC_DIR)/src/Allocators.cpp
|
Chris@126
|
31
|
Chris@246
|
32 FD_HEADERS := $(FD_DIR)/flattendynamics-ladspa.h
|
Chris@246
|
33 FD_SOURCES := $(FD_DIR)/flattendynamics-ladspa.cpp
|
Chris@246
|
34
|
Chris@246
|
35 HEADERS := $(PLUGIN_HEADERS) $(BQVEC_HEADERS) $(FD_HEADERS)
|
Chris@246
|
36 SOURCES := $(PLUGIN_SOURCES) $(BQVEC_SOURCES) $(FD_SOURCES)
|
Chris@31
|
37 OBJECTS := $(SOURCES:.cpp=.o)
|
Chris@144
|
38 OBJECTS := $(OBJECTS:.c=.o)
|
Chris@31
|
39
|
Chris@368
|
40 LIBS := $(CQ_DIR)/libcq.a
|
Chris@31
|
41
|
Chris@368
|
42 all: constant-q-cpp $(STATICLIB) $(PLUGIN)
|
Chris@31
|
43
|
Chris@276
|
44 .PHONY: constant-q-cpp
|
Chris@276
|
45 constant-q-cpp:
|
Chris@276
|
46 $(MAKE) -C $@ -f Makefile$(MAKEFILE_EXT) libcq.a
|
Chris@276
|
47
|
Chris@153
|
48 $(PLUGIN): $(OBJECTS) $(LIBS)
|
Chris@31
|
49 $(CXX) -o $@ $^ $(LIBS) $(PLUGIN_LDFLAGS)
|
Chris@31
|
50
|
Chris@368
|
51 $(STATICLIB): $(OBJECTS)
|
Chris@368
|
52 $(RM) -f $@
|
Chris@368
|
53 $(AR) cr $@ $^
|
Chris@368
|
54 $(RANLIB) $@
|
Chris@368
|
55
|
Chris@31
|
56 clean:
|
Chris@31
|
57 rm -f $(OBJECTS)
|
Chris@276
|
58 $(MAKE) -C constant-q-cpp -f Makefile$(MAKEFILE_EXT) clean
|
Chris@31
|
59
|
Chris@31
|
60 distclean: clean
|
Chris@31
|
61 rm -f $(PLUGIN)
|
Chris@31
|
62
|
Chris@31
|
63 depend:
|
Chris@31
|
64 makedepend -Y -fMakefile.inc $(SOURCES) $(HEADERS)
|
Chris@31
|
65
|
Chris@31
|
66 # DO NOT DELETE
|
Chris@31
|
67
|
Chris@161
|
68 src/Silvet.o: src/Silvet.h src/MedianFilter.h src/Instruments.h src/EM.h
|
Chris@308
|
69 src/Silvet.o: constant-q-cpp/src/dsp/Resampler.h src/LiveInstruments.h
|
Chris@161
|
70 src/EM.o: src/EM.h src/Instruments.h
|
Chris@161
|
71 src/Instruments.o: src/Instruments.h data/include/templates.h
|
Chris@161
|
72 src/Instruments.o: data/include/bassoon.h data/include/cello.h
|
Chris@161
|
73 src/Instruments.o: data/include/clarinet.h data/include/flute.h
|
Chris@161
|
74 src/Instruments.o: data/include/guitar.h data/include/horn.h
|
Chris@161
|
75 src/Instruments.o: data/include/oboe.h data/include/tenorsax.h
|
Chris@246
|
76 src/Instruments.o: data/include/violin.h data/include/viola.h
|
Chris@246
|
77 src/Instruments.o: data/include/piano1.h data/include/piano2.h
|
Chris@246
|
78 src/Instruments.o: data/include/piano3.h data/include/pianorwc.h
|
Chris@308
|
79 src/LiveInstruments.o: src/LiveInstruments.h src/Instruments.h
|
Chris@308
|
80 src/LiveInstruments.o: data/include/templates.h data/include/bassoon.h
|
Chris@308
|
81 src/LiveInstruments.o: data/include/cello.h data/include/clarinet.h
|
Chris@308
|
82 src/LiveInstruments.o: data/include/flute.h data/include/guitar.h
|
Chris@308
|
83 src/LiveInstruments.o: data/include/horn.h data/include/oboe.h
|
Chris@308
|
84 src/LiveInstruments.o: data/include/tenorsax.h data/include/violin.h
|
Chris@308
|
85 src/LiveInstruments.o: data/include/viola.h data/include/piano1.h
|
Chris@308
|
86 src/LiveInstruments.o: data/include/piano2.h data/include/piano3.h
|
Chris@308
|
87 src/LiveInstruments.o: data/include/pianorwc.h
|
Chris@161
|
88 src/libmain.o: src/Silvet.h src/MedianFilter.h src/Instruments.h
|
Chris@246
|
89 flattendynamics/flattendynamics-ladspa.o: flattendynamics/flattendynamics-ladspa.h
|
Chris@161
|
90 src/Silvet.o: src/MedianFilter.h src/Instruments.h
|
Chris@308
|
91 src/LiveInstruments.o: src/Instruments.h
|