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