X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;ds=sidebyside;f=swcsa%2FintIndex%2FMakefile;fp=swcsa%2FintIndex%2FMakefile;h=3fb9c0c0924ef0b9d9c31ba21374d3d9febef37e;hb=102e33b134075765e6d4e0c38bc1307568ce5602;hp=0000000000000000000000000000000000000000;hpb=ed61d2042a7ad7dd83bae32d7c31e69504dafa80;p=SXSI%2FTextCollection.git diff --git a/swcsa/intIndex/Makefile b/swcsa/intIndex/Makefile new file mode 100755 index 0000000..3fb9c0c --- /dev/null +++ b/swcsa/intIndex/Makefile @@ -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