Use gettimeofday(2) instead of time(2) to get log time in milliseconds.
[egate.git] / res+log / Makefile
1 # Makefile for resource management/logging facilities.
2 # Europagate, 1994-1995.
3 #
4 # $Log: Makefile,v $
5 # Revision 1.5  1995/03/27 12:51:10  adam
6 # New log level in use: GW_LOG_ERRNO.
7 #
8 # Revision 1.4  1995/02/23  08:32:20  adam
9 # Changed header.
10 #
11 # Revision 1.2  1995/02/22  08:51:44  adam
12 # Definition of CPP changed.
13 #
14 # Revision 1.1.1.1  1995/02/09  17:27:11  adam
15 # Initial version of email gateway under CVS control.
16 #
17 SHELL=/bin/sh
18 INCLUDE=-I../include
19 #CFLAGS=-Wall -pedantic -ansi
20 CPP=$(CC) -E
21 TPROG1=gw-log-test
22 TPROG2=gw-res-test
23 LIB=../lib/libres+log.a
24 PO=gw-log.o gw-res.o
25 DEFS=$(INCLUDE)
26
27 all: $(TPROG1) $(TPROG2)
28
29 $(TPROG1): $(TPROG1).o $(LIB) 
30         $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB)
31
32 $(TPROG2): $(TPROG2).o $(LIB) 
33         $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o $(LIB) 
34
35 $(LIB): $(PO)
36         rm -f $(LIB)
37         ar qc $(LIB) $(PO)
38         ranlib $(LIB)
39
40 .c.o:
41         $(CC) -c $(DEFS) $(CFLAGS) $<
42
43 clean:
44         rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
45
46 depend: depend2
47
48 depend1:
49         mv Makefile Makefile.tmp
50         sed '/^#Depend/q' <Makefile.tmp >Makefile
51         $(CPP) $(INCLUDE) -M *.c >>Makefile
52         -rm Makefile.tmp
53
54 depend2:
55         $(CPP) $(INCLUDE) -M *.c >.depend       
56
57 ifeq (.depend,$(wildcard .depend))
58 include .depend
59 endif
60
61 #Depend --- DOT NOT DELETE THIS LINE