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