Added -ansi to CFLAGS.
[idzebra-moved-to-github.git] / bfile / Makefile
index 51d22d4..52fff4d 100644 (file)
@@ -1,7 +1,7 @@
 SHELL=/bin/sh
 INCLUDE=-I../include
 TPROG=btest
-CFLAGS=-g -Wall -pedantic
+CFLAGS=-g -Wall -pedantic -ansi
 DEFS=$(INCLUDE)
 LIB=../lib/bfile.a
 PO = bfile.o mfile.o
@@ -23,9 +23,19 @@ $(LIB): $(PO)
 clean:
        rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist
 
-dep depend:
-       $(CPP) $(INCLUDE) -M *.c >.depend
+depend: depend2
+
+depend1:
+       mv Makefile Makefile.tmp
+       sed '/^#Depend/q' <Makefile.tmp >Makefile
+       $(CPP) $(INCLUDE) -M *.c >>Makefile
+       -rm Makefile.tmp
+
+depend2:
+       $(CPP) $(INCLUDE) -M *.c >.depend       
 
 ifeq (.depend,$(wildcard .depend))
 include .depend
 endif
+
+#Depend --- DOT NOT DELETE THIS LINE