forked from vamp-plugins/vampy-host
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.inc
67 lines (47 loc) · 1.94 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
64
65
66
67
LIBRARY_EXT ?= .so
LIBRARY ?= vampyhost$(LIBRARY_EXT)
CXX ?= g++
CC ?= gcc
SRC_DIR := native
VAMP_DIR := vamp-plugin-sdk
PLUGIN_EXT ?= $(LIBRARY_EXT)
TESTPLUG_DIR := test/vamp-test-plugin
TESTPLUG := $(TESTPLUG_DIR)/vamp-test-plugin$(PLUGIN_EXT)
HEADERS := $(SRC_DIR)/PyPluginObject.h $(SRC_DIR)/PyRealTime.h $(SRC_DIR)/FloatConversion.h $(SRC_DIR)/VectorConversion.h
SOURCES := $(SRC_DIR)/PyPluginObject.cpp $(SRC_DIR)/PyRealTime.cpp $(SRC_DIR)/VectorConversion.cpp $(SRC_DIR)/vampyhost.cpp
VAMP_SOURCES := $(wildcard $(VAMP_DIR)/src/vamp-hostsdk/*.cpp)
PY := $(wildcard vamp/*.py)
TESTS := $(wildcard test/test_*.py)
OBJECTS := $(SOURCES:.cpp=.o) $(VAMP_SOURCES:.cpp=.o)
OBJECTS := $(OBJECTS:.c=.o)
CXXFLAGS += -I$(VAMP_DIR)
default: $(LIBRARY)
all: $(LIBRARY) .tests
.tests: $(LIBRARY) $(PY) $(TESTPLUG) $(TESTS)
VAMP_PATH=$(TESTPLUG_DIR) $(NOSE)
@touch $@
.PHONY: test
test: $(LIBRARY) $(PY) $(TESTPLUG) $(TESTS)
VAMP_PATH=$(TESTPLUG_DIR) $(NOSE)
$(LIBRARY): $(OBJECTS)
$(CXX) -o $@ $^ $(LDFLAGS)
$(TESTPLUG):
$(MAKE) -C $(TESTPLUG_DIR) -f Makefile$(MAKEFILE_EXT) VAMPSDK_DIR=../$(VAMP_DIR)
clean:
$(MAKE) -C $(TESTPLUG_DIR) -f Makefile$(MAKEFILE_EXT) clean
rm -f $(OBJECTS) .tests
distclean: clean
$(MAKE) -C $(TESTPLUG_DIR) -f Makefile$(MAKEFILE_EXT) distclean
rm -f $(LIBRARY)
depend:
$(MAKE) -C $(TESTPLUG_DIR) -f Makefile$(MAKEFILE_EXT) depend
makedepend -Y -fMakefile.inc $(SOURCES) $(HEADERS)
# DO NOT DELETE
native/PyPluginObject.o: native/PyPluginObject.h native/FloatConversion.h
native/PyPluginObject.o: native/VectorConversion.h native/StringConversion.h
native/PyPluginObject.o: native/PyRealTime.h
native/PyRealTime.o: native/PyRealTime.h
native/VectorConversion.o: native/VectorConversion.h native/FloatConversion.h
native/VectorConversion.o: native/StringConversion.h
native/vampyhost.o: native/PyRealTime.h native/PyPluginObject.h
native/vampyhost.o: native/VectorConversion.h native/StringConversion.h