Build Unix-friendly versions directly from library.
diff --git a/unix/mkfile.regexp b/unix/mkfile.regexp
new file mode 100644
index 0000000..de81308
--- /dev/null
+++ b/unix/mkfile.regexp
@@ -0,0 +1,44 @@
+MAKEALL=`{cd ../make; ls Make.*}
+TARG=\
+	$MAKEALL\
+	NOTICE\
+	README\
+	Makefile\
+	regexp9.3\
+	regexp9.7\
+	regexp9.h\
+	regcomp.h\
+	lib9.h\
+	`{ls -p $PLAN9/src/libregexp/*.c}\
+
+all:V: $TARG
+
+%: $PLAN9/include/%
+	cp $prereq $target
+
+%: $PLAN9/src/libregexp/%
+	cp $prereq $target
+
+%: $PLAN9/man/man1/%
+	cp $prereq $target
+
+%: $PLAN9/man/man3/%
+	cp $prereq $target
+
+%: $PLAN9/man/man7/%
+	cp $prereq $target
+
+%: ../make/%
+	cp $prereq $target
+
+Makefile:D: ../make/Makefile.TOP ../make/Makefile.regexp ../make/Makefile.LIB ../make/Makefile.BOT
+	cat $prereq >$target
+
+README: ../README
+	cp $prereq $target
+
+NOTICE: ../NOTICE.regexp
+	cp $prereq $target
+
+lib9.h: $PLAN9/src/libregexp/lib9.h
+	cp $prereq $target