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