Added simple WCSA
[SXSI/TextCollection.git] / swcsa / intIndex / Makefile
diff --git a/swcsa/intIndex/Makefile b/swcsa/intIndex/Makefile
new file mode 100755 (executable)
index 0000000..3fb9c0c
--- /dev/null
@@ -0,0 +1,55 @@
+SRCDIR = .
+SRCDIRCSA = .
+SRCDIRUTILS = ../utils
+CC          = g++
+
+ifndef CFLAGS  ##possibly already defined by the "main Makefile".
+       ##CFLAGS = -O9 -m32
+       CFLAGS      = -O9 -m32 
+       ##CFLAGS      = -g -m32 -O0
+endif
+
+LIBINTINDEX    = icsa.a
+
+all: intIndex cleanO
+
+
+intIndex: icsa.o parameters.o basics.o huff.o bitmap.o psiHuffmanRLE.o psiDeltaCode.o psiGonzalo.o
+       ar rc $(LIBINTINDEX) icsa.o psiHuffmanRLE.o psiDeltaCode.o psiGonzalo.o  
+                       #not including "parameters.o basics.o bitmap.o huff.o" as they are included by wcsa
+                       #they are already included into the library by the presentation layer.
+
+icsa.o: parameters.o basics.o bitmap.o huff.o psiHuffmanRLE.o psiDeltaCode.o psiGonzalo.o 
+        $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRCSA)/icsa.c 
+
+psiHuffmanRLE.o: huff.o
+       $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRCSA)/psiHuffmanRLE.c 
+
+psiDeltaCode.o:
+       $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRCSA)/psiDeltaCode.c 
+
+psiGonzalo.o: huff.o
+       $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRCSA)/psiGonzalo.c 
+
+parameters.o: 
+       $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRUTILS)/parameters.c 
+       
+       
+huff.o: 
+       $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRUTILS)/huff.c
+
+basics.o: 
+       $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRUTILS)/basics.c
+
+bitmap.o: 
+       $(CC) $(CFLAGS) -c $(SRCDIR)/$(SRCDIRUTILS)/bitmap.c
+
+
+cleanO: 
+       rm -f *.o
+       
+clean:
+       rm -rf *~ *% *.o core *.bak icsa.a 
+
+tar:
+       tar czvf icsa.tar.gz  Makefile