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