-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
35 lines (25 loc) · 1.54 KB
/
Makefile
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
MYLIB := lib/WavReader.cpp lib/Timing.cpp lib/ReadAudio.cpp lib/BmpReader.cpp lib/Signal.cpp lib/utils.cpp lib/Pitch.cpp lib/Sound.cpp
MYLIB += Analyzer.cpp PeakFinder.cpp PeakFinderDejavu.cpp
HEADERS := lib/WavReader.hpp lib/Timing.hpp lib/ReadAudio.hpp lib/BmpReader.h lib/Signal.hpp lib/utils.hpp lib/Pitch.hpp lib/Sound.hpp
HEADERS += Landmark.hpp Database.hpp PitchDatabase.hpp
HEADERS += Analyzer.hpp PeakFinder.hpp PeakFinderDejavu.hpp
CXXFLAGS := -O3 -fopenmp
ifeq ($(OS),Windows_NT)
LIBS += -lws2_32
else
LIBS +=
endif
builder: builder.cpp Landmark.cpp Database.cpp $(MYLIB) Makefile $(HEADERS)
$(CXX) $(CXXFLAGS) builder.cpp Landmark.cpp Database.cpp $(MYLIB) -o $@ $(LIBS)
matcher: matcher.cpp Landmark.cpp Database.cpp $(MYLIB) Makefile $(HEADERS)
$(CXX) $(CXXFLAGS) matcher.cpp Landmark.cpp Database.cpp $(MYLIB) -o $@ $(LIBS)
getlm: getlm.cpp Landmark.cpp Database.cpp $(MYLIB) Makefile $(HEADERS)
$(CXX) $(CXXFLAGS) getlm.cpp Landmark.cpp Database.cpp $(MYLIB) -o $@ $(LIBS)
finddup: finddup.cpp Landmark.cpp Database.cpp $(MYLIB) Makefile $(HEADERS)
mpic++ $(CXXFLAGS) finddup.cpp Landmark.cpp Database.cpp $(MYLIB) -o $@ $(LIBS)
matchServer: matchServer.cpp Landmark.cpp Database.cpp $(MYLIB) Makefile $(HEADERS)
$(CXX) $(CXXFLAGS) matchServer.cpp Landmark.cpp Database.cpp $(MYLIB) -o $@ $(LIBS)
qbshServer: qbshServer.cpp PitchDatabase.cpp $(MYLIB) Makefile $(HEADERS)
$(CXX) $(CXXFLAGS) qbshServer.cpp PitchDatabase.cpp Landmark.cpp $(MYLIB) -o $@ $(LIBS)
# finddup and qbshServer are not used in my thesis
all: builder matcher getlm