forked from c4dm/match-vamp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.inc
75 lines (60 loc) · 2.82 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
68
69
70
71
72
73
74
75
PLUGIN_EXT ?= .so
PLUGIN ?= match-vamp-plugin$(PLUGIN_EXT)
CXX ?= g++
CC ?= gcc
CXXFLAGS := -Isrc -DUSE_COMPACT_TYPES $(CXXFLAGS)
TEST_LDFLAGS += -lboost_unit_test_framework
HEADERS := $(wildcard src/*.h)
SOURCES := $(wildcard src/*.cpp)
OBJECTS := $(SOURCES:.cpp=.o)
TEST_SOURCES := $(wildcard test/*.cpp)
TEST_OBJECTS := $(TEST_SOURCES:.cpp=.o)
TESTS := $(TEST_OBJECTS:.o=)
all: plugin
plugin: $(PLUGIN)
tests: $(TESTS)
for t in $(TESTS); do echo "Running $$t"; ./"$$t" || exit 1; done
$(PLUGIN): $(OBJECTS)
$(CXX) -o $@ $^ $(LDFLAGS) $(PLUGIN_LDFLAGS)
test/%: test/%.o $(OBJECTS)
$(CXX) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
clean:
rm -f $(OBJECTS) $(TEST_OBJECTS) $(TESTS)
distclean: clean
rm -f $(PLUGIN)
depend:
makedepend -Y -fMakefile.inc $(SOURCES) $(HEADERS) $(TEST_SOURCES)
# DO NOT DELETE
src/DistanceMetric.o: src/DistanceMetric.h src/MatchTypes.h
src/Path.o: src/Path.h
src/FeatureConditioner.o: src/FeatureConditioner.h src/MatchTypes.h
src/MatchFeatureFeeder.o: src/MatchFeatureFeeder.h src/Matcher.h
src/MatchFeatureFeeder.o: src/DistanceMetric.h src/MatchTypes.h src/Finder.h
src/FeatureExtractor.o: src/FeatureExtractor.h src/MatchTypes.h
src/Finder.o: src/Finder.h src/Matcher.h src/DistanceMetric.h
src/Finder.o: src/MatchTypes.h src/Path.h
src/Matcher.o: src/Matcher.h src/DistanceMetric.h src/MatchTypes.h
src/MatchPipeline.o: src/MatchPipeline.h src/Matcher.h src/DistanceMetric.h
src/MatchPipeline.o: src/MatchTypes.h src/Finder.h src/FeatureExtractor.h
src/MatchPipeline.o: src/FeatureConditioner.h src/MatchFeatureFeeder.h
src/MatchVampPlugin.o: src/MatchVampPlugin.h src/MatchPipeline.h
src/MatchVampPlugin.o: src/Matcher.h src/DistanceMetric.h src/MatchTypes.h
src/MatchVampPlugin.o: src/Finder.h src/FeatureExtractor.h
src/MatchVampPlugin.o: src/FeatureConditioner.h src/MatchFeatureFeeder.h
src/MatchVampPlugin.o: src/Path.h
src/MatchFeatureFeeder.o: src/Matcher.h src/DistanceMetric.h src/MatchTypes.h
src/MatchFeatureFeeder.o: src/Finder.h
src/FeatureExtractor.o: src/MatchTypes.h
src/Finder.o: src/Matcher.h src/DistanceMetric.h src/MatchTypes.h
src/Matcher.o: src/DistanceMetric.h src/MatchTypes.h
src/MatchPipeline.o: src/Matcher.h src/DistanceMetric.h src/MatchTypes.h
src/MatchPipeline.o: src/Finder.h src/FeatureExtractor.h
src/MatchPipeline.o: src/FeatureConditioner.h src/MatchFeatureFeeder.h
src/MatchVampPlugin.o: src/MatchPipeline.h src/Matcher.h src/DistanceMetric.h
src/MatchVampPlugin.o: src/MatchTypes.h src/Finder.h src/FeatureExtractor.h
src/MatchVampPlugin.o: src/FeatureConditioner.h src/MatchFeatureFeeder.h
src/DistanceMetric.o: src/MatchTypes.h
src/FeatureConditioner.o: src/MatchTypes.h
test/TestFeatureConditioner.o: src/FeatureConditioner.h src/MatchTypes.h
test/TestDistanceMetric.o: src/DistanceMetric.h src/MatchTypes.h
test/TestFeatureExtractor.o: src/FeatureExtractor.h src/MatchTypes.h