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