From: Adam Dickmeiss Date: Tue, 16 Aug 1994 16:19:23 +0000 (+0000) Subject: Cached files with fixed block size. X-Git-Tag: ZEBRA.1.0~925 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=0a7aae7ab05e08e92b8d3cfd1ff68942f4321fea Cached files with fixed block size. --- diff --git a/bfile/Makefile b/bfile/Makefile new file mode 100644 index 0000000..efc75e6 --- /dev/null +++ b/bfile/Makefile @@ -0,0 +1,32 @@ + +SHELL=/bin/sh +INCLUDE=-I../include +TPROG=btest +CFLAGS=-g -Wall +DEFS=$(INCLUDE) +LIB=../lib/bfile.a +PO = open.o close.o xmalloc.o rdwr.o +CPP=cc -E + +all: $(LIB) + +$(TPROG): $(TPROG).o $(LIB) + $(CC) -o $(TPROG) $(TPROG).o $(LIB) + +$(LIB): $(PO) + rm -f $(LIB) + ar qc $(LIB) $(PO) + ranlib $(LIB) + +.c.o: + $(CC) -c $(DEFS) $(CFLAGS) $< + +clean: + rm -f *.[oa] $(TPROG) core mon.out gmon.out + +dep depend: + $(CPP) $(INCLUDE) -M *.c >.depend + +#ifeq (.depend,$(wildcard .depend)) +include .depend +#endif