Trivial
[idzebra-moved-to-github.git] / isam / Makefile
index da4830e..38c6a66 100644 (file)
@@ -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
 CPP=cc -E
 
 all: $(LIB)
@@ -27,8 +27,8 @@ clean:
        rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist isam-test
 
 dep depend:
-       $(CPP) $(INCLUDE) -M *.c >.depend
+       mv Makefile Makefile.tmp
+       sed '/^#Depend/q' <Makefile.tmp >Makefile
+       $(CPP) $(INCLUDE) -M *.c >>Makefile
 
-#ifeq (.depend,$(wildcard .depend))
-include .depend
-#endif
+#Depend --- DOT NOT DELETE THIS LINE