summaryrefslogtreecommitdiffstats
path: root/src/cmd/upas/send/mkfile
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-10-29 16:26:44 +0000
committerrsc <devnull@localhost>2005-10-29 16:26:44 +0000
commit5cdb17983ae6e6367ad7a940cb219eab247a9304 (patch)
tree8ca1ef49af2a96e7daebe624d91fdf679814a057 /src/cmd/upas/send/mkfile
parentcd3745196389579fb78b9b01ef1daefb5a57aa71 (diff)
downloadplan9port-5cdb17983ae6e6367ad7a940cb219eab247a9304.tar.gz
plan9port-5cdb17983ae6e6367ad7a940cb219eab247a9304.zip
Thanks to John Cummings.
Diffstat (limited to 'src/cmd/upas/send/mkfile')
-rw-r--r--src/cmd/upas/send/mkfile52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/cmd/upas/send/mkfile b/src/cmd/upas/send/mkfile
new file mode 100644
index 00000000..a49fde17
--- /dev/null
+++ b/src/cmd/upas/send/mkfile
@@ -0,0 +1,52 @@
+<$PLAN9/src/mkhdr
+
+TARG=send\
+ filter
+
+UOFILES=message.$O\
+ dest.$O\
+ log.$O\
+ skipequiv.$O\
+
+OFILES=\
+ $UOFILES\
+ ../smtp/rfc822.tab.$O\
+
+SMOBJ=main.$O\
+ bind.$O\
+ rewrite.$O\
+ local.$O\
+ translate.$O\
+ authorize.$O\
+ gateway.$O\
+ cat_mail.$O\
+
+LIB=../common/libcommon.av\
+
+HFILES=send.h\
+ ../common/common.h\
+ ../common/sys.h\
+
+LIB=../common/libcommon.a\
+
+BIN=$PLAN9/bin/upas
+UPDATE=\
+ mkfile\
+ $HFILES\
+ ${UOFILES:%.$O=%.c}\
+ ${SMOBJ:%.$O=%.c}\
+ ${TARG:%=%.c}\
+
+<$PLAN9/src/mkmany
+CFLAGS=$CFLAGS -I../common
+
+$O.send: $SMOBJ $OFILES
+ $LD $LDFLAGS -o $target $prereq $LIB
+
+message.$O: ../smtp/y.tab.h
+
+../smtp/y.tab.h ../smtp/rfc822.tab.$O: ../smtp/rfc822.y
+# @{
+ cd ../smtp
+ mk rfc822.tab.$O
+# }