X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=bfile%2FMakefile;h=51d22d4fd7c03b230247ea5b63e6c444bc633fd6;hb=f587e6f61f53290598daf0ed5fcdcae019811559;hp=efc75e6135b1b36ccacccc727288d4db8806d94a;hpb=0a7aae7ab05e08e92b8d3cfd1ff68942f4321fea;p=idzebra-moved-to-github.git diff --git a/bfile/Makefile b/bfile/Makefile index efc75e6..51d22d4 100644 --- a/bfile/Makefile +++ b/bfile/Makefile @@ -1,11 +1,10 @@ - SHELL=/bin/sh INCLUDE=-I../include TPROG=btest -CFLAGS=-g -Wall +CFLAGS=-g -Wall -pedantic DEFS=$(INCLUDE) LIB=../lib/bfile.a -PO = open.o close.o xmalloc.o rdwr.o +PO = bfile.o mfile.o CPP=cc -E all: $(LIB) @@ -22,11 +21,11 @@ $(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 -#ifeq (.depend,$(wildcard .depend)) +ifeq (.depend,$(wildcard .depend)) include .depend -#endif +endif