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