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