shithub: nime

Download patch

ref: 7e3acead0cb39d1e4309d2ca0441806e6d4f8a82
parent: ec893e82921b997b373697147db0df327352a850
author: Ethan Long <[email protected]>
date: Mon Jun 28 04:36:31 EDT 2021

Made the mkfile platform independent.

--- a/src/mkfile
+++ b/src/mkfile
@@ -1,2 +1,11 @@
-%: %.c
-	8c $stem.c && 8l -o $stem.out $stem.8
+</$objtype/mkfile
+
+TARGETS = to-kana test
+
+%: %.$O
+	$LD $LDFLAGS -o $target $prereq
+%.$0: %.c
+	$CC $CFLAGS $stem.c
+
+clean:
+	rm *.$O