-
Notifications
You must be signed in to change notification settings - Fork 11
/
makefile
39 lines (28 loc) · 1.07 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
36
37
38
39
#select compile-time options for various operating systems
#though it might be possible to compile for 32-bit environment,
#its not likely to work well. Use 64 bit operating environments
#for rling
#ensure you have package libdb-dev installed
#COPTS=-DPOWERPC -maltivec
COPTS=-DINTEL
#COPTS=-DPOWERPC -DAIX -maltivec -maix64
all: rling getpass rehex splitlen dedupe
yarn.o: yarn.c
cc -fomit-frame-pointer -pthread -O3 $(COPTS) -c yarn.c
qsort_mt.o: qsort_mt.c
cc -fomit-frame-pointer -pthread -O3 $(COPTS) -c qsort_mt.c
rling.o: rling.c
cc -fomit-frame-pointer -pthread -O3 $(COPTS) -c rling.c
rling: rling.o yarn.o qsort_mt.o
cc $(COPTS) -pthread -o rling rling.o yarn.o qsort_mt.o
getpass: getpass.c
cc -fomit-frame-pointer -O3 $(COPTS) -o getpass getpass.c
rehex: rehex.c
cc -fomit-frame-pointer -O3 $(COPTS) -o rehex rehex.c
splitlen: splitlen.c
cc -fomit-frame-pointer -O3 $(COPTS) -o splitlen splitlen.c
dedupe: dedupe.c
cc -fomit-frame-pointer -O3 $(COPTS) -o dedupe dedupe.c -lJudy
clean:
rm -f rling getpass rehex splitlen dedupe
rm -f qsort_mt.o rling.o yarn.o