X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=bfile%2FMakefile;h=5c803077fa7e6d1f39bc4f013b2da6b8c4ddd320;hb=76474239da7b68e6dd05b3cc7528b85cb3d29b84;hp=2589c53a3011a1364cef96b769e8c8a644b0a485;hpb=461e9d67822f7f6ae72a0522cb6e9960dedae501;p=idzebra-moved-to-github.git diff --git a/bfile/Makefile b/bfile/Makefile index 2589c53..5c80307 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 DEFS=$(INCLUDE) LIB=../lib/bfile.a -PO = bfile.o +PO = bfile.o mfile.o CPP=cc -E all: $(LIB) @@ -21,11 +21,21 @@ $(LIB): $(PO) $(CC) -c $(DEFS) $(CFLAGS) $< clean: - rm -f *.[oa] $(TPROG) core mon.out gmon.out + 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