1 # Makefile for resource management/logging facilities.
2 # Europagate, 1994-1995.
5 # Revision 1.2 1995/02/22 08:51:44 adam
6 # Definition of CPP changed.
8 # Revision 1.1.1.1 1995/02/09 17:27:11 adam
9 # Initial version of email gateway under CVS control.
13 CFLAGS=-Wall -pedantic -ansi
17 LIB=../lib/libres+log.a
21 all: $(TPROG1) $(TPROG2)
23 $(TPROG1): $(TPROG1).o $(LIB)
24 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB)
26 $(TPROG2): $(TPROG2).o $(LIB)
27 $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o $(LIB)
35 $(CC) -c $(DEFS) $(CFLAGS) $<
38 rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
43 mv Makefile Makefile.tmp
44 sed '/^#Depend/q' <Makefile.tmp >Makefile
45 $(CPP) $(INCLUDE) -M *.c >>Makefile
49 $(CPP) $(INCLUDE) -M *.c >.depend
51 ifeq (.depend,$(wildcard .depend))
55 #Depend --- DOT NOT DELETE THIS LINE