# Makefile for resource management/logging facilities. # Europagate, 1994-1995. # # $Log: Makefile,v $ # Revision 1.9 1996/05/22 08:37:25 adam # Removed CFLAGS definition. # # Revision 1.8 1995/11/10 10:19:35 adam # Test programs not build on 'make all'. # # Revision 1.7 1995/05/03 07:38:16 adam # New functions gw_res_int and gw_res_bool. # # Revision 1.6 1995/04/17 09:36:03 adam # Minor changes. # # Revision 1.5 1995/03/27 12:51:10 adam # New log level in use: GW_LOG_ERRNO. # # Revision 1.4 1995/02/23 08:32:20 adam # Changed header. # # Revision 1.2 1995/02/22 08:51:44 adam # Definition of CPP changed. # # Revision 1.1.1.1 1995/02/09 17:27:11 adam # Initial version of email gateway under CVS control. # SHELL=/bin/sh INCLUDE=-I../include CPP=$(CC) -E TPROG1=gw-log-test TPROG2=gw-res-test LIB=../lib/libres+log.a PO=gw-log.o gw-res.o gw-res-bool.o gw-res-int.o DEFS=$(INCLUDE) all: $(LIB) $(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: sed '/^#Depend/q' Makefile.tmp $(CPP) $(DEFS) -M *.c >>Makefile.tmp mv -f Makefile.tmp Makefile depend2: $(CPP) $(DEFS) -M *.c >.depend #GNU make style depend ifeq (.depend,$(wildcard .depend)) include .depend endif #Depend --- DOT NOT DELETE THIS LINE