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