The first utility modules.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 16 Aug 1994 15:57:21 +0000 (15:57 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 16 Aug 1994 15:57:21 +0000 (15:57 +0000)
util/Makefile [new file with mode: 0644]

diff --git a/util/Makefile b/util/Makefile
new file mode 100644 (file)
index 0000000..33d4079
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright (C) 1994, Index Data I/S 
+# All rights reserved.
+# Sebastian Hammer, Adam Dickmeiss
+# $Id: Makefile,v 1.1 1994-08-16 15:57:21 adam Exp $
+
+SHELL=/bin/sh
+INCLUDE=-I../include
+TPROG=opt-test
+CFLAGS=-g -Wall
+DEFS=$(INCLUDE)
+LIB=../lib/util.a
+PO = options.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