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