aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/awk/mkfile
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/awk/mkfile')
-rw-r--r--src/cmd/awk/mkfile35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/cmd/awk/mkfile b/src/cmd/awk/mkfile
new file mode 100644
index 00000000..a31472e4
--- /dev/null
+++ b/src/cmd/awk/mkfile
@@ -0,0 +1,35 @@
+<$PLAN9/src/mkhdr
+
+TARG=awk
+OFILES=re.$O\
+ lex.$O\
+ main.$O\
+ parse.$O\
+ proctab.$O\
+ tran.$O\
+ lib.$O\
+ run.$O\
+ y.tab.$O\
+
+HFILES=awk.h\
+ y.tab.h\
+ proto.h\
+
+YFILES=awkgram.y
+
+CLEANFILES=$CLEANFILES proctab.c $O.maketab
+
+<$PLAN9/src/mkone
+
+# CFLAGS=-c -D_REGEXP_EXTENSION -D_RESEARCH_SOURCE -D_BSD_EXTENSION -DUTF
+
+YFLAGS=-S -d -v
+
+proctab.c: $O.maketab
+ ./$O.maketab >proctab.c
+
+maketab.$O: maketab.c
+ $CC $CFLAGS maketab.c
+
+$O.maketab:V: y.tab.h maketab.$O
+ $LD -o $O.maketab maketab.$O