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