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