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