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 @ 51:0997774f5fdc
History | View | Annotate | Download (1.95 KB)
| 1 |
|
|---|---|
| 2 |
PLUGIN_EXT ?= .so |
| 3 |
|
| 4 |
CXX ?= g++ |
| 5 |
CC ?= gcc |
| 6 |
|
| 7 |
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 |
|
| 16 |
HEADERS := CepstralPitchTracker.h \ |
| 17 |
MeanFilter.h \ |
| 18 |
NoteHypothesis.h \ |
| 19 |
PeakInterpolator.h |
| 20 |
|
| 21 |
SOURCES := CepstralPitchTracker.cpp \ |
| 22 |
NoteHypothesis.cpp \ |
| 23 |
PeakInterpolator.cpp |
| 24 |
|
| 25 |
PLUGIN_MAIN := libmain.cpp |
| 26 |
|
| 27 |
TESTS := test/test-meanfilter \ |
| 28 |
test/test-fft \ |
| 29 |
test/test-cepstrum \ |
| 30 |
test/test-peakinterpolator \ |
| 31 |
test/test-notehypothesis |
| 32 |
|
| 33 |
OBJECTS := $(SOURCES:.cpp=.o) |
| 34 |
OBJECTS := $(OBJECTS:.c=.o) |
| 35 |
|
| 36 |
PLUGIN_OBJECTS := $(OBJECTS) $(PLUGIN_MAIN:.cpp=.o) |
| 37 |
|
| 38 |
all: $(PLUGIN) $(TESTS) |
| 39 |
for t in $(TESTS); do echo "Running $$t"; ./"$$t" || exit 1; done |
| 40 |
|
| 41 |
$(PLUGIN): $(PLUGIN_OBJECTS) |
| 42 |
$(CXX) -o $@ $^ $(PLUGIN_LDFLAGS) |
| 43 |
|
| 44 |
test/test-notehypothesis: test/TestNoteHypothesis.o $(OBJECTS) |
| 45 |
$(CXX) -o $@ $^ $(TEST_LDFLAGS) |
| 46 |
|
| 47 |
test/test-meanfilter: test/TestMeanFilter.o $(OBJECTS) |
| 48 |
$(CXX) -o $@ $^ $(TEST_LDFLAGS) |
| 49 |
|
| 50 |
test/test-cepstrum: test/TestCepstrum.o $(OBJECTS) |
| 51 |
$(CXX) -o $@ $^ $(TEST_LDFLAGS) |
| 52 |
|
| 53 |
test/test-fft: test/TestFFT.o $(OBJECTS) |
| 54 |
$(CXX) -o $@ $^ $(TEST_LDFLAGS) |
| 55 |
|
| 56 |
test/test-peakinterpolator: test/TestPeakInterpolator.o $(OBJECTS) |
| 57 |
$(CXX) -o $@ $^ $(TEST_LDFLAGS) |
| 58 |
|
| 59 |
clean: |
| 60 |
rm -f $(OBJECTS) test/*.o |
| 61 |
|
| 62 |
distclean: clean |
| 63 |
rm -f $(PLUGIN) $(TESTS) |
| 64 |
|
| 65 |
depend: |
| 66 |
makedepend -Y -fMakefile.inc *.cpp test/*.cpp *.h test/*.h |
| 67 |
|
| 68 |
# DO NOT DELETE |
| 69 |
|
| 70 |
CepstralPitchTracker.o: CepstralPitchTracker.h NoteHypothesis.h Cepstrum.h |
| 71 |
CepstralPitchTracker.o: MeanFilter.h PeakInterpolator.h |
| 72 |
libmain.o: CepstralPitchTracker.h NoteHypothesis.h |
| 73 |
NoteHypothesis.o: NoteHypothesis.h |
| 74 |
PeakInterpolator.o: PeakInterpolator.h |
| 75 |
test/TestCepstrum.o: Cepstrum.h |
| 76 |
test/TestMeanFilter.o: MeanFilter.h |
| 77 |
test/TestNoteHypothesis.o: NoteHypothesis.h |
| 78 |
test/TestPeakInterpolator.o: PeakInterpolator.h |
| 79 |
CepstralPitchTracker.o: NoteHypothesis.h |