Chris@9
|
1
|
Chris@9
|
2 PLUGIN_EXT ?= .so
|
Chris@9
|
3 PLUGIN ?= match-vamp-plugin$(PLUGIN_EXT)
|
Chris@9
|
4 CXX ?= g++
|
Chris@9
|
5 CC ?= gcc
|
Chris@9
|
6
|
Chris@194
|
7 CXXFLAGS := -Isrc -DUSE_COMPACT_TYPES $(CXXFLAGS)
|
Chris@124
|
8
|
Chris@126
|
9 TEST_LDFLAGS += -lboost_unit_test_framework
|
Chris@124
|
10
|
Chris@35
|
11 HEADERS := $(wildcard src/*.h)
|
Chris@35
|
12 SOURCES := $(wildcard src/*.cpp)
|
Chris@124
|
13 OBJECTS := $(SOURCES:.cpp=.o)
|
Chris@9
|
14
|
Chris@124
|
15 TEST_SOURCES := $(wildcard test/*.cpp)
|
Chris@124
|
16 TEST_OBJECTS := $(TEST_SOURCES:.cpp=.o)
|
Chris@124
|
17 TESTS := $(TEST_OBJECTS:.o=)
|
Chris@124
|
18
|
Chris@225
|
19 all: plugin
|
Chris@218
|
20
|
Chris@218
|
21 plugin: $(PLUGIN)
|
Chris@218
|
22
|
Chris@218
|
23 tests: $(TESTS)
|
Chris@124
|
24 for t in $(TESTS); do echo "Running $$t"; ./"$$t" || exit 1; done
|
Chris@9
|
25
|
Chris@9
|
26 $(PLUGIN): $(OBJECTS)
|
Chris@80
|
27 $(CXX) -o $@ $^ $(LDFLAGS) $(PLUGIN_LDFLAGS)
|
Chris@9
|
28
|
Chris@126
|
29 test/%: test/%.o $(OBJECTS)
|
Chris@126
|
30 $(CXX) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
|
Chris@124
|
31
|
Chris@9
|
32 clean:
|
Chris@124
|
33 rm -f $(OBJECTS) $(TEST_OBJECTS) $(TESTS)
|
Chris@9
|
34
|
Chris@9
|
35 distclean: clean
|
Chris@9
|
36 rm -f $(PLUGIN)
|
Chris@9
|
37
|
Chris@15
|
38 depend:
|
Chris@124
|
39 makedepend -Y -fMakefile.inc $(SOURCES) $(HEADERS) $(TEST_SOURCES)
|
Chris@103
|
40
|
Chris@9
|
41 # DO NOT DELETE
|
Chris@9
|
42
|
Chris@212
|
43 src/DistanceMetric.o: src/DistanceMetric.h src/MatchTypes.h
|
Chris@212
|
44 src/FeatureConditioner.o: src/FeatureConditioner.h src/MatchTypes.h
|
Chris@212
|
45 src/FeatureExtractor.o: src/FeatureExtractor.h src/MatchTypes.h
|
Chris@212
|
46 src/Finder.o: src/Finder.h src/Matcher.h src/DistanceMetric.h
|
Chris@212
|
47 src/Finder.o: src/MatchTypes.h src/Path.h
|
Chris@245
|
48 src/FullDTW.o: src/FullDTW.h src/DistanceMetric.h src/MatchTypes.h
|
Chris@245
|
49 src/libmain.o: src/MatchVampPlugin.h src/MatchPipeline.h src/Matcher.h
|
Chris@245
|
50 src/libmain.o: src/DistanceMetric.h src/MatchTypes.h src/Finder.h
|
Chris@245
|
51 src/libmain.o: src/FeatureExtractor.h src/FeatureConditioner.h
|
Chris@245
|
52 src/libmain.o: src/MatchFeatureFeeder.h src/SubsequenceMatchVampPlugin.h
|
Chris@245
|
53 src/libmain.o: src/FullDTW.h
|
Chris@187
|
54 src/Matcher.o: src/Matcher.h src/DistanceMetric.h src/MatchTypes.h
|
Chris@235
|
55 src/MatchFeatureFeeder.o: src/MatchFeatureFeeder.h src/Matcher.h
|
Chris@235
|
56 src/MatchFeatureFeeder.o: src/DistanceMetric.h src/MatchTypes.h src/Finder.h
|
Chris@124
|
57 src/MatchPipeline.o: src/MatchPipeline.h src/Matcher.h src/DistanceMetric.h
|
Chris@187
|
58 src/MatchPipeline.o: src/MatchTypes.h src/Finder.h src/FeatureExtractor.h
|
Chris@182
|
59 src/MatchPipeline.o: src/FeatureConditioner.h src/MatchFeatureFeeder.h
|
Chris@182
|
60 src/MatchVampPlugin.o: src/MatchVampPlugin.h src/MatchPipeline.h
|
Chris@187
|
61 src/MatchVampPlugin.o: src/Matcher.h src/DistanceMetric.h src/MatchTypes.h
|
Chris@182
|
62 src/MatchVampPlugin.o: src/Finder.h src/FeatureExtractor.h
|
Chris@182
|
63 src/MatchVampPlugin.o: src/FeatureConditioner.h src/MatchFeatureFeeder.h
|
Chris@235
|
64 src/Path.o: src/Path.h
|
Chris@245
|
65 src/SubsequenceMatchVampPlugin.o: src/SubsequenceMatchVampPlugin.h
|
Chris@245
|
66 src/SubsequenceMatchVampPlugin.o: src/Matcher.h src/DistanceMetric.h
|
Chris@245
|
67 src/SubsequenceMatchVampPlugin.o: src/MatchTypes.h src/FeatureExtractor.h
|
Chris@245
|
68 src/SubsequenceMatchVampPlugin.o: src/FeatureConditioner.h src/FullDTW.h
|
Chris@245
|
69 src/SubsequenceMatchVampPlugin.o: src/MatchPipeline.h src/Finder.h
|
Chris@245
|
70 src/SubsequenceMatchVampPlugin.o: src/MatchFeatureFeeder.h
|
Chris@235
|
71 src/DistanceMetric.o: src/MatchTypes.h
|
Chris@235
|
72 src/FeatureConditioner.o: src/MatchTypes.h
|
Chris@235
|
73 src/FeatureExtractor.o: src/MatchTypes.h
|
Chris@235
|
74 src/Finder.o: src/Matcher.h src/DistanceMetric.h src/MatchTypes.h
|
Chris@235
|
75 src/FullDTW.o: src/DistanceMetric.h src/MatchTypes.h
|
Chris@235
|
76 src/Matcher.o: src/DistanceMetric.h src/MatchTypes.h
|
Chris@187
|
77 src/MatchFeatureFeeder.o: src/Matcher.h src/DistanceMetric.h src/MatchTypes.h
|
Chris@182
|
78 src/MatchFeatureFeeder.o: src/Finder.h
|
Chris@187
|
79 src/MatchPipeline.o: src/Matcher.h src/DistanceMetric.h src/MatchTypes.h
|
Chris@124
|
80 src/MatchPipeline.o: src/Finder.h src/FeatureExtractor.h
|
Chris@124
|
81 src/MatchPipeline.o: src/FeatureConditioner.h src/MatchFeatureFeeder.h
|
Chris@124
|
82 src/MatchVampPlugin.o: src/MatchPipeline.h src/Matcher.h src/DistanceMetric.h
|
Chris@187
|
83 src/MatchVampPlugin.o: src/MatchTypes.h src/Finder.h src/FeatureExtractor.h
|
Chris@124
|
84 src/MatchVampPlugin.o: src/FeatureConditioner.h src/MatchFeatureFeeder.h
|
Chris@245
|
85 src/SubsequenceMatchVampPlugin.o: src/Matcher.h src/DistanceMetric.h
|
Chris@245
|
86 src/SubsequenceMatchVampPlugin.o: src/MatchTypes.h src/FeatureExtractor.h
|
Chris@245
|
87 src/SubsequenceMatchVampPlugin.o: src/FeatureConditioner.h src/FullDTW.h
|
Chris@235
|
88 test/TestDistanceMetric.o: src/DistanceMetric.h src/MatchTypes.h
|
Chris@212
|
89 test/TestFeatureConditioner.o: src/FeatureConditioner.h src/MatchTypes.h
|
Chris@212
|
90 test/TestFeatureExtractor.o: src/FeatureExtractor.h src/MatchTypes.h
|