forked from driedfruit/jenkins-minimal-perfect-hash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (24 loc) · 713 Bytes
/
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
36
37
38
39
40
41
CFLAGS = -O
.cc.o:
gcc $(CFLAGS) -c $<
O_TEST = lookupa.o recycle.o test_hash.o testperf.o
OBJECTS = lookupa.o recycle.o perfhex.o perfect.o
all: perfect test
perfect : $(OBJECTS)
gcc -o perfect $(OBJECTS) -lm
test : $(O_TEST)
gcc -o test $(O_TEST) -lm
clean:
rm ./*.o perfect test
# SAMPLE PHASH FILES
test_hash.c : perfect
./perfect -N test < samperf.txt
test_hash.h : perfect
./perfect -N test < samperf.txt
# DEPENDENCIES
lookupa.o : lookupa.c lookupa.h
recycle.o : recycle.c recycle.h
test_hash.o : test_hash.c test_hash.h lookupa.h
testperf.o : testperf.c recycle.h test_hash.h
perfhex.o : perfhex.c lookupa.h recycle.h perfect.h
perfect.o : perfect.c lookupa.h recycle.h perfect.h