X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=isam%2FMakefile;h=10810280cea0dca8d4e16e4426cb641a96a9e389;hb=c6c40893444f2288cdea91d30dd92df0f285e67d;hp=da4830e31eb037f17b22ded41d091695ec59a303;hpb=2fdd6275d8becc9c2317bd2b23daa3c569926392;p=idzebra-moved-to-github.git diff --git a/isam/Makefile b/isam/Makefile index da4830e..1081028 100644 --- a/isam/Makefile +++ b/isam/Makefile @@ -3,7 +3,7 @@ INCLUDE=-I../include CFLAGS=-g -Wall -pedantic DEFS=$(INCLUDE) LIB=../lib/isam.a -PO = isutil.o isam.o +PO = isam.o isutil.o rootblk.o memory.o physical.o CPP=cc -E all: $(LIB) @@ -12,6 +12,10 @@ 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 +issh: issh.c $(LIB) + $(CC) -g -o issh -I../include issh.c \ + ../lib/isam.a ../lib/bfile.a ../lib/util.a + #$(TPROG): $(TPROG).o $(LIB) # $(CC) -o $(TPROG) $(TPROG).o $(LIB) @@ -26,9 +30,19 @@ $(LIB): $(PO) clean: rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist isam-test -dep depend: - $(CPP) $(INCLUDE) -M *.c >.depend +depend: depend2 + +depend1: + mv Makefile Makefile.tmp + sed '/^#Depend/q' Makefile + $(CPP) $(INCLUDE) -M *.c >>Makefile + -rm Makefile.tmp -#ifeq (.depend,$(wildcard .depend)) +depend2: + $(CPP) $(INCLUDE) -M *.c >.depend + +ifeq (.depend,$(wildcard .depend)) include .depend -#endif +endif + +#Depend --- DOT NOT DELETE THIS LINE