1 # Makefile for resource management/logging facilities.
2 # Europagate, 1994-1995.
5 # Revision 1.1 1995/02/09 17:27:10 adam
10 CFLAGS=-Wall -pedantic -ansi
15 LIB=../lib/libres+log.a
19 all: $(TPROG1) $(TPROG2)
21 $(TPROG1): $(TPROG1).o $(LIB)
22 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB)
24 $(TPROG2): $(TPROG2).o $(LIB)
25 $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o $(LIB)
33 $(CC) -c $(DEFS) $(CFLAGS) $<
36 rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
41 mv Makefile Makefile.tmp
42 sed '/^#Depend/q' <Makefile.tmp >Makefile
43 $(CPP) $(INCLUDE) -M *.c >>Makefile
47 $(CPP) $(INCLUDE) -M *.c >.depend
49 ifeq (.depend,$(wildcard .depend))
53 #Depend --- DOT NOT DELETE THIS LINE