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