1 # Makefile for Email gateway CCL
5 # Revision 1.21 1995/04/20 16:10:45 adam
6 # Modified to work with non-blocking zass-api. Not using non-blocking
9 # Revision 1.20 1995/04/20 15:24:59 quinn
10 # *** empty log message ***
12 # Revision 1.19 1995/04/19 16:08:20 adam
15 # Revision 1.18 1995/04/19 16:01:57 adam
16 # Some hacks to get the FIFO communication work!! Isn't reliable.
17 # Resource gw.account added - default account info.
19 # Revision 1.17 1995/04/19 10:46:17 adam
20 # Persistency works much better now. New command: status - history-like
22 # Revision 1.16 1995/04/19 07:30:56 adam
23 # First work on Z39.50 persistence.
25 # Revision 1.15 1995/04/17 11:27:29 quinn
28 # Revision 1.14 1995/04/17 09:34:23 adam
29 # Timeout (idletime) adjustable. Minor changes in kernel.
31 # Revision 1.13 1995/03/27 12:51:04 adam
32 # New log level in use: GW_LOG_ERRNO.
34 # Revision 1.12 1995/03/27 08:23:57 adam
35 # First use of gip interface and gw-db.
36 # First work on eti program.
38 # Revision 1.11 1995/03/03 17:19:09 adam
39 # Smarter presentation. Bug fix in email header interpretation.
41 # Revision 1.10 1995/03/01 14:32:24 adam
42 # Better diagnostics. Default is, that only one database selected when
45 # Revision 1.9 1995/02/23 08:32:14 adam
48 # Revision 1.7 1995/02/22 08:51:34 adam
49 # Output function can be customized in fml, which is used to print
50 # the reply to reply_fd.
52 # Revision 1.6 1995/02/21 14:00:08 adam
55 # Revision 1.5 1995/02/21 12:11:59 adam
56 # Diagnostic record with error info. observed.
58 # Revision 1.4 1995/02/20 21:16:16 adam
59 # FML support. Bug fixes. Profile for drewdb.
61 # Revision 1.3 1995/02/17 09:08:35 adam
62 # Reply with subject. CCL base command implemented.
64 # Revision 1.2 1995/02/16 18:35:07 adam
65 # First use of Zdist library. Search requests are supported.
66 # Present requests are not supported yet.
68 # Revision 1.1 1995/02/15 17:45:29 adam
69 # First version of email gateway kernel. Email requests are read
70 # from stdin. The output is transferred to an MTA if 'From' is
71 # found in the header - or stdout if absent. No Z39.50 client is used.
76 #ZPRE=/home/proj/zdist/zdist102b1-1/libz3950
78 #ZLIB=$(ZPRE)/libz3950.a
80 ZLIB=../../yaz/lib/libyaz.a
85 DEFS=$(INCLUDE) -DUSE_FML=1
86 USELIBS1=../lib/ccl.a ../lib/fml.a ../lib/libzass.a ../lib/libres+log.a \
87 ../lib/util.a $(ZLIB) $(REGEXOBJ)
90 O1=main.o urp.o persist.o
95 all: $(PROG1) $(PROG2)
97 $(PROG1): $(O1) $(USELIBS1)
98 $(CC) $(CFLAGS) -o $(PROG1) $(O1) $(USELIBS1) $(NETLIB)
100 $(PROG2): $(O2) $(USELIBS1)
101 $(CC) $(CFLAGS) -o $(PROG2) $(O2) $(USELIBS1) $(NETLIB)
104 $(CC) -c $(DEFS) $(CFLAGS) $<
107 rm -f *.log *.[oa] $(PROG1) $(PROG2)
108 rm -f core mon.out gmon.out errlist *~ fifo.*
113 sed '/^#Depend/q' <Makefile >Makefile.tmp
114 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
115 mv -f Makefile.tmp Makefile
118 $(CPP) $(DEFS) -M *.c >.depend
120 #GNU make style depend
121 ifeq (.depend,$(wildcard .depend))
125 #Depend --- DOT NOT DELETE THIS LINE