-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·116 lines (89 loc) · 3.58 KB
/
Makefile
File metadata and controls
executable file
·116 lines (89 loc) · 3.58 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Created 2-9-2020
# Author Andrew Moore
# Modified 3-22-2020
CC = g++
CFLAGS = -g -Wall -std=gnu++17
LIBS = -lsndfile -lvorbis -lboost_system -lboost_filesystem
DIR = $(shell mkdir build)
CLEANDIR = $(shell rm -rf build)
FILES = $(shell git pull)
# Make the DeepSample binary, first making sure the source files aren't stail.
default:
# $(FILES);
$(DIR)\
make test;\
make sample;\
make anni;\
# Make all the binaries in the project, first making sure the source files aren't stail.
all:
#$(FILES);
$(DIR)\
make test;\
make sample;\
make anni;\
# Make the DeepSampleTest binary
test:
# $(FILES);
$(DIR)\
make tests;
# Make the SampleGenerator binary
sample:
# $(FILES);
$(DIR)
make Samples;\
make driver;
# Make the ANNI binary
anni:
# $(FILES);
$(DIR)\
make DeepSample;
# Just make the test binary
tests: src/deepSampleTests.o src/FourierTransform.o src/zeroCrossing.o src/spectrumFlux.o src/spectrumCentroid.o src/cepstrum.o src/audioHandler.o src/Utilities.o src/ANN.o src/TestSuite.o src/AudioWave.o src/Fold.o
$(CC) $(CFLAGS) -o build/DeepSampleTests src/deepSampleTests.o src/FourierTransform.o src/zeroCrossing.o src/spectrumFlux.o src/spectrumCentroid.o src/cepstrum.o src/audioHandler.o src/Utilities.o src/ANN.o src/TestSuite.o src/AudioWave.o src/Fold.o $(LIBS)
$(RM) src/*.o;
# Just make the sample binary, first making sure the source files aren't stail.
Samples: src/sampleGenerator.o src/FourierTransform.o src/zeroCrossing.o src/spectrumFlux.o src/spectrumCentroid.o src/cepstrum.o src/audioHandler.o src/Utilities.o src/AudioWave.o src/Fold.o
$(CC) $(CFLAGS) -o build/SampleGenerator src/sampleGenerator.o src/FourierTransform.o src/zeroCrossing.o src/spectrumFlux.o src/spectrumCentroid.o src/cepstrum.o src/audioHandler.o src/Utilities.o src/AudioWave.o src/Fold.o $(LIBS)
$(RM) src/*.o
# Make driver binary
driver: src/driver.o
$(CC) $(CFLAGS) -o build/genSamples src/driver.o $(LIBS)
# Make ANNI binary
DeepSample: src/anniDriver.o src/ANN.o src/AudioWave.o src/Fold.o src/Utilities.o
$(CC) $(CFLAGS) -o build/DeepSample src/anniDriver.o src/ANN.o src/AudioWave.o src/Fold.o src/Utilities.o $(LIBS)
$(RM) src/*.o
# Clean up the directory
clean:
$(CLEANDIR)
$(RM) *.o *.~ *.out src/*.o *.txt;\
# Object compilation
deepSampleTests.o: src/deepSampleTests.cpp
$(CC) $(CFLAGS) -c src/deepSampleTests.cpp $(LIBS)
sampleGenerator.o: src/sampleGenerator.cpp
$(CC) $(CFLAGS) -c src/sampleGenerator.cpp $(LIBS)
AudioSegmentation.o: src/AudioSegmentation.cpp include/AudioSegmentation.h
$(CC) $(CFLAGS) -c src/AudioSegmentation.cpp $(LIBS)
FourierTransform.o: src/FourierTransform.cpp include/FourierTransform.h
$(CC) $(CFLAGS) -c src/FourierTransform.cpp
Utilities.o: src/Utilities.cpp include/Utilities.h
$(CC) $(CFLAGS) -c src/Utilities.cpp
zeroCrossing.o: src/zeroCrossing.cpp include/zeroCrossing.h
$(CC) $(CFLAGS) -c src/zeroCrossing.cpp
spectrumFlux.o: src/spectrumFlux.cpp include/spectrumFlux.h
$(CC) $(CFLAGS) -c src/spectrumFlux.cpp
spectrumCentroid.o: src/sprectrumCentroid.cpp include/spectrumCentroid.h
$(CC) $(CFLAGS) -c src/spectrumCentroid.cpp
cepstrum.o: src/cepstrum.cpp include/cepstrum.h
$(CC) $(CFLAGS) -c src/cepstrum.cpp
ANN.o: src/ANN.cpp include/ANN.h
$(CC) $(CFLAGS) -c src/ANN.cpp
anniDriver.o: src/anniDriver.cpp
$(CC) $(CFLAGS) -c src/anniDriver.cpp
driver.o: src/driver.cpp
$(CC) $(CFLAGS) -c src/driver.cpp
TestSuite.o: src/TestSuite.cpp include/TestSuite.h
$(CC) $(CFLAGS) -c src/TestSuite.cpp
AudioWave.o: src/AudioWave.cpp include/AudioWave.h
$(CC) $(CFLAGS) -c src/AudioWave.cpp
Fold.o: src/Fold.cpp include/Fold.h
$(CC) $(CFLAGS) -c src/Fold.cpp