Email gateway obeys 'Reply-To:' in header.
[egate.git] / kernel / Makefile
1 # Makefile for Email gateway CCL
2 # Europagate, 1995
3 #
4 # $Log: Makefile,v $
5 # Revision 1.28  1996/01/24 08:28:07  adam
6 # Fix.
7 #
8 # Revision 1.27  1995/07/05  10:20:06  adam
9 # Z definitions duplicated from ../Makefile.
10 #
11 # Revision 1.26  1995/07/03  08:20:12  adam
12 # More help information and better diagnostics.
13 #
14 # Revision 1.25  1995/05/19  13:25:58  adam
15 # Bug fixes. Better command line options.
16 #
17 # Revision 1.24  1995/05/03  12:18:46  adam
18 # This code ran on dtbsun. Minor changes.
19 #
20 # Revision 1.23  1995/05/03  07:37:29  adam
21 # CCL commands stop/continue implemented. New functions gw_res_{int,bool}
22 # are used when possible.
23 #
24 # Revision 1.22  1995/05/01  12:43:26  adam
25 # First work on resource monitor program.
26 #
27 # Revision 1.21  1995/04/20  16:10:45  adam
28 # Modified to work with non-blocking zass-api. Not using non-blocking
29 # facility yet.
30 #
31 # Revision 1.20  1995/04/20  15:24:59  quinn
32 # *** empty log message ***
33 #
34 # Revision 1.19  1995/04/19  16:08:20  adam
35 # Minor changes.
36 #
37 # Revision 1.18  1995/04/19  16:01:57  adam
38 # Some hacks to get the FIFO communication work!! Isn't reliable.
39 # Resource gw.account added - default account info.
40 #
41 # Revision 1.17  1995/04/19  10:46:17  adam
42 # Persistency works much better now. New command: status - history-like
43 #
44 # Revision 1.16  1995/04/19  07:30:56  adam
45 # First work on Z39.50 persistence.
46 #
47 # Revision 1.15  1995/04/17  11:27:29  quinn
48 # Smallish
49 #
50 # Revision 1.14  1995/04/17  09:34:23  adam
51 # Timeout (idletime) adjustable. Minor changes in kernel.
52 #
53 # Revision 1.13  1995/03/27  12:51:04  adam
54 # New log level in use: GW_LOG_ERRNO.
55 #
56 # Revision 1.12  1995/03/27  08:23:57  adam
57 # First use of gip interface and gw-db.
58 # First work on eti program.
59 #
60 # Revision 1.11  1995/03/03  17:19:09  adam
61 # Smarter presentation. Bug fix in email header interpretation.
62 #
63 # Revision 1.10  1995/03/01  14:32:24  adam
64 # Better diagnostics. Default is, that only one database selected when
65 # several are known.
66 #
67 # Revision 1.9  1995/02/23  08:32:14  adam
68 # Changed header.
69 #
70 # Revision 1.7  1995/02/22  08:51:34  adam
71 # Output function can be customized in fml, which is used to print
72 # the reply to reply_fd.
73 #
74 # Revision 1.6  1995/02/21  14:00:08  adam
75 # Minor changes.
76 #
77 # Revision 1.5  1995/02/21  12:11:59  adam
78 # Diagnostic record with error info. observed.
79 #
80 # Revision 1.4  1995/02/20  21:16:16  adam
81 # FML support. Bug fixes. Profile for drewdb.
82 #
83 # Revision 1.3  1995/02/17  09:08:35  adam
84 # Reply with subject. CCL base command implemented.
85 #
86 # Revision 1.2  1995/02/16  18:35:07  adam
87 # First use of Zdist library. Search requests are supported.
88 # Present requests are not supported yet.
89 #
90 # Revision 1.1  1995/02/15  17:45:29  adam
91 # First version of email gateway kernel. Email requests are read
92 # from stdin. The output is transferred to an MTA if 'From' is
93 # found in the header - or stdout if absent. No Z39.50 client is used.
94 #
95 #
96 SHELL=/bin/sh
97
98 ZINC=-I../../yaz/include
99 ZLIB=../../yaz/lib/libyaz.a
100 ZDEFS=
101
102 INCLUDE=-I../include
103 #CFLAGS=-g -Wall 
104 CPP=$(CC) -E
105 DEFS=$(INCLUDE) -DUSE_FML=1
106
107 PROG1=kernel
108 O1=main.o urp.o persist.o
109 USELIBS1=../lib/ccl.a ../lib/fml.a ../lib/libzass.a ../lib/libres+log.a \
110 ../lib/util.a $(REGEXOBJ)
111
112 PROG2=eti
113 O2=eti.o
114 USELIBS2=../lib/libres+log.a ../lib/util.a 
115
116 PROG3=monitor
117 O3=monitor.o
118 USELIBS3=../lib/libres+log.a ../lib/util.a 
119
120 all: $(PROG1) $(PROG2) $(PROG3)
121
122 $(PROG1): $(O1) $(USELIBS1)
123         $(CC) $(CFLAGS) -o $(PROG1) $(O1) $(USELIBS1) $(ZLIB) $(NETLIB)
124
125 $(PROG2): $(O2) $(USELIBS2)
126         $(CC) $(CFLAGS) -o $(PROG2) $(O2) $(USELIBS2) $(ZLIB) $(NETLIB)
127
128 $(PROG3): $(O3) $(USELIBS3)
129         $(CC) $(CFLAGS) -o $(PROG3) $(O3) $(USELIBS3) $(ZLIB) $(NETLIB)
130
131 .c.o:
132         $(CC) -c $(DEFS) $(CFLAGS) $<
133
134 clean:
135         rm -f *.log *.[oa] $(PROG1) $(PROG2) $(PROG3)
136         rm -f core mon.out gmon.out errlist *~ fifo.*
137
138 depend: depend2
139
140 depend1:
141         sed '/^#Depend/q' <Makefile >Makefile.tmp
142         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
143         mv -f Makefile.tmp Makefile
144
145 depend2:
146         $(CPP) $(DEFS) -M *.c >.depend  
147
148 #GNU make style depend
149 ifeq (.depend,$(wildcard .depend))
150 include .depend
151 endif
152
153 #Depend --- DOT NOT DELETE THIS LINE