aboutsummaryrefslogtreecommitdiff
path: root/unix/mkfile
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-01 19:36:29 +0000
committerrsc <devnull@localhost>2004-03-01 19:36:29 +0000
commitaa738614530c1525b2337a3812d238b9776d51f0 (patch)
tree0e989d3bfe7b0682fb3437429086048bef8a4d9c /unix/mkfile
parent63dd44c8ca13354de84c4da659454526ec6750db (diff)
downloadplan9port-aa738614530c1525b2337a3812d238b9776d51f0.tar.gz
plan9port-aa738614530c1525b2337a3812d238b9776d51f0.tar.bz2
plan9port-aa738614530c1525b2337a3812d238b9776d51f0.zip
Build Unix-friendly versions directly from library.
Diffstat (limited to 'unix/mkfile')
-rw-r--r--unix/mkfile52
1 files changed, 52 insertions, 0 deletions
diff --git a/unix/mkfile b/unix/mkfile
new file mode 100644
index 00000000..4f63a77a
--- /dev/null
+++ b/unix/mkfile
@@ -0,0 +1,52 @@
+bio fmt mk regexp utf:V:
+ case $target in
+ mk) t=mk ;;
+ regexp) t=libregexp ;;
+ *) t=lib$target ;;
+ esac
+ mkdir $t || true
+ rm $t/* || true
+ cd $t
+ mk -f ../mkfile.$target
+ case $target in
+ bio) d=$PLAN9/src/$t;;
+ regexp) d=$PLAN9/src/$t;;
+ fmt) d=$PLAN9/src/lib9/$target ;;
+ utf) d=$PLAN9/src/lib9/$target ;;
+ mk) d=$PLAN9/src/cmd/mk ;;
+ esac
+ for i in `ls -p $d/*.c`
+ do
+ if [ ! -f $i ]
+ then
+ echo missing $i
+ fi
+ done
+ make
+ for i in `ls *.c`
+ do
+ if [ ! -f `echo $i | sed 's/.c$/.o/'` ]
+ then
+ echo not building $i
+ fi
+ done
+ cd ..
+ rm $t/* || true
+ cd $t
+ mk -f ../mkfile.$target
+
+lib%.tgz:
+ mk $stem
+ tar cf - lib$stem |gzip >lib$stem.tgz
+
+libregexp9.tgz:
+ mk regexp
+ tar cf - libregexp | gzip >libregexp9.tgz
+
+mk.tgz:
+ mk mk
+ tar cf - mk | gzip >mk.tgz
+
+mk-all.tgz:
+ tar cf - Makefile libutf libfmt libbio libregexp mk | gzip >mk-all.tgz
+