To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / Makefile.inc @ 63:686ef2976366
History | View | Annotate | Download (2.12 KB)
| 1 | 0:89c5d5998cda | Chris | |
|---|---|---|---|
| 2 | PLUGIN_EXT ?= .so |
||
| 3 | 41:16908c2bd781 | Chris | |
| 4 | 0:89c5d5998cda | Chris | CXX ?= g++ |
| 5 | CC ?= gcc |
||
| 6 | |||
| 7 | 41:16908c2bd781 | Chris | CFLAGS := $(CFLAGS) |
| 8 | CXXFLAGS := -I. $(CXXFLAGS) |
||
| 9 | |||
| 10 | LDFLAGS := $(LDFLAGS) -lvamp-sdk |
||
| 11 | PLUGIN_LDFLAGS := $(LDFLAGS) $(PLUGIN_LDFLAGS) |
||
| 12 | TEST_LDFLAGS := $(LDFLAGS) -lboost_unit_test_framework |
||
| 13 | |||
| 14 | PLUGIN := cepstral-pitchtracker$(PLUGIN_EXT) |
||
| 15 | 0:89c5d5998cda | Chris | |
| 16 | 35:2f5b169e4a3b | Chris | HEADERS := CepstralPitchTracker.h \ |
| 17 | 52:34f42a384a7f | Chris | AgentFeeder.h \ |
| 18 | 47:f72a470fe4b5 | Chris | MeanFilter.h \ |
| 19 | 39:822cf7b8e070 | Chris | NoteHypothesis.h \ |
| 20 | PeakInterpolator.h |
||
| 21 | 0:89c5d5998cda | Chris | |
| 22 | 31:2c175adf8736 | Chris | SOURCES := CepstralPitchTracker.cpp \ |
| 23 | 52:34f42a384a7f | Chris | AgentFeeder.cpp \ |
| 24 | 35:2f5b169e4a3b | Chris | NoteHypothesis.cpp \ |
| 25 | 41:16908c2bd781 | Chris | PeakInterpolator.cpp |
| 26 | |||
| 27 | PLUGIN_MAIN := libmain.cpp |
||
| 28 | |||
| 29 | 63:686ef2976366 | Chris | TESTS ?= test/test-meanfilter \ |
| 30 | 48:1343ecde267e | Chris | test/test-fft \ |
| 31 | 51:0997774f5fdc | Chris | test/test-cepstrum \ |
| 32 | test/test-peakinterpolator \ |
||
| 33 | 52:34f42a384a7f | Chris | test/test-notehypothesis \ |
| 34 | test/test-agentfeeder |
||
| 35 | 51:0997774f5fdc | Chris | |
| 36 | 0:89c5d5998cda | Chris | OBJECTS := $(SOURCES:.cpp=.o) |
| 37 | OBJECTS := $(OBJECTS:.c=.o) |
||
| 38 | |||
| 39 | 41:16908c2bd781 | Chris | PLUGIN_OBJECTS := $(OBJECTS) $(PLUGIN_MAIN:.cpp=.o) |
| 40 | 38:944898c2e14e | Chris | |
| 41 | 41:16908c2bd781 | Chris | all: $(PLUGIN) $(TESTS) |
| 42 | for t in $(TESTS); do echo "Running $$t"; ./"$$t" || exit 1; done |
||
| 43 | |||
| 44 | $(PLUGIN): $(PLUGIN_OBJECTS) |
||
| 45 | $(CXX) -o $@ $^ $(PLUGIN_LDFLAGS) |
||
| 46 | |||
| 47 | test/test-notehypothesis: test/TestNoteHypothesis.o $(OBJECTS) |
||
| 48 | $(CXX) -o $@ $^ $(TEST_LDFLAGS) |
||
| 49 | |||
| 50 | 52:34f42a384a7f | Chris | test/test-agentfeeder: test/TestAgentFeeder.o $(OBJECTS) |
| 51 | $(CXX) -o $@ $^ $(TEST_LDFLAGS) |
||
| 52 | |||
| 53 | 47:f72a470fe4b5 | Chris | test/test-meanfilter: test/TestMeanFilter.o $(OBJECTS) |
| 54 | $(CXX) -o $@ $^ $(TEST_LDFLAGS) |
||
| 55 | |||
| 56 | 51:0997774f5fdc | Chris | test/test-cepstrum: test/TestCepstrum.o $(OBJECTS) |
| 57 | $(CXX) -o $@ $^ $(TEST_LDFLAGS) |
||
| 58 | |||
| 59 | 48:1343ecde267e | Chris | test/test-fft: test/TestFFT.o $(OBJECTS) |
| 60 | $(CXX) -o $@ $^ $(TEST_LDFLAGS) |
||
| 61 | |||
| 62 | 41:16908c2bd781 | Chris | test/test-peakinterpolator: test/TestPeakInterpolator.o $(OBJECTS) |
| 63 | $(CXX) -o $@ $^ $(TEST_LDFLAGS) |
||
| 64 | 0:89c5d5998cda | Chris | |
| 65 | clean: |
||
| 66 | 41:16908c2bd781 | Chris | rm -f $(OBJECTS) test/*.o |
| 67 | 0:89c5d5998cda | Chris | |
| 68 | distclean: clean |
||
| 69 | 41:16908c2bd781 | Chris | rm -f $(PLUGIN) $(TESTS) |
| 70 | 1:c73b7b595d9c | Chris | |
| 71 | 51:0997774f5fdc | Chris | depend: |
| 72 | makedepend -Y -fMakefile.inc *.cpp test/*.cpp *.h test/*.h |
||
| 73 | |||
| 74 | 41:16908c2bd781 | Chris | # DO NOT DELETE |
| 75 | |||
| 76 | 51:0997774f5fdc | Chris | CepstralPitchTracker.o: CepstralPitchTracker.h NoteHypothesis.h Cepstrum.h |
| 77 | CepstralPitchTracker.o: MeanFilter.h PeakInterpolator.h |
||
| 78 | 41:16908c2bd781 | Chris | libmain.o: CepstralPitchTracker.h NoteHypothesis.h |
| 79 | NoteHypothesis.o: NoteHypothesis.h |
||
| 80 | PeakInterpolator.o: PeakInterpolator.h |
||
| 81 | 51:0997774f5fdc | Chris | test/TestCepstrum.o: Cepstrum.h |
| 82 | test/TestMeanFilter.o: MeanFilter.h |
||
| 83 | 41:16908c2bd781 | Chris | test/TestNoteHypothesis.o: NoteHypothesis.h |
| 84 | test/TestPeakInterpolator.o: PeakInterpolator.h |
||
| 85 | 51:0997774f5fdc | Chris | CepstralPitchTracker.o: NoteHypothesis.h |