-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 1016 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (26 loc) · 1016 Bytes
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
SOURCES = FourierTransform.c TestFourierTransform.c FingerPrinter.c WAVReading.c
SCRIPTS = PrintAll.sh TestMatcher.sh PrintMatcher.py
SQLITE = TestSet/test.sqlite
DBINIT = InitDatabase.sql
OBJECTS = $(SOURCES:.c=.o)
CC = gcc
CFLAGS = -g -Wall -Werror -std=c99
all: TestFourierTransform FingerPrinter
# Dependencies of this aren't exactly right. Should detect if we need new
# fingerprints.
test: FingerPrinter $(SCRIPTS)
rm -f $(SQLITE)
sqlite3 $(SQLITE) < $(DBINIT)
./PrintAll.sh
./FillSQL.sh $(SQLITE)
./TestMatcher.sh $(SQLITE)
snippet: FingerPrinter
./FillSQL.sh $(SQLITE)
./FingerPrinter TestSet/Angelssnippet.wav > TestSet/Angelssnippet.csv
python3 PrintMatcher.py TestSet/Angelssnippet.csv $(SQLITE)
TestFourierTransform: TestFourierTransform.o FourierTransform.o
$(CC) $(CFLAGS) -o TestFourierTransform $^ $(LDFLAGS) -lm
FingerPrinter: FingerPrinter.o FourierTransform.o WAVReading.o
$(CC) $(CFLAGS) -o FingerPrinter $^ $(LDFAGS) -lm
clean:
rm -f *.o TestFourierTransform FingerPrinter