Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/upas/smtp/mkfile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


</$objtype/mkfile

TARG = smtpd\
	smtp\

OFILES=

LIB=../common/libcommon.a$O\

HFILES=../common/common.h\
	../common/sys.h\
	smtpd.h\
	smtp.h\

BIN=/$objtype/bin/upas
UPDATE=\
	greylist.c\
	mkfile\
	mxdial.c\
	rfc822.y\
	rmtdns.c\
	smtpd.y\
	spam.c\
	$HFILES\
	${OFILES:%.$O=%.c}\
	${TARG:%=%.c}\

</sys/src/cmd/mkmany
CFLAGS=$CFLAGS -I../common -D'SPOOL="/mail"'

$O.smtpd:	smtpd.tab.$O rmtdns.$O spam.$O rfc822.tab.$O greylist.$O
$O.smtp:	rfc822.tab.$O mxdial.$O

smtpd.$O: 	smtpd.h

smtp.$O to.$O: 	smtp.h

smtpd.tab.c: smtpd.y smtpd.h
	yacc -o xxx smtpd.y
	sed 's/yy/zz/g' < xxx > $target
	rm xxx

rfc822.tab.c: rfc822.y smtp.h
	yacc -d -o $target rfc822.y

clean:V:
	rm -f *.[$OS] [$OS].$TARG smtpd.tab.c rfc822.tab.c y.tab.? y.debug $TARG

../common/libcommon.a$O:
	@{ 	
		cd ../common
		mk
	}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].