8f02954e40952df85aea0acab29f33290dcc0948
[SXSI/TextCollection.git] / swcsa / intIndex / Makefile
1 SRCDIR = .
2 SRCDIRCSA = .
3 SRCDIRUTILS = ../utils
4 CC          = g++
5
6 ifndef CFLAGS  ##possibly already defined by the "main Makefile".
7         ##CFLAGS = -O9 -m32
8         CFLAGS      = -O9 -m32
9         ##CFLAGS      = -g -m32 -O0
10 endif
11
12 LIBINTINDEX     = icsa.a
13
14 all: intIndex cleanO
15
16
17 intIndex: icsa.o parameters.o basics.o huff.o bitmap.o psiHuffmanRLE.o psiDeltaCode.o psiGonzalo.o
18         ar rc $(LIBINTINDEX) icsa.o psiHuffmanRLE.o psiDeltaCode.o psiGonzalo.o
19                         #not including "parameters.o basics.o bitmap.o huff.o" as they are included by wcsa
20                         #they are already included into the library by the presentation layer.
21
22 icsa.o: parameters.o basics.o bitmap.o huff.o psiHuffmanRLE.o psiDeltaCode.o psiGonzalo.o
23          $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRCSA)/icsa.c
24
25 psiHuffmanRLE.o: huff.o
26         $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRCSA)/psiHuffmanRLE.c
27
28 psiDeltaCode.o:
29         $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRCSA)/psiDeltaCode.c
30
31 psiGonzalo.o: huff.o
32         $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRCSA)/psiGonzalo.c
33
34 parameters.o:
35         $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRUTILS)/parameters.c
36
37
38 huff.o:
39         $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRUTILS)/huff.c
40
41 basics.o:
42         $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRUTILS)/basics.c
43
44 bitmap.o:
45         $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRUTILS)/bitmap.c
46
47
48 cleanO:
49         rm -f *.o
50
51 clean:
52         rm -rf *~ *% *.o core *.bak icsa.a
53
54 tar:
55         tar czvf icsa.tar.gz  Makefile