Cached files with fixed block size.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 16 Aug 1994 16:19:23 +0000 (16:19 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 16 Aug 1994 16:19:23 +0000 (16:19 +0000)
bfile/Makefile [new file with mode: 0644]

diff --git a/bfile/Makefile b/bfile/Makefile
new file mode 100644 (file)
index 0000000..efc75e6
--- /dev/null
@@ -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