X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isam%2FMakefile;h=21fa8c99e280453ea9f4c49ce8b5901eb2d1fc78;hb=edf09fc5529eae3e8214a432058b4c07b2b8d2f9;hp=22421815887dd8841574f6b09ea5882343aa19d9;hpb=19fae05523bb7d129b51ee2f4f137390e68b8fbc;p=idzebra-moved-to-github.git diff --git a/isam/Makefile b/isam/Makefile index 2242181..21fa8c9 100644 --- a/isam/Makefile +++ b/isam/Makefile @@ -1,16 +1,35 @@ +# Copyright (C) 1994, Index Data I/S +# All rights reserved. +# Sebastian Hammer, Adam Dickmeiss +# $Id: Makefile,v 1.20 1996-10-29 13:56:51 adam Exp $ + SHELL=/bin/sh -INCLUDE=-I../include -CFLAGS=-g -Wall -pedantic +RANLIB=ranlib + +YAZLIB=-lyaz +YAZINC= + +INCLUDE=-I../include $(YAZINC) DEFS=$(INCLUDE) LIB=../lib/isam.a -PO = isutil.o isam.o -CPP=cc -E +PO = isam.o isutil.o rootblk.o memory.o physical.o +CPP=$(CC) -E all: $(LIB) +alll: $(LIB) # isam-test issh + +test: test.c $(LIB) + $(CC) -g -o test -I../include test.c \ + ../lib/isam.a ../lib/bfile.a ../lib/zebrautl.a $(YAZLIB) + isam-test: isam-test.c $(LIB) $(CC) -g -o isam-test -I../include isam-test.c \ - ../lib/isam.a ../lib/bfile.a ../lib/util.a + ../lib/isam.a ../lib/bfile.a ../lib/zebrautl.a $(YAZLIB) + +issh: issh.c $(LIB) + $(CC) -g -o issh $(INCLUDE) issh.c \ + ../lib/isam.a ../lib/bfile.a ../lib/zebrautl.a $(YAZLIB) #$(TPROG): $(TPROG).o $(LIB) # $(CC) -o $(TPROG) $(TPROG).o $(LIB) @@ -18,17 +37,26 @@ isam-test: isam-test.c $(LIB) $(LIB): $(PO) rm -f $(LIB) ar qc $(LIB) $(PO) - ranlib $(LIB) + $(RANLIB) $(LIB) .c.o: $(CC) -c $(DEFS) $(CFLAGS) $< clean: - rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist isam-test + rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist test isam-test issh + +depend: depend2 -dep depend: - $(CPP) $(INCLUDE) -M *.c >.depend +depend1: + sed '/^#Depend/q' Makefile.tmp + $(CPP) $(DEFS) -M *.c >>Makefile.tmp + mv -f Makefile.tmp Makefile + +depend2: + $(CPP) $(DEFS) -M *.c >.depend ifeq (.depend,$(wildcard .depend)) include .depend endif + +#Depend --- DOT NOT DELETE THIS LINE