Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/libmp/mkfile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


</$objtype/mkfile

DIRS=port $CPUS

default:V:	all

install all:V:
	for(i in port $objtype)@{
		echo $i
		cd $i
		mk $MKFLAGS $target
	}

nuke:V: clean
	rm -f /$objtype/lib/libmp.a

clean:V:
	for(i in $DIRS)@{
		echo $i
		cd $i
		mk $MKFLAGS $target
	}
update:V:
	for(i in $DIRS)@{
		echo $i
		cd $i
		mk $MKFLAGS $target
	}
	update /386/lib/libmp.a

installall:V:
	for(objtype in $CPUS) mk $MKFLAGS install

everything:V:
	rm -f */*.[012456789kvx]
	for(objtype in 386)@{
		echo $objtype
		mk $MKFLAGS install
	}
	rm -f */*.[012456789kvx]

test.$O: test.c /$objtype/include/u.h /sys/include/mp.h port/dat.h
	$CC -Iport test.c

$O.test: test.$O /$objtype/lib/libmp.a
	$LD -o $O.test test.$O

bigtest.$O: bigtest.c /$objtype/include/u.h /sys/include/mp.h port/dat.h
	$CC -Iport bigtest.c

$O.bigtest: bigtest.$O /$objtype/lib/libmp.a
	$LD -o $O.bigtest bigtest.$O

allout:
	objtype=386; mk; mk 8.test 8.bigtest
	objtype=power; mk; mk q.test q.bigtest
	objtype=mips; mk; mk v.test v.bigtest

cleanout:
	rm -f [qv8].* *.[qv8]

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.