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