X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=bfile%2FMakefile;h=52fff4dacc00e949e46310298aece36bba993aa0;hb=f03a35208f8b0fb19b79708c60153f6e522c1074;hp=1857ad504d3ead5c96d589153bedf462dfb9753a;hpb=99040ac4817ccb7520a6b6464b1661215e3c1721;p=idzebra-moved-to-github.git diff --git a/bfile/Makefile b/bfile/Makefile index 1857ad5..52fff4d 100644 --- a/bfile/Makefile +++ b/bfile/Makefile @@ -1,10 +1,10 @@ SHELL=/bin/sh INCLUDE=-I../include TPROG=btest -CFLAGS=-g -Wall +CFLAGS=-g -Wall -pedantic -ansi DEFS=$(INCLUDE) LIB=../lib/bfile.a -PO = bfile.o +PO = bfile.o mfile.o CPP=cc -E all: $(LIB) @@ -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