X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=bfile%2FMakefile;h=52fff4dacc00e949e46310298aece36bba993aa0;hb=f03a35208f8b0fb19b79708c60153f6e522c1074;hp=db247416edc5cd472e4817f03ff931ff6ef500ba;hpb=bae5c11f9676cfe8f6d11c2d6442094d67711e79;p=idzebra-moved-to-github.git diff --git a/bfile/Makefile b/bfile/Makefile index db24741..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 -#ifeq (.depend,$(wildcard .depend)) +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 +endif + +#Depend --- DOT NOT DELETE THIS LINE