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