Timeout (idletime) adjustable. Minor changes in kernel.
[egate.git] / kernel / Makefile
1 # Makefile for Email gateway CCL
2 # Europagate, 1995
3 #
4 # $Log: Makefile,v $
5 # Revision 1.14  1995/04/17 09:34:23  adam
6 # Timeout (idletime) adjustable. Minor changes in kernel.
7 #
8 # Revision 1.13  1995/03/27  12:51:04  adam
9 # New log level in use: GW_LOG_ERRNO.
10 #
11 # Revision 1.12  1995/03/27  08:23:57  adam
12 # First use of gip interface and gw-db.
13 # First work on eti program.
14 #
15 # Revision 1.11  1995/03/03  17:19:09  adam
16 # Smarter presentation. Bug fix in email header interpretation.
17 #
18 # Revision 1.10  1995/03/01  14:32:24  adam
19 # Better diagnostics. Default is, that only one database selected when
20 # several are known.
21 #
22 # Revision 1.9  1995/02/23  08:32:14  adam
23 # Changed header.
24 #
25 # Revision 1.7  1995/02/22  08:51:34  adam
26 # Output function can be customized in fml, which is used to print
27 # the reply to reply_fd.
28 #
29 # Revision 1.6  1995/02/21  14:00:08  adam
30 # Minor changes.
31 #
32 # Revision 1.5  1995/02/21  12:11:59  adam
33 # Diagnostic record with error info. observed.
34 #
35 # Revision 1.4  1995/02/20  21:16:16  adam
36 # FML support. Bug fixes. Profile for drewdb.
37 #
38 # Revision 1.3  1995/02/17  09:08:35  adam
39 # Reply with subject. CCL base command implemented.
40 #
41 # Revision 1.2  1995/02/16  18:35:07  adam
42 # First use of Zdist library. Search requests are supported.
43 # Present requests are not supported yet.
44 #
45 # Revision 1.1  1995/02/15  17:45:29  adam
46 # First version of email gateway kernel. Email requests are read
47 # from stdin. The output is transferred to an MTA if 'From' is
48 # found in the header - or stdout if absent. No Z39.50 client is used.
49 #
50 #
51 SHELL=/bin/sh
52
53 ZPRE=/home/proj/zdist/zdist102b1-1/libz3950
54 ZINC=-I$(ZPRE)
55 ZLIB=$(ZPRE)/libz3950.a
56
57 INCLUDE=-I../include
58 #CFLAGS=-g -Wall 
59 CPP=$(CC) -E
60 DEFS=$(INCLUDE) -DUSE_FML=1
61 USELIBS1=../lib/ccl.a ../lib/fml.a ../lib/libzass.a ../lib/libres+log.a \
62 ../lib/util.a $(ZLIB) $(REGEXOBJ)
63
64 PROG1=kernel
65 O1=main.o urp.o
66
67 PROG2=eti
68 O2=eti.o
69
70 all: $(PROG1) $(PROG2)
71
72 $(PROG1): $(O1) $(USELIBS1)
73         $(CC) $(CFLAGS) -o $(PROG1) $(O1) $(USELIBS1) $(NETLIB)
74
75 $(PROG2): $(O2) $(USELIBS1)
76         $(CC) $(CFLAGS) -o $(PROG2) $(O2) $(USELIBS1) $(NETLIB)
77
78 .c.o:
79         $(CC) -c $(DEFS) $(CFLAGS) $<
80
81 clean:
82         rm -f *.log *.[oa] $(PROG1) $(PROG2) 
83         rm -f core mon.out gmon.out errlist *~ fifo.* 
84
85 depend: depend2
86
87 depend1:
88         sed '/^#Depend/q' <Makefile >Makefile.tmp
89         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
90         mv -f Makefile.tmp Makefile
91
92 depend2:
93         $(CPP) $(DEFS) -M *.c >.depend  
94
95 #GNU make style depend
96 ifeq (.depend,$(wildcard .depend))
97 include .depend
98 endif
99
100 #Depend --- DOT NOT DELETE THIS LINE