shithub: lu9-lpeg

Download patch

ref: 7c452f09cf633586b26565139943844c682e2177
parent: b7d6be96fcc372886415e8fd55e3febff8340b95
author: kvik <kvik@a-b.xyz>
date: Sat Feb 6 17:33:02 EST 2021

build: add Plan 9 mkfile

--- /dev/null
+++ b/mkfile
@@ -1,0 +1,22 @@
+</$objtype/mkfile
+
+CFLAGS=-FTV -p -I../shim -I../lua
+
+LIB=liblpeg.a$O
+
+OBJS=lpvm.$O\
+	lpcap.$O\
+	lptree.$O\
+	lpcode.$O\
+	lpprint.$O
+
+all:V: $LIB
+
+clean:V:
+	rm -f *.[$OS] *.a[$OS]
+
+$LIB: $OBJS
+	ar cr $target $prereq
+
+%.$O: %.c
+	$CC $CFLAGS $stem.c