summaryrefslogtreecommitdiff
path: root/parse/mkfile
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-10-05 18:18:19 -0400
committerOri Bernstein <ori@eigenstate.org>2014-10-05 18:18:19 -0400
commitb8e1d4c0252943545bbcde039cc227401b8c03ab (patch)
treeed14ab8997a7d7bee3cadbe91f3d05bfb2b0da94 /parse/mkfile
parent97540583eefeed60052f9831d68e7eb7bbbe8906 (diff)
downloadmc-b8e1d4c0252943545bbcde039cc227401b8c03ab.tar.gz
Add plan9 mkfiles and runtime.
Diffstat (limited to 'parse/mkfile')
-rw-r--r--parse/mkfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/parse/mkfile b/parse/mkfile
new file mode 100644
index 0000000..d2053e8
--- /dev/null
+++ b/parse/mkfile
@@ -0,0 +1,29 @@
+</$objtype/mkfile
+CC=pcc
+LD=pcc
+CFLAGS=-c -D_POSIX_SOURCE -D_SUSV2_SOURCE -D_C99_SNPRINTF_EXTENSION
+
+LIB=libparse.a
+OFILES=bitset.$O \
+ dump.$O \
+ gram.$O \
+ htab.$O \
+ infer.$O \
+ names.$O \
+ node.$O \
+ specialize.$O \
+ stab.$O \
+ tok.$O \
+ type.$O \
+ use.$O \
+ util.$O
+
+HFILES=parse.h
+CLEANFILES=gram.c gram.h
+
+</sys/src/cmd/mklib
+
+gram.c gram.h: gram.y
+ yacc -d -S gram.y
+ mv y.tab.c gram.c
+ mv y.tab.h gram.h