X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=bfile%2FMakefile;h=52fff4dacc00e949e46310298aece36bba993aa0;hb=d8a3c1b4e3c628b65d6812348003c55d20056871;hp=3fa5f2fff900e936b29f938a373985f673007fd4;hpb=f8a58c40f789bc7f0694ad085b6af815a5ee1fc3;p=idzebra-moved-to-github.git diff --git a/bfile/Makefile b/bfile/Makefile index 3fa5f2f..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: +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