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