Initial revision
[egate.git] / res+log / Makefile
diff --git a/res+log/Makefile b/res+log/Makefile
new file mode 100644 (file)
index 0000000..364cdb2
--- /dev/null
@@ -0,0 +1,53 @@
+# Makefile for resource management/logging facilities.
+# Europagate, 1994-1995.
+#
+# $Log: Makefile,v $
+# Revision 1.1  1995/02/09 17:27:10  adam
+# Initial revision
+#
+SHELL=/bin/sh
+INCLUDE=-I../include
+CFLAGS=-Wall -pedantic -ansi
+CPP=gcc -E
+CC=gcc
+TPROG1=gw-log-test
+TPROG2=gw-res-test
+LIB=../lib/libres+log.a
+PO=gw-log.o gw-res.o
+DEFS=$(INCLUDE)
+
+all: $(TPROG1) $(TPROG2)
+
+$(TPROG1): $(TPROG1).o $(LIB) 
+       $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB)
+
+$(TPROG2): $(TPROG2).o $(LIB) 
+       $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o $(LIB) 
+
+$(LIB): $(PO)
+       rm -f $(LIB)
+       ar qc $(LIB) $(PO)
+       ranlib $(LIB)
+
+.c.o:
+       $(CC) -c $(DEFS) $(CFLAGS) $<
+
+clean:
+       rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
+
+depend: depend2
+
+depend1:
+       mv Makefile Makefile.tmp
+       sed '/^#Depend/q' <Makefile.tmp >Makefile
+       $(CPP) $(INCLUDE) -M *.c >>Makefile
+       -rm Makefile.tmp
+
+depend2:
+       $(CPP) $(INCLUDE) -M *.c >.depend       
+
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif
+
+#Depend --- DOT NOT DELETE THIS LINE