Browse Source

Cleaning some unused mkfile's

Elbing 5 years ago
parent
commit
36e4d0fd88
55 changed files with 0 additions and 2126 deletions
  1. 0 10
      amd64/mkfile
  2. 0 12
      sys/src/9/amd64pv/root/mkfile
  3. 0 108
      sys/src/9/k10/mkfile
  4. 0 34
      sys/src/9/mk/bootmkfile
  5. 0 130
      sys/src/9/mk/portmkfile
  6. 0 32
      sys/src/lib9p/mkfile
  7. 0 32
      sys/src/libString/mkfile
  8. 0 32
      sys/src/libauth/mkfile
  9. 0 30
      sys/src/libauthsrv/mkfile
  10. 0 15
      sys/src/libavl/mkfile
  11. 0 16
      sys/src/libbin/mkfile
  12. 0 32
      sys/src/libbio/mkfile
  13. 0 14
      sys/src/libc/386/387/mkfile
  14. 0 42
      sys/src/libc/386/mkfile
  15. 0 63
      sys/src/libc/9sys/mkfile
  16. 0 19
      sys/src/libc/9syscall/mkfile
  17. 0 47
      sys/src/libc/amd64/mkfile
  18. 0 36
      sys/src/libc/arm/mkfile
  19. 0 46
      sys/src/libc/fmt/mkfile
  20. 0 40
      sys/src/libc/mips/mkfile
  21. 0 52
      sys/src/libc/mkfile
  22. 0 130
      sys/src/libc/port/mkfile
  23. 0 37
      sys/src/libc/power/mkfile
  24. 0 39
      sys/src/libc/sparc/mkfile
  25. 0 15
      sys/src/libcomplete/mkfile
  26. 0 37
      sys/src/libcontrol/mkfile
  27. 0 20
      sys/src/libdisk/mkfile
  28. 0 75
      sys/src/libdraw/mkfile
  29. 0 27
      sys/src/libflate/mkfile
  30. 0 21
      sys/src/libframe/mkfile
  31. 0 23
      sys/src/libgeometry/mkfile
  32. 0 21
      sys/src/libhtml/mkfile
  33. 0 33
      sys/src/libhttpd/mkfile
  34. 0 26
      sys/src/libip/mkfile
  35. 0 18
      sys/src/liblex/mkfile
  36. 0 43
      sys/src/libmemdraw/mkfile
  37. 0 29
      sys/src/libmemlayer/mkfile
  38. 0 20
      sys/src/libmp/386/mkfile
  39. 0 4
      sys/src/libmp/amd64/mkfile
  40. 0 13
      sys/src/libmp/arm/mkfile
  41. 0 21
      sys/src/libmp/mips/mkfile
  42. 0 61
      sys/src/libmp/mkfile
  43. 0 52
      sys/src/libmp/port/mkfile
  44. 0 19
      sys/src/libmp/power/mkfile
  45. 0 39
      sys/src/libndb/mkfile
  46. 0 17
      sys/src/libplumb/mkfile
  47. 0 28
      sys/src/libregexp/mkfile
  48. 0 31
      sys/src/libscribble/mkfile
  49. 0 69
      sys/src/libstdio/mkfile
  50. 0 30
      sys/src/libsunrpc/mkfile
  51. 0 79
      sys/src/libthread/mkfile
  52. 0 45
      sys/src/libventi/mkfile
  53. 0 99
      sys/src/mkfile
  54. 0 20
      sys/src/mkfile.clang.proto
  55. 0 43
      sys/src/mkfile.proto

+ 0 - 10
amd64/mkfile

@@ -1,10 +0,0 @@
-</sys/src/mkfile.proto
-
-#CC=6c
-#LD=6l
-#O=6
-#AS=6a
-CC=gcc
-LD=gcc
-O=o
-AS=as

+ 0 - 12
sys/src/9/amd64pv/root/mkfile

@@ -1,12 +0,0 @@
-MKSHELL=$PLAN9/bin/rc
-objtype=amd64
-</$objtype/mkfile
-
-TARG=`{ls *.[cy] | sed '/\.tab\.c$/d;s/..$//'}
-HFILES=/$objtype/include/u.h /sys/include/libc.h
-BIN=$home/bin/$objtype
-PROGS=${TARG:%=$O.%}
-LDFLAGS=
-YFLAGS=-d
-
-</sys/src/cmd/mkmany

+ 0 - 108
sys/src/9/k10/mkfile

@@ -1,108 +0,0 @@
-CONF=k8cpu
-CONFLIST=k8cpu
-objtype=amd64
-
-# override with the list of paths where to put extra
-# copies of the kernel. for each word $w in OTHERCOPIES,
-# the kernel is copied to $w/$objtype/...
-OTHERCOPIES=''
-
-</$objtype/mkfile
-p=9
-
-9k:V:	$p$CONF
-
-<| awk -f ../mk/parse $CONF
-<../mk/bootmkfile
-<../mk/portmkfile
-
-OBJ=$MACH $CONF.root.$O $DEVS $PORT
-
-$p$CONF:	$CONF.c $OBJ $LIB
-	$CC $CFLAGS '-DKERNDATE='`{date -n} -c $CONF.c
-	$LD -o $target -T0xfffffffff0110000 -R4096 -l $OBJ $CONF.$O $LIB
-	$LD -o $target.elf -H5 -8 -T0xfffffffff0110000 -l $OBJ $CONF.$O $LIB
-	size $target
-
-$p$CONF.gz:	$p$CONF
-	strip -o /fd/1 $p$CONF | gzip -9 > $p$CONF.gz
-
-install:QV:	$p$CONF $p$CONF.gz
-	for(d in '' $OTHERCOPIES){
-		if(test -d $d/$objtype){
-			cp $p$CONF $d/$objtype/$p$CONF 
-			cp $p$CONF.gz $d/$objtype/$p$CONF.gz
-			ls -l $d/$objtype/$p$CONF $d/$objtype/$p$CONF.gz
-		}
-	}
-	echo done
-
-init.out:	init9.$O initcode.$O /$objtype/lib/libc.a
-	$CC $CFLAGS -o init.out init9.$O initcode.$O -L/$objtype/lib/libc.a
-	#$LD -l -R1 -s -o init.out init9.$O initcode.$O -lc
-
-l32p.$O:	${objtype}l.h
-l64idt.$O:	${objtype}l.h
-l64syscall.$O:	${objtype}l.h
-l64sipi.$O:	${objtype}l.h
-l64v.$O:	${objtype}l.h
-l64acidt.$O:	${objtype}l.h
-l64acsyscall.$O:	${objtype}l.h
-
-${objtype}l.h:	$objtype.h
-	rc ../mk/mkenum $objtype.h > $target
-
-apic.$O:	apic.h io.h
-devarch.$O:	../port/error.h /$objtype/include/ureg.h
-fpu.$O:		amd64.h
-fpu.$O:		/$objtype/include/ureg.h
-ioapic.$O:	apic.h io.h
-main.$O:	/sys/include/pool.h init.h
-memory.$O:	amd64.h
-mmu.$O:		amd64.h
-mp.$O:		apic.h
-sipi.$O:	apic.h sipi.h
-svm.$O:		amd64.h
-svm.$O:		/$objtype/include/ureg.h
-syscall.$O:	../port/error.h /sys/src/libc/9syscall/sys.h
-syscall.$O:	/sys/include/tos.h /$objtype/include/ureg.h
-syscall.$O:	amd64.h
-trap.$O:	../port/error.h io.h
-trap.$O:	/sys/include/tos.h /$objtype/include/ureg.h
-
-devaoe.$O:	../port/error.h ../port/netif.h ../ip/ip.h
-devaoe.$O:	../port/aoe.h etherif.h
-devether.$O:	../port/error.h ../port/netif.h etherif.h
-devrtc.$O:	../port/error.h
-ether8169.$O:	../port/error.h ../port/ethermii.h ../port/netif.h
-ether8169.$O:	etherif.h
-ether82557.$O:	../port/netif.h
-ether82557.$O:	etherif.h io.h
-etherigbe.$O:	../port/error.h ../port/ethermii.h ../port/netif.h
-etherigbe.$O:	etherif.h io.h
-etherm10g.$O:	../port/error.h ../port/netif.h
-etherm10g.$O:	etherif.h io.h
-etherm10g.$O:	../386/etherm10g2k.i ../386/etherm10g4k.i
-i8259.$O:	io.h
-kbd.$O:		../port/error.h io.h
-pci.$O:		io.h
-sdaoe.$O:	../port/error.h ../port/netif.h ../port/sd.h
-sdaoe.$O:	../port/aoe.h etherif.h io.h
-sdscsi.$O:	../port/error.h
-
-random.$O:	../port/error.h
-devacpi.$O: acpi.h
-physalloc.$O: acpi.h
-
-sipi.h:		l64sipi.$O
-	$LD -o l64sipi.out -T0xfffffffff0003000 -R4 -l -s $prereq
-	{echo 'uchar sipihandler[]={'
-	 xd -1x l64sipi.out |
-	 sed -e 's/^[0-9a-f]+ //'				\
-	     -e '1,2d' -e '3s/^ .. .. .. .. .. .. .. ..//'	\
-	     -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
-	 echo '};'} > $target
-
-../root/nvram: 
-	dd -if /dev/zero -of ../root/nvram -bs 512 -count 1
-	nvram=../root/nvram auth/wrkey

+ 0 - 34
sys/src/9/mk/bootmkfile

@@ -1,34 +0,0 @@
-MKSHELL=$PLAN9/bin/rc
-BOOTDIR=../boot
-BOOTLIB=$BOOTDIR/libboot.a
-
-BOOTFILES=\
-	bootauth.$O\
-	aux.$O\
-	boot.$O\
-	bootcache.$O\
-	bootip.$O\
-	local.$O\
-	embed.$O\
-	settime.$O\
-	sac.$O\
-	paq.$O\
-	printstub.$O\
-
-$BOOTLIB(%.$O):N:	%.$O
-
-$BOOTLIB:	${BOOTFILES:%=$BOOTLIB(%)}
-	names=`{membername $newprereq}
-	ar rv $BOOTLIB $names
-	rm $names
-
-$BOOTFILES:	$BOOTDIR/boot.h
-
-%.$O:	$BOOTDIR/%.c
-	$CC $CFLAGS -I$BOOTDIR -c $BOOTDIR/$stem.c
-
-boot$CONF.out: ../mk/parse $CONF print.$O $BOOTDIR/boot.c $BOOTLIB
-	awk -f ../mk/parse -- -mkbootconf $CONF > boot$CONF.c
-	$CC $CFLAGS -c boot$CONF.c
-	$CC $CFLAGS -c ../boot/printstub.c
-	$LD -o boot$CONF.out boot$CONF.$O $BOOTLIB printstub.$O

+ 0 - 130
sys/src/9/mk/portmkfile

@@ -1,130 +0,0 @@
-MKSHELL=$PLAN9/bin/rc
-
-%.$O:	%.s
-	$AS $AFLAGS -o $stem.o -c $stem.s
-
-%.$O:	%.c
-	$CC $CFLAGS -c $stem.c
-
-%.m:	%.$O
-	$LD -o $target -uX -l $prereq
-
-%.acid:	%.c
-	$CC $CFLAGS -a $stem.c >$stem.acid
-
-%.acid:	../ip/%.c
-	$CC $CFLAGS -a -I.  ../ip/$stem.c >$stem.acid
-
-%.acid:	../port/%.c
-	$CC $CFLAGS -a -I. ../port/$stem.c >$stem.acid
-
-%.db:	main.$O
-	$CC -s$stem main.c | dbfmt > $stem.db
-
-%.$O:	/$objtype/include/u.h
-%.$O:	../port/lib.h
-%.$O:	mem.h
-%.$O:	dat.h ../port/portdat.h
-%.$O:	fns.h ../port/portfns.h
-
-alloc.$O:	/sys/include/pool.h
-chan.$O:	../port/error.h
-dev.$O:		../port/error.h
-devcap.$O:	../port/error.h
-devcap.$O:	/sys/include/libsec.h
-devcons.$O:	/sys/include/authsrv.h /sys/include/pool.h
-devdup.$O:	../port/error.h
-devenv.$O:	../port/error.h
-devkprof.$O:	../port/error.h
-devmnt.$O:	../port/error.h
-devpipe.$O:	../port/error.h
-devprobe.$O:	../port/netif.h probe.h
-devproc.$O:	../port/error.h ../port/edf.h
-devproc.$O:	/sys/include/tos.h /sys/include/trace.h /$objtype/include/ureg.h
-devsd.$O:	../port/error.h ../port/sd.h
-devsrv.$O:	../port/error.h
-devssl.$O:	../port/error.h
-devssl.$O:	/sys/include/libsec.h
-devtab.$O:	../port/error.h
-devtls.$O:	../port/error.h
-devtls.$O:	/sys/include/libsec.h
-devuart.$O:	../port/error.h
-devwd.$O:	../port/error.h
-edf.$O:		../port/error.h ../port/edf.h
-edf.$O:		/sys/include/trace.h
-ethermii.$O:	../port/ethermii.h ../port/netif.h
-fault.$O:	../port/error.h
-image.$O:	../port/error.h
-initcode.$O:	/sys/include/libc.h
-latin1.$O:	../port/latin1.h
-netif.$O:	../port/error.h ../port/netif.h
-parse.$O:	../port/error.h
-pgrp.$O:	../port/error.h
-portclock.$O:	/$objtype/include/ureg.h
-proc.$O:	../port/error.h ../port/edf.h errstr.h
-proc.$O:	/sys/include/trace.h
-qio.$O:		../port/error.h
-rdb.$O:		/$objtype/include/ureg.h
-rebootcmd.$O:	../port/error.h
-rebootcmd.$O:	/sys/include/a.out.h
-segment.$O:	../port/error.h
-swap.$O:	../port/error.h
-sysauth.$O:	../port/error.h
-sysauth.$O:	/sys/include/authsrv.h
-sysfile.$O:	../port/error.h
-sysproc.$O:	../port/error.h ../port/edf.h
-sysproc.$O:	/sys/include/a.out.h
-sysseg.$O:	../port/error.h
-taslock.$O:	../port/edf.h
-
-../port/latin1.h:	/lib/keyboard
-	aux/mklatinkbd /lib/keyboard > $target
-
-../port/systab.c:	../mk/parse /sys/src/libc/9syscall/sys.h
-	awk -f ../mk/parse -- -mksystab /sys/src/libc/9syscall/sys.h $CONF > $target
-
-systab.$O:	../port/systab.c
-	$CC $CFLAGS -I. -c ../port/systab.c
-
-errstr.h:	../mk/parse ../port/error.h
-	awk -f ../mk/parse -- -mkerrstr > $target
-
-init.h:		init.out
-	{echo 'unsigned char initcode[]={'
-	 xd -1x $prereq | sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
-	 echo '};'} > init.h
-
-$CONF.$O:	$CONF.c
-	$CC $CFLAGS '-DKERNDATE='`{date -n} -c $CONF.c
-
-$CONF.c:	../mk/parse $CONF
-	awk -f ../mk/parse -- -mkdevc $CONF > $CONF.c
-
-./root/$O.%:	./root/%.c
-	@{cd ./root; mk $O.$stem}
-
-../root/$O.%:	../root/%.c
-	@{cd ../root; mk $O.$stem}
-
-all:V:
-	for(i in $CONFLIST)
-		mk 'CONF='$i
-
-installall:V:
-	for(i in $CONFLIST)
-		mk 'CONF='$i install
-
-%.clean:V:
-	rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.*
-
-clean:V:
-	rm -f *.[$OS] *.root.[cs] *.out *.m *.acid errstr.h init.h $objtype^l.h
-	for(i in $CONFLIST)
-		mk $i.clean
-	@{cd ../root; mk clean}
-	if(test -d ./root) @{cd ./root; mk clean}; status=''	
-
-nuke:V:	clean
-	rm -f ../boot/libboot.a *.elf *.rr
-	@{cd ../root; mk clean nuke}
-	if(test -d ./root) @{cd ./root; mk clean nuke}; status=''

+ 0 - 32
sys/src/lib9p/mkfile

@@ -1,32 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/lib9p.a
-OFILES=\
-	auth.$O\
-	dirread.$O\
-	fid.$O\
-	file.$O\
-	intmap.$O\
-	listen.$O\
-	mem.$O\
-	req.$O\
-	parse.$O\
-	post.$O\
-	rfork.$O\
-	srv.$O\
-	thread.$O\
-	uid.$O\
-	util.$O\
-
-HFILES=/sys/include/9p.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib
-
-$O.ramfs: ramfs.$O $LIB
-	$LD -o $target $prereq

+ 0 - 32
sys/src/libString/mkfile

@@ -1,32 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libString.a
-
-OFILES=\
-	s_alloc.$O\
-	s_append.$O\
-	s_array.$O\
-	s_copy.$O\
-	s_getline.$O\
-	s_grow.$O\
-	s_memappend.$O\
-	s_nappend.$O\
-	s_parse.$O\
-	s_putc.$O\
-	s_rdinstack.$O\
-	s_read.$O\
-	s_read_line.$O\
-	s_reset.$O\
-	s_terminate.$O\
-	s_tolower.$O\
-	s_unique.$O\
-
-HFILES=/sys/include/String.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 32
sys/src/libauth/mkfile

@@ -1,32 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libauth.a
-OFILES=\
-	amount.$O\
-	amount_getkey.$O\
-	attr.$O\
-	auth_attr.$O\
-	auth_challenge.$O\
-	auth_chuid.$O\
-	auth_getkey.$O\
-	auth_getuserpasswd.$O\
-	auth_proxy.$O\
-	auth_respond.$O\
-	auth_rpc.$O\
-	auth_userpasswd.$O\
-	auth_wep.$O\
-	login.$O\
-	newns.$O\
-	noworld.$O\
-
-HFILES=\
-	/sys/include/auth.h\
-	authlocal.h\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 30
sys/src/libauthsrv/mkfile

@@ -1,30 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libauthsrv.a
-OFILES=\
-	_asgetticket.$O\
-	_asrdresp.$O\
-	authdial.$O\
-	convA2M.$O\
-	convM2A.$O\
-	convM2PR.$O\
-	convM2T.$O\
-	convM2TR.$O\
-	convPR2M.$O\
-	convT2M.$O\
-	convTR2M.$O\
-	nvcsum.$O\
-	opasstokey.$O\
-	passtokey.$O\
-	readnvram.$O\
-
-HFILES=\
-	/sys/include/authsrv.h\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 15
sys/src/libavl/mkfile

@@ -1,15 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libavl.a
-OFILES=\
-	avl.$O\
-
-HFILES=/sys/include/avl.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 16
sys/src/libbin/mkfile

@@ -1,16 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libbin.a
-OFILES=\
-	bin.$O\
-
-HFILES=\
-	/sys/include/bin.h\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 32
sys/src/libbio/mkfile

@@ -1,32 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libbio.a
-OFILES=\
-	bbuffered.$O\
-	bfildes.$O\
-	bflush.$O\
-	bgetrune.$O\
-	bgetc.$O\
-	bgetd.$O\
-	binit.$O\
-	boffset.$O\
-	bprint.$O\
-	bputrune.$O\
-	bputc.$O\
-	brdline.$O\
-	brdstr.$O\
-	bread.$O\
-	bseek.$O\
-	bwrite.$O\
-	bvprint.$O\
-
-HFILES=/sys/include/bio.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib
-

+ 0 - 14
sys/src/libc/386/387/mkfile

@@ -1,14 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/lib387.a
-
-OFILES=\
-	atan.$O\
-	tan.$O\
-	atan2.$O\
-	exp.$O\
-	asin.$O\
-	log.$O\
-	sin.$O\
-
-</sys/src/cmd/mksyslib

+ 0 - 42
sys/src/libc/386/mkfile

@@ -1,42 +0,0 @@
-objtype=386
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libc.a
-SFILES=\
-	argv0.s\
-	atom.s\
-	getfcr.s\
-	main9.s\
-	main9p.s\
-	memccpy.s\
-	memchr.s\
-	memcmp.s\
-	memcpy.s\
-	memmove.s\
-	memset.s\
-	muldiv.s\
-	cycles.s\
-	setjmp.s\
-	sqrt.s\
-	strcat.s\
-	strchr.s\
-	strcpy.s\
-	strlen.s\
-	tas.s\
-	vlop.s\
-
-CFILES=\
-	getcallerpc.c\
-	notejmp.c\
-	vlrt.c\
-
-HFILES=/sys/include/libc.h
-
-OFILES=${CFILES:%.c=%.$O} ${SFILES:%.s=%.$O}
-
-UPDATE=mkfile\
-	$HFILES\
-	$CFILES\
-	$SFILES\
-
-</sys/src/cmd/mksyslib

+ 0 - 63
sys/src/libc/9sys/mkfile

@@ -1,63 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libc.a
-OFILES=\
-	abort.$O\
-	access.$O\
-	announce.$O\
-	convD2M.$O\
-	convM2D.$O\
-	convM2S.$O\
-	convS2M.$O\
-	cputime.$O\
-	ctime.$O\
-	dial.$O\
-	dirfstat.$O\
-	dirfwstat.$O\
-	dirmodefmt.$O\
-	dirread.$O\
-	dirstat.$O\
-	dirwstat.$O\
-	fcallfmt.$O\
-	fork.$O\
-	getnetconninfo.$O\
-	getenv.$O\
-	getpid.$O\
-	getppid.$O\
-	getwd.$O\
-	iounit.$O\
-	nulldir.$O\
-	postnote.$O\
-	privalloc.$O\
-	pushssl.$O\
-	pushtls.$O\
-	putenv.$O\
-	qlock.$O\
-	read.$O\
-	read9pmsg.$O\
-	readv.$O\
-	rerrstr.$O\
-	sbrk.$O\
-	setnetmtpt.$O\
-	sysfatal.$O\
-	syslog.$O\
-	sysname.$O\
-	time.$O\
-	times.$O\
-	tm2sec.$O\
-	truerand.$O\
-	wait.$O\
-	waitpid.$O\
-	werrstr.$O\
-	write.$O\
-	writev.$O\
-
-HFILES=/sys/include/libc.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-
-</sys/src/cmd/mksyslib
-

+ 0 - 19
sys/src/libc/9syscall/mkfile

@@ -1,19 +0,0 @@
-NPROC=1
-</$objtype/mkfile
-
-# Note that mksys needs to be in your path, somewhere.
-install:V:
-	mksys $objtype
-	$CC -c *.s
-	$AR rv /$objtype/lib/libc.a *.$O
-	rm -f *.o *.[$OS] *.s
-
-nuke clean:V:
-	rm -f *.[$OS] *.s
-
-installall:V:
-	for(objtype in $CPUS) mk install
-
-update:V:
-	update $UPDATEFLAGS mkfile sys.h
-

+ 0 - 47
sys/src/libc/amd64/mkfile

@@ -1,47 +0,0 @@
-objtype=amd64
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libc.a
-SFILES=\
-#	argv0.s\
-#	atom.s\
-#	cycles.s\
-#	getfcr.s\
-#	main9.s\
-#	main9p.s\
-#	memccpy.s\
-#	memchr.s\
-#	memcmp.s\
-#	memcpy.s\
-#	memmove.s\
-#	memset.s\
-#	muldiv.s\
-#	rdpmc.s\
-	setjmp.s\
-	sqrt.s\
-#	strcat.s\
-#	strchr.s\
-#	strcpy.s\
-#	strlen.s\
-	tas.s\
-
-GSFILES=\
-	atom.S\
-
-CFILES=\
-	_seek.c\
-	notejmp.c\
-	cycles.c\
-	argv0.c\
-	rdpmc.c\
-
-HFILES=/sys/include/libc.h
-
-OFILES=${CFILES:%.c=%.$O} ${SFILES:%.s=%.$O} ${GSFILES:%.S=%.$O}
-
-UPDATE=mkfile\
-	$HFILES\
-	$CFILES\
-	$SFILES\
-
-</sys/src/cmd/mksyslib

+ 0 - 36
sys/src/libc/arm/mkfile

@@ -1,36 +0,0 @@
-objtype=arm
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libc.a
-SFILES=\
-	argv0.s\
-	atom.s\
-	div.s\
-	getcallerpc.s\
-	getfcr.s\
-	main9.s\
-	main9p.s\
-	memmove.s\
-	memset.s\
-	setjmp.s\
-	strchr.s\
-	strcmp.s\
-	strcpy.s\
-	tas.s\
-	vlop.s\
-
-CFILES=\
-	cycles.c\
-	notejmp.c\
-	vlrt.c\
-
-HFILES=/sys/include/libc.h
-
-OFILES=${CFILES:%.c=%.$O} ${SFILES:%.s=%.$O}
-
-UPDATE=mkfile\
-	$HFILES\
-	$CFILES\
-	$SFILES\
-
-</sys/src/cmd/mksyslib

+ 0 - 46
sys/src/libc/fmt/mkfile

@@ -1,46 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libc.a
-
-OFILES=\
-	dofmt.$O\
-	dorfmt.$O\
-	errfmt.$O\
-	fltfmt.$O\
-	fmt.$O\
-	fmtfd.$O\
-	fmtlock.$O\
-	fmtprint.$O\
-	fmtquote.$O\
-	fmtrune.$O\
-	fmtstr.$O\
-	fmtvprint.$O\
-	fprint.$O\
-	print.$O\
-	runefmtstr.$O\
-	runeseprint.$O\
-	runesmprint.$O\
-	runesnprint.$O\
-	runesprint.$O\
-	runevseprint.$O\
-	runevsmprint.$O\
-	runevsnprint.$O\
-	seprint.$O\
-	smprint.$O\
-	snprint.$O\
-	sprint.$O\
-	vfprint.$O\
-	vseprint.$O\
-	vsmprint.$O\
-	vsnprint.$O\
-
-HFILES=/sys/include/libc.h\
-	fmtdef.h\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}
-
-</sys/src/cmd/mksyslib
-

+ 0 - 40
sys/src/libc/mips/mkfile

@@ -1,40 +0,0 @@
-objtype=mips
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libc.a
-SFILES=\
-	argv0.s\
-	atom.s\
-	c_fcr0.s\
-	getcallerpc.s\
-	getfcr.s\
-	main9.s\
-	main9p.s\
-	memccpy.s\
-	memchr.s\
-	memcmp.s\
-	memmove.s\
-	memset.s\
-	setjmp.s\
-	strchr.s\
-	strcmp.s\
-	strcpy.s\
-	tas.s\
-	vlop.s\
-
-CFILES=\
-	cycles.c\
-	notejmp.c\
-	sqrt.c\
-	vlrt.c\
-
-HFILES=/sys/include/libc.h
-
-OFILES=${CFILES:%.c=%.$O} ${SFILES:%.s=%.$O}
-
-UPDATE=mkfile\
-	$HFILES\
-	$CFILES\
-	$SFILES\
-
-</sys/src/cmd/mksyslib

+ 0 - 52
sys/src/libc/mkfile

@@ -1,52 +0,0 @@
-MKSHELL=$PLAN9/bin/rc
-</$objtype/mkfile
-
-PORTDIRS=9sys 9syscall fmt port
-DIRS=$PORTDIRS $CPUS
-OLDCPUS=sparc
-
-all install:V:
-	for(i in $PORTDIRS $objtype)@{
-		echo $i
-		cd $i
-		mk $MKFLAGS install
-	}
-
-clean:V:
-	for(i in $DIRS)@{
-		echo $i
-		cd $i
-		mk $MKFLAGS clean
-	}
-
-nuke:V:
-	for(i in $PORTDIRS $objtype)@{
-		echo $i
-		cd $i
-		mk $MKFLAGS nuke
-	}
-	# do not nuke other objtypes
-	for(i in $CPUS)@{
-		echo $i
-		cd $i
-		mk $MKFLAGS clean
-	}
-
-update:V:
-	for(i in $DIRS)@{
-		echo $i
-		cd $i
-		mk $MKFLAGS update
-	}
-	update $UPDATEFLAGS /386/lib/libc.a
-
-installall:V:
-	for(objtype in $CPUS) mk $MKFLAGS install
-
-everything:V:
-	rm -f */*.[0245689kqv]
-	for(objtype in $CPUS $OLDCPUS)@{
-		echo $objtype
-		mk $MKFLAGS install
-	}
-	rm -f */*.[0245689kqv]

+ 0 - 130
sys/src/libc/port/mkfile

@@ -1,130 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libc.a
-CFILES=\
-	_assert.c\
-	abs.c\
-	asin.c\
-	atan.c\
-	atan2.c\
-	atexit.c\
-	atnotify.c\
-	atof.c\
-	atol.c\
-	atoll.c\
-	cistrcmp.c\
-	cistrncmp.c\
-	cistrstr.c\
-	charstod.c\
-	cleanname.c\
-	crypt.c\
-	ctype.c\
-	encodefmt.c\
-	execl.c\
-	exp.c\
-	fabs.c\
-	floor.c\
-	fmod.c\
-	frand.c\
-	frexp.c\
-	getcallerpc.c\
-	getfields.c\
-	getuser.c\
-	hangup.c\
-	hypot.c\
-	lnrand.c\
-	lock.c\
-	log.c\
-	lrand.c\
-	malloc.c\
-	memccpy.c\
-	memchr.c\
-	memcmp.c\
-	memmove.c\
-	memset.c\
-	mktemp.c\
-	muldiv.c\
-	nan.c\
-	needsrcquote.c\
-	netcrypt.c\
-	netmkaddr.c\
-	nrand.c\
-	ntruerand.c\
-	perror.c\
-	pool.c\
-	pow.c\
-	pow10.c\
-	profile.c\
-	qsort.c\
-	quote.c\
-	rand.c\
-	readn.c\
-	rune.c\
-	runebase.c\
-	runebsearch.c\
-	runestrcat.c\
-	runestrchr.c\
-	runestrcmp.c\
-	runestrcpy.c\
-	runestrecpy.c\
-	runestrdup.c\
-	runestrncat.c\
-	runestrncmp.c\
-	runestrncpy.c\
-	runestrrchr.c\
-	runestrlen.c\
-	runestrstr.c\
-	runetype.c\
-	sin.c\
-	sinh.c\
-	sqrt.c\
-	strcat.c\
-	strchr.c\
-	strcmp.c\
-	strcpy.c\
-	strecpy.c\
-	strcspn.c\
-	strdup.c\
-	strlen.c\
-	strncat.c\
-	strncmp.c\
-	strncpy.c\
-	strpbrk.c\
-	strrchr.c\
-	strspn.c\
-	strstr.c\
-	strtod.c\
-	strtok.c\
-	strtol.c\
-	strtoll.c\
-	strtoul.c\
-	strtoull.c\
-	tan.c\
-	tanh.c\
-	tokenize.c\
-	toupper.c\
-	utfecpy.c\
-	utflen.c\
-	utfnlen.c\
-	utfrune.c\
-	utfrrune.c\
-	utfutf.c\
-	u16.c\
-	u32.c\
-	u64.c\
-
-ALLOFILES=${CFILES:%.c=%.$O}
-
-# cull things in the per-machine directories from this list
-# OFILES=	`{rc ./reduce $O $objtype $ALLOFILES}
-OFILES=${CFILES:%.c=%.$O}
-
-HFILES=/sys/include/libc.h
-
-UPDATE=mkfile\
-	$HFILES\
-	$CFILES\
-
-</sys/src/cmd/mksyslib
-
-profile.$O: /sys/include/tos.h

+ 0 - 37
sys/src/libc/power/mkfile

@@ -1,37 +0,0 @@
-objtype=power
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libc.a
-SFILES=\
-	argv0.s\
-	atom.s\
-	cycles.s\
-	getcallerpc.s\
-	getfcr.s\
-	main9.s\
-	main9p.s\
-	memccpy.s\
-	memcmp.s\
-	memmove.s\
-	memset.s\
-	setjmp.s\
-	strcmp.s\
-	strncmp.s\
-	tas.s\
-	vlop.s
-
-CFILES=\
-	notejmp.c\
-	sqrt.c\
-	vlrt.c\
-
-HFILES=/sys/include/libc.h
-
-OFILES=${CFILES:%.c=%.$O} ${SFILES:%.s=%.$O}
-
-UPDATE=mkfile\
-	$HFILES\
-	$CFILES\
-	$SFILES\
-
-</sys/src/cmd/mksyslib

+ 0 - 39
sys/src/libc/sparc/mkfile

@@ -1,39 +0,0 @@
-objtype=sparc
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libc.a
-SFILES=\
-	argv0.s\
-	getcallerpc.$O\
-	getfcr.s\
-	main9.s\
-	main9p.s\
-	memccpy.s\
-	memchr.s\
-	memcmp.s\
-	memmove.s\
-	memset.s\
-	muldivrt.s\
-	setjmp.s\
-	strchr.s\
-	strcmp.s\
-	strcpy.s\
-	tas.s\
-	vlop.s
-
-CFILES=\
-	cycles.c\
-	notejmp.c\
-	sqrt.c\
-	vlrt.c\
-
-HFILES=/sys/include/libc.h
-
-OFILES=${CFILES:%.c=%.$O} ${SFILES:%.s=%.$O}
-
-UPDATE=mkfile\
-	$HFILES\
-	$CFILES\
-	$SFILES\
-
-</sys/src/cmd/mksyslib

+ 0 - 15
sys/src/libcomplete/mkfile

@@ -1,15 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libcomplete.a
-OFILES=\
-	complete.$O\
-
-HFILES=/sys/include/complete.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 37
sys/src/libcontrol/mkfile

@@ -1,37 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libcontrol.a
-
-OFILES=\
-	box.$O\
-	button.$O\
-	cache.$O\
-	control.$O\
-	entry.$O\
-	group.$O\
-	keyboard.$O\
-	label.$O\
-	menu.$O\
-	radiobutton.$O\
-	scribble.$O\
-	slider.$O\
-	tabs.$O\
-	text.$O\
-	textbutton.$O\
-	textbutton3.$O\
-
-HFILES=/sys/include/draw.h\
-	/sys/include/mouse.h\
-	/sys/include/keyboard.h\
-	/sys/include/control.h\
-	group.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib
-
-$OFILES: $HFILES

+ 0 - 20
sys/src/libdisk/mkfile

@@ -1,20 +0,0 @@
-</$objtype/mkfile
-
-OFILES=\
-	disk.$O\
-	proto.$O\
-	scsi.$O\
-
-HFILES=/sys/include/disk.h
-LIB=/$objtype/lib/libdisk.a
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib
-
-$O.test: test.$O $LIB
-	$LD -o $target test.$O $LIB

+ 0 - 75
sys/src/libdraw/mkfile

@@ -1,75 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libdraw.a
-
-OFILES=\
-	alloc.$O\
-	allocimagemix.$O\
-	arith.$O\
-	bezier.$O\
-	border.$O\
-	buildfont.$O\
-	bytesperline.$O\
-	chan.$O\
-	cloadimage.$O\
-	computil.$O\
-	creadimage.$O\
-	debug.$O\
-	defont.$O\
-	draw.$O\
-	drawrepl.$O\
-	egetrect.$O\
-	ellipse.$O\
-	emenuhit.$O\
-	event.$O\
-	fmt.$O\
-	font.$O\
-	freesubfont.$O\
-	getdefont.$O\
-	getrect.$O\
-	getsubfont.$O\
-	icossin.$O\
-	icossin2.$O\
-	init.$O\
-	keyboard.$O\
-	line.$O\
-	menuhit.$O\
-	mkfont.$O\
-	mouse.$O\
-	newwindow.$O\
-	openfont.$O\
-	poly.$O\
-	loadimage.$O\
-	readcolmap.$O\
-	readimage.$O\
-	readsubfont.$O\
-	rectclip.$O\
-	replclipr.$O\
-	rgb.$O\
-	scroll.$O\
-	string.$O\
-	stringbg.$O\
-	stringsubfont.$O\
-	stringwidth.$O\
-	subfont.$O\
-	subfontcache.$O\
-	subfontname.$O\
-	unloadimage.$O\
-	window.$O\
-	writecolmap.$O\
-	writeimage.$O\
-	writesubfont.$O\
-
-HFILES=\
-	/sys/include/draw.h\
-	/sys/include/event.h\
-	/sys/include/mouse.h\
-	/sys/include/keyboard.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 27
sys/src/libflate/mkfile

@@ -1,27 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libflate.a
-OFILES=\
-	deflate.$O\
-	deflatezlib.$O\
-	deflateblock.$O\
-	deflatezlibblock.$O\
-	inflate.$O\
-	inflatezlib.$O\
-	inflateblock.$O\
-	inflatezlibblock.$O\
-	flateerr.$O\
-	crc.$O\
-	adler.$O\
-
-HFILES=\
-	/sys/include/flate.h\
-	zlib.h\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 21
sys/src/libframe/mkfile

@@ -1,21 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libframe.a
-OFILES=\
-	frbox.$O\
-	frdraw.$O\
-	frdelete.$O\
-	frinit.$O\
-	frinsert.$O\
-	frptofchar.$O\
-	frselect.$O\
-	frstr.$O\
-	frutil.$O\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 23
sys/src/libgeometry/mkfile

@@ -1,23 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libgeometry.a
-OFILES=\
-	arith3.$O\
-	matrix.$O\
-	qball.$O\
-	quaternion.$O\
-	transform.$O\
-	tstack.$O\
-
-HFILES=/sys/include/geometry.h
-
-</sys/src/cmd/mksyslib
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-listing:V:
-	pr mkfile $HFILES $CFILES|lp -du

+ 0 - 21
sys/src/libhtml/mkfile

@@ -1,21 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libhtml.a
-
-OFILES=\
-	build.$O\
-	lex.$O\
-	strinttab.$O\
-	utils.$O\
-
-HFILES=\
-	/sys/include/html.h\
-	impl.h\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 33
sys/src/libhttpd/mkfile

@@ -1,33 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libhttpd.a
-OFILES=\
-	alloc.$O\
-	checkcontent.$O\
-	date.$O\
-	fail.$O\
-	gethead.$O\
-	hio.$O\
-	httpfmt.$O\
-	httpunesc.$O\
-	lower.$O\
-	okheaders.$O\
-	parse.$O\
-	parsereq.$O\
-	query.$O\
-	redirected.$O\
-	unallowed.$O\
-	urlfmt.$O\
-	urlunesc.$O\
-
-HFILES=\
-	/sys/include/httpd.h\
-	escape.h\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 26
sys/src/libip/mkfile

@@ -1,26 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libip.a
-OFILES=\
-	eipfmt.$O\
-	equivip.$O\
-	parseip.$O\
-	parseether.$O\
-	myetheraddr.$O\
-	myipaddr.$O\
-	classmask.$O\
-	bo.$O\
-	readipifc.$O\
-	ipaux.$O\
-	ptclbsum.$O\
-
-HFILES=\
-	/sys/include/ip.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 18
sys/src/liblex/mkfile

@@ -1,18 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libl.a
-OFILES=\
-	allprint.$O\
-	main.$O\
-	reject.$O\
-	yyless.$O\
-	yywrap.$O\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/amd64/%}\
-
-CFLAGS=$CFLAGS -I/sys/src/cmd/lex
-</sys/src/cmd/mksyslib

+ 0 - 43
sys/src/libmemdraw/mkfile

@@ -1,43 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libmemdraw.a
-OFILES=\
-	alloc.$O\
-	arc.$O\
-	cload.$O\
-	cmap.$O\
-	cread.$O\
-	defont.$O\
-	draw.$O\
-	ellipse.$O\
-	fillpoly.$O\
-	hwdraw.$O\
-	iprint.$O\
-	line.$O\
-	load.$O\
-	openmemsubfont.$O\
-	poly.$O\
-	read.$O\
-	string.$O\
-	subfont.$O\
-	unload.$O\
-	write.$O\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-
-</sys/src/cmd/mksyslib
-
-$O.drawtime: drawtime.$O $LIB
-	$LD -o $target $prereq
-
-$O.drawtest: drawtest.$O $LIB
-	$LD -o $target $prereq
- 
-$O.arctest: arctest.$O draw.$O arc.$O $LIB
-	$LD -o $target $prereq
-
-$O.test: test.$O $LIB
-	$LD -o $target $prereq

+ 0 - 29
sys/src/libmemlayer/mkfile

@@ -1,29 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libmemlayer.a
-
-OFILES=\
-	draw.$O\
-	lalloc.$O\
-	layerop.$O\
-	ldelete.$O\
-	lhide.$O\
-	line.$O\
-	load.$O\
-	lorigin.$O\
-	lsetrefresh.$O\
-	ltofront.$O\
-	ltorear.$O\
-	unload.$O\
-
-HFILES=\
-	/sys/include/memlayer.h\
-	/sys/include/memdraw.h\
-	/sys/include/draw.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-
-</sys/src/cmd/mksyslib

+ 0 - 20
sys/src/libmp/386/mkfile

@@ -1,20 +0,0 @@
-objtype=386
-</386/mkfile
-
-LIB=/$objtype/lib/libmp.a
-SFILES=\
-	mpvecadd.s\
-	mpvecdigmuladd.s\
-	mpvecdigmulsub.s\
-	mpvecsub.s\
-	mpdigdiv.s\
-
-HFILES=/$objtype/include/u.h /sys/include/mp.h ../port/dat.h
-
-OFILES=${SFILES:%.s=%.$O}
-
-UPDATE=mkfile\
-	$HFILES\
-	$SFILES\
-
-</sys/src/cmd/mksyslib

+ 0 - 4
sys/src/libmp/amd64/mkfile

@@ -1,4 +0,0 @@
-all:
-
-%:V:
-        # nothing to see here

+ 0 - 13
sys/src/libmp/arm/mkfile

@@ -1,13 +0,0 @@
-objtype=arm
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libmp.a
-OFILES=	\
-
-HFILES=/$objtype/include/u.h /sys/include/mp.h ../port/dat.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-
-</sys/src/cmd/mksyslib

+ 0 - 21
sys/src/libmp/mips/mkfile

@@ -1,21 +0,0 @@
-objtype=mips
-</mips/mkfile
-
-LIB=/$objtype/lib/libmp.a
-# can't use this mpdigdiv.s on mips32 cpus
-SFILES=\
-	mpvecadd.s\
-	mpvecsub.s\
-	mpvecdigmuladd.s\
-	mpvecdigmulsub.s\
-#	mpdigdiv.s\
-
-HFILES=/$objtype/include/u.h /sys/include/mp.h ../port/dat.h
-
-OFILES=${SFILES:%.s=%.$O}
-
-UPDATE=mkfile\
-	$HFILES\
-	$SFILES\
-
-</sys/src/cmd/mksyslib

+ 0 - 61
sys/src/libmp/mkfile

@@ -1,61 +0,0 @@
-MKSHELL=$PLAN9/bin/rc
-</$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]

+ 0 - 52
sys/src/libmp/port/mkfile

@@ -1,52 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libmp.a
-FILES=\
-	mpaux\
-	mpfmt\
-	strtomp\
-	mptobe\
-	mptole\
-	betomp\
-	letomp\
-	mpadd\
-	mpsub\
-	mpcmp\
-	mpfactorial\
-	mpmul\
-	mpleft\
-	mpright\
-	mpvecadd\
-	mpvecsub\
-	mpvecdigmuladd\
-	mpveccmp\
-	mpdigdiv\
-	mpdiv\
-	mpexp\
-	mpmod\
-	mpextendedgcd\
-	mpinvert\
-	mprand\
-	crt\
-	mptoi\
-	mptoui\
-	mptov\
-	mptouv\
-
-ALLOFILES=${FILES:%=%.$O}
-# cull things in the per-machine directories from this list
-OFILES=	`{rc ./reduce $O $objtype $ALLOFILES}
-
-HFILES=\
-	/$objtype/include/u.h\
-	/sys/include/mp.h\
-	dat.h\
-
-CFILES=${FILES:%=%.c}
-
-
-UPDATE=mkfile\
-	$HFILES\
-	$CFILES\
-
-</sys/src/cmd/mksyslib

+ 0 - 19
sys/src/libmp/power/mkfile

@@ -1,19 +0,0 @@
-objtype=power
-</power/mkfile
-
-LIB=/$objtype/lib/libmp.a
-SFILES=\
-	mpvecadd.s\
-	mpvecsub.s\
-	mpvecdigmuladd.s\
-	mpvecdigmulsub.s\
-
-HFILES=/$objtype/include/u.h /sys/include/mp.h ../port/dat.h
-
-OFILES=${SFILES:%.s=%.$O}
-
-UPDATE=mkfile\
-	$HFILES\
-	$SFILES\
-
-</sys/src/cmd/mksyslib

+ 0 - 39
sys/src/libndb/mkfile

@@ -1,39 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libndb.a
-OFILES=\
-	csgetval.$O\
-	csipinfo.$O\
-	dnsquery.$O\
-	ipattr.$O\
-	ndbaux.$O\
-	ndbcache.$O\
-	ndbcat.$O\
-	ndbconcatenate.$O\
-	ndbdiscard.$O\
-	ndbfree.$O\
-	ndbgetipaddr.$O\
-	ndbgetval.$O\
-	ndbhash.$O\
-	ndbipinfo.$O\
-	ndblookval.$O\
-	ndbopen.$O\
-	ndbparse.$O\
-	ndbreorder.$O\
-	ndbsubstitute.$O\
-
-HFILES=\
-	/sys/include/ndb.h\
-	ndbhf.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-CFLAGS=$CFLAGS -I/sys/src/libndb
-</sys/src/cmd/mksyslib
-
-$O.out: testipinfo.$O
-	$LD $prereq

+ 0 - 17
sys/src/libplumb/mkfile

@@ -1,17 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libplumb.a
-OFILES=\
-	event.$O\
-	mesg.$O\
-	plumbsendtext.$O\
-
-HFILES=/sys/include/plumb.h
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib

+ 0 - 28
sys/src/libregexp/mkfile

@@ -1,28 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libregexp.a
-OFILES=\
-	regcomp.$O\
-	regerror.$O\
-	regexec.$O\
-	regsub.$O\
-	regaux.$O\
-	rregexec.$O\
-	rregsub.$O\
-
-HFILES=/sys/include/regexp.h\
-	regcomp.h\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib
-
-test: test.$O $OFILES
-	$LD -o test $prereq
-
-test2: test2.$O $OFILES
-	$LD -o test2 $prereq

+ 0 - 31
sys/src/libscribble/mkfile

@@ -1,31 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libscribble.a
-
-OFILES=\
-	li_recognizer.$O\
-	hre_api.$O\
-	graffiti.$O\
-
-HFILES = \
-	li_recognizer_internal.h\
-	hre_internal.h\
-	graffiti.h\
-	scribbleimpl.h\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-all:V:	$LIB syms
-
-< /sys/src/cmd/mksyslib
-
-syms: $HFILES
-	$CC -a li_recognizer.c	>syms
-
-graffiti.$O: scribbleimpl.h graffiti.h
-hre_api.$O: scribbleimpl.h hre_internal.h
-li_recognizer.$O: scribbleimpl.h hre_internal.h li_recognizer_internal.h

+ 0 - 69
sys/src/libstdio/mkfile

@@ -1,69 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libstdio.a
-OFILES=\
-	_IO_getc.$O\
-	_IO_putc.$O\
-	clearerr.$O\
-	dtoa.$O\
-	fclose.$O\
-	fdopen.$O\
-	feof.$O\
-	ferror.$O\
-	fflush.$O\
-	fgetc.$O\
-	fgetpos.$O\
-	fgets.$O\
-	fileno.$O\
-	fopen.$O\
-	fprintf.$O\
-	fputc.$O\
-	fputs.$O\
-	fread.$O\
-	freopen.$O\
-	fscanf.$O\
-	fseek.$O\
-	fseeko.$O\
-	fsetpos.$O\
-	ftell.$O\
-	ftello.$O\
-	fwrite.$O\
-	getc.$O\
-	gets.$O\
-	printf.$O\
-	putc.$O\
-	puts.$O\
-	rewind.$O\
-	scanf.$O\
-	sclose.$O\
-	setbuf.$O\
-	setvbuf.$O\
-	snprintf.$O\
-	sopenr.$O\
-	sopenw.$O\
-	sprintf.$O\
-	sscanf.$O\
-	tmpfile.$O\
-	tmpnam.$O\
-	ungetc.$O\
-	vfprintf.$O\
-	vfscanf.$O\
-	vprintf.$O\
-	vsnprintf.$O\
-	vsprintf.$O\
-
-HFILES=/sys/include/stdio.h\
-	iolib.h\
-
-UPDATE=\
-	mkfile\
-	$HFILES\
-	${OFILES:%.$O=%.c}\
-	${LIB:/$objtype/%=/386/%}\
-
-</sys/src/cmd/mksyslib
-# this code really can't handle any flow-analysis warnings
-#CFLAGS= -FTV
-
-test:V:	$OFILES
-	ar rv libstdio.a $OFILES

+ 0 - 30
sys/src/libsunrpc/mkfile

@@ -1,30 +0,0 @@
-</$objtype/mkfile
-
-PROTO=\
-	mount3.$O\
-	nfs3.$O\
-	portmap.$O\
-
-OFILES=\
-	authunix.$O\
-	client.$O\
-	emalloc.$O\
-	error.$O\
-	fd.$O\
-	fmt.$O\
-	net.$O\
-	prog.$O\
-	rpc.$O\
-	server.$O\
-	suncall.$O\
-	udp.$O\
-	$PROTO\
-
-HFILES=\
-	/sys/include/sunrpc.h\
-
-LIB=/$objtype/lib/libsunrpc.a
-
-</sys/src/cmd/mksyslib
-
-mount3.$O: /sys/include/nfs3.h

+ 0 - 79
sys/src/libthread/mkfile

@@ -1,79 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libthread.a
-
-OFILES=\
-	$objtype.$O\
-	channel.$O\
-	chanprint.$O\
-	create.$O\
-	debug.$O\
-	dial.$O\
-	exec.$O\
-	exit.$O\
-	id.$O\
-	iocall.$O\
-	ioclose.$O\
-	iodial.$O\
-	ioopen.$O\
-	ioproc.$O\
-	ioread.$O\
-	ioreadn.$O\
-	iosleep.$O\
-	iowrite.$O\
-	kill.$O\
-	lib.$O\
-	main.$O\
-	note.$O\
-	ref.$O\
-	rendez.$O\
-	sched.$O\
-
-CFILES=\
-	386.c\
-	amd64.c\
-	arm.c\
-	channel.c\
-	chanprint.c\
-	create.c\
-	debug.c\
-	dial.c\
-	example.c\
-	exec.c\
-	exit.c\
-	id.c\
-	iocall.c\
-	ioclose.c\
-	iodial.c\
-	ioopen.c\
-	ioproc.c\
-	ioread.c\
-	ioreadn.c\
-	iowrite.c\
-	kill.c\
-	lib.c\
-	main.c\
-	mips.c\
-	note.c\
-	power.c\
-	rendez.c\
-	sched.c\
-	test.c\
-	tprimes.c\
-
-HFILES=\
-	/sys/include/thread.h\
-	threadimpl.h\
-
-UPDATE=mkfile\
-	/386/lib/libthread.a\
-	$HFILES\
-	$CFILES\
-	$SFILES\
-
-all:V:	$LIB sched.acid channel.acid
-
-</sys/src/cmd/mksyslib
-
-$O.tprimes: tprimes.$O $LIB
-	$LD -o $target $prereq

+ 0 - 45
sys/src/libventi/mkfile

@@ -1,45 +0,0 @@
-</$objtype/mkfile
-
-LIB=/$objtype/lib/libventi.a
-
-OFILES=\
-	cache.$O\
-	client.$O\
-	conn.$O\
-	dial.$O\
-	debug.$O\
-	dtype.$O\
-	entry.$O\
-	fcall.$O\
-	fcallfmt.$O\
-	file.$O\
-	hangup.$O\
-	log.$O\
-	mem.$O\
-	packet.$O\
-	parsescore.$O\
-	queue.$O\
-	root.$O\
-	rpc.$O\
-	scorefmt.$O\
-	send.$O\
-	server.$O\
-	srvhello.$O\
-	strdup.$O\
-	string.$O\
-	time.$O\
-	version.$O\
-	zero.$O\
-	zeroscore.$O\
-
-HFILES=\
-	/sys/include/venti.h\
-
-</sys/src/cmd/mksyslib
-
-send.$O: queue.h
-server.$O: queue.h
-queue.$O: queue.h
-
-CFLAGS=$CFLAGS -I.
-

+ 0 - 99
sys/src/mkfile

@@ -1,99 +0,0 @@
-MKSHELL=$PLAN9/bin/rc
-objtype=amd64
-
-</$objtype/mkfile
-
-LIBS=\
-	lib9p\
-	libString\
-	libauth\
-	libauthsrv\
-	libavl\
-	libbin\
-	libbio\
-	libc\
-	libcomplete\
-	libcontrol\
-	libdisk\
-	libdraw\
-	libflate\
-	libframe\
-	libgeometry\
-	libhtml\
-	libhttpd\
-	libip\
-	liblex\
-	libmach\
-	libmemdraw\
-	libmemlayer\
-	libmp\
-	libndb\
-	libplumb\
-	libregexp\
-	libsec\
-	libstdio\
-	libsunrpc\
-	libthread\
-	libventi\
-
-MORENOLIBS=\
-	libscribble\
-	liboventi\
-
-NOCMDS=\
-	cmd\
-	games\
-
-NOSUBSYS=ape\
-	/acme\
-
-none:VQ:
-	echo mk all, install, clean, nuke, release, kernels, or libs
-
-all install clean nuke:VQ:
-	date
-	for (i in $LIBS $SUBSYS $CMDS) @{
-		cd $i
-		mk $target
-	}
-	date
-
-installall:V:
-	echo "installall not supported"
-
-release:V:
-	mk nuke
-	rm -f /$objtype/lib/ape/*.a
-	rm -f /$objtype/lib/*.a
-	mk install
-	mk clean
-
-kernels:V:
-	for (i in 9 boot) @{
-		cd $i
-		mk clean
-		mk install
-		mk clean
-	}
-
-libs:V:
-	date
-	for (i in $LIBS) @{
-		cd $i
-		mk clean
-		mk install
-		mk clean
-	}
-	date
-
-cleanlibs:V:
-	for (i in $LIBS) @{
-		cd $i
-		mk clean
-	}
-
-updatelibs:V:
-	for (i in $LIBS) @{
-		cd $i
-		mk update
-	}

+ 0 - 20
sys/src/mkfile.clang.proto

@@ -1,20 +0,0 @@
-#
-# common mkfile parameters shared by all architectures
-#
-
-#OS=568qv
-OS=o
-CPUS=arm amd64 386 power mips
-CFLAGS=-I /amd64/include -I /sys/include -nobuiltininc
-LEX=lex
-YACC=yacc
-MK=/bin/mk
-AR=ar
-
-# recursive mk will have these set from the parent
-# this is never what we want.  clear them
-
-TARG=
-OFILES=
-HFILES=
-YFILES=

+ 0 - 43
sys/src/mkfile.proto

@@ -1,43 +0,0 @@
-#
-# common mkfile parameters shared by all architectures
-#
-
-# Provisional for cross compiling
-objtype=amd64
-
-
-INC_DIR=/sys/include
-INCX86_64_DIR=/$objtype/include
-LIB_DIR=/$objtype/lib
-WARNFLAGS=-Wall' '-Wno-missing-braces' '-Wno-parentheses' '-Wno-unknown-pragmas' '-Wuninitialized' '-Wmaybe-uninitialized
-LDFLAGS=-L$LIB_DIR
-
-#OS=568qv
-OS=o
-#CPUS=arm amd64 386 power mips
-CPUS=amd64
-#CFLAGS=-FTVw
-CFLAGS=-O0 -g -static -fplan9-extensions -ffreestanding -fno-builtin -Wall -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas -Wuninitialized -Wmaybe-uninitialized -I$INCX86_64_DIR -I$INC_DIR
-LEX=lex
-YACC=yacc
-
-#MK=/bin/mk
-
-# recursive mk will have these set from the parent
-# this is never what we want.  clear them
-
-TARG=
-OFILES=
-HFILES=
-YFILES=
-
-APELIB=/rc/bin/ape              # where helper programs go
-FAMILY=plan9
-AR=ar                            # manipulating libraries
-RANLIB=ranlib                    # for updating libraries
-
-INSTALL=/$APELIB/install          # install script
-INSOWNER=()                     # default installation parameter
-INSGROUP=bin                    # default installation parameter
-INSMODE=775                     # default installation parameter
-