X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2FMakefile;h=52fff4dacc00e949e46310298aece36bba993aa0;hb=a02c4cf957603c707fe9f4fde94a468f1d030dfb;hp=51d22d4fd7c03b230247ea5b63e6c444bc633fd6;hpb=f9c29149e90d3710b0d6f2d6a7a4cffcba401fe6;p=idzebra-moved-to-github.git diff --git a/bfile/Makefile b/bfile/Makefile index 51d22d4..52fff4d 100644 --- a/bfile/Makefile +++ b/bfile/Makefile @@ -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 + $(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