aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas/ml/mkfile
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/upas/ml/mkfile')
-rw-r--r--src/cmd/upas/ml/mkfile40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/cmd/upas/ml/mkfile b/src/cmd/upas/ml/mkfile
new file mode 100644
index 00000000..5142e56f
--- /dev/null
+++ b/src/cmd/upas/ml/mkfile
@@ -0,0 +1,40 @@
+</$objtype/mkfile
+
+TARG=ml\
+ mlowner\
+ mlmgr\
+
+OFILES=\
+ common.$O\
+
+LIB=../common/libcommon.av\
+
+UHFILES= ../common/common.h\
+ ../common/sys.h\
+ dat.h\
+
+HFILES=$UHFILES\
+ ../smtp/y.tab.h\
+
+LIB=../common/libcommon.a$O\
+
+BIN=/$objtype/bin/upas
+
+UPDATE=\
+ mkfile\
+ $UHFILES\
+ ${TARG:%=%.c}\
+ ${OFILES:%.$O=%.c}\
+ ../smtp/rfc822.y\
+
+</sys/src/cmd/mkmany
+CFLAGS=$CFLAGS -I../common
+
+$O.ml: ../smtp/rfc822.tab.$O
+$O.mlowner: ../smtp/rfc822.tab.$O
+
+../smtp/y.tab.h ../smtp/rfc822.tab.$O:
+ @{
+ cd ../smtp
+ mk rfc822.tab.$O
+ }