Debug swcsa
[SXSI/TextCollection.git] / lzindex / makefile
1 #FLAGS = -g 
2 FLAGS = -O9 -fomit-frame-pointer -W -Wall -Winline -DDEBUG=0 -DNDEBUG=1 
3
4 all: lztrie.a
5
6 lztrie.a: lztrie.o nodemap.o position.o trie.o heap.o parentheses.o bitmap.o hash.o basics.o
7         ar rc lztrie.a lztrie.o nodemap.o position.o trie.o heap.o parentheses.o bitmap.o hash.o basics.o
8
9 lztrie.o: lztrie.c
10         gcc $(FLAGS) -c lztrie.c
11 nodemap.o: nodemap.c
12         gcc $(FLAGS) -c nodemap.c
13 position.o: position.c
14         gcc $(FLAGS) -c position.c
15 trie.o: trie.c
16         gcc $(FLAGS) -c trie.c
17 heap.o: heap.c
18         gcc $(FLAGS) -c heap.c 
19 parentheses.o: parentheses.c
20         gcc $(FLAGS) -c parentheses.c
21 bitmap.o: bitmap.c
22         gcc $(FLAGS) -c bitmap.c
23 hash.o: hash.c
24         gcc $(FLAGS) -c hash.c
25 basics.o: basics.c
26         gcc $(FLAGS) -c basics.c 
27
28 basics.h: makefile
29         touch basics.h
30 bitmap.h: basics.h
31         touch bitmap.h
32 hash.h: basics.h
33         touch hash.h
34 lztrie.h: basics.h parentheses.h
35         touch lztrie.h
36 position.h: lztrie.h nodemap.h
37         touch position.h
38 nodemap.h: basics.h lztrie.h
39         touch nodemap.h
40 parentheses.h: basics.h bitmap.h hash.h
41         touch parentheses.h
42 trie.h: basics.h heap.h
43         touch trie.h
44 heap.h: basics.h
45         touch heap.h
46 basics.c: basics.h
47         touch basics.c
48 hash.c: hash.h
49         touch hash.c
50 bitmap.c: bitmap.h
51         touch bitmap.c
52 lztrie.c: lztrie.h
53         touch lztrie.c
54 position.c: position.h
55         touch position.c
56 nodemap.c: nodemap.h
57         touch nodemap.c
58 parentheses.c: parentheses.h
59         touch parentheses.c
60 trie.c: trie.h
61         touch trie.c
62 heap.c: heap.h
63         touch heap.c
64
65 clean:
66         rm -f *.a *.o