Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
</$objtype/mkfile
2
 
3
TARG = smtpd\
4
	smtp\
5
 
6
OFILES=
7
 
8
LIB=../common/libcommon.a$O\
9
 
10
HFILES=../common/common.h\
11
	../common/sys.h\
12
	smtpd.h\
13
	smtp.h\
14
 
15
BIN=/$objtype/bin/upas
16
UPDATE=\
17
	greylist.c\
18
	mkfile\
19
	mxdial.c\
20
	rfc822.y\
21
	rmtdns.c\
22
	smtpd.y\
23
	spam.c\
24
	$HFILES\
25
	${OFILES:%.$O=%.c}\
26
	${TARG:%=%.c}\
27
 
28
</sys/src/cmd/mkmany
29
CFLAGS=$CFLAGS -I../common -D'SPOOL="/mail"'
30
 
31
$O.smtpd:	smtpd.tab.$O rmtdns.$O spam.$O rfc822.tab.$O greylist.$O
32
$O.smtp:	rfc822.tab.$O mxdial.$O
33
 
34
smtpd.$O: 	smtpd.h
35
 
36
smtp.$O to.$O: 	smtp.h
37
 
38
smtpd.tab.c: smtpd.y smtpd.h
39
	yacc -o xxx smtpd.y
40
	sed 's/yy/zz/g' < xxx > $target
41
	rm xxx
42
 
43
rfc822.tab.c: rfc822.y smtp.h
44
	yacc -d -o $target rfc822.y
45
 
46
clean:V:
47
	rm -f *.[$OS] [$OS].$TARG smtpd.tab.c rfc822.tab.c y.tab.? y.debug $TARG
48
 
49
../common/libcommon.a$O:
50
	@{ 	
51
		cd ../common
52
		mk
53
	}