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