⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mkfile

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻
字号:
CONF=pcCONFLIST=pc pccpu pcf pccpuf pcdisk pcauthCRAPLIST=pccd pcflopEXTRACOPIES=#EXTRACOPIES=lookout boundary	# copy to these servers on installobjtype=386</$objtype/mkfilep=9# must match mem.hAPBOOTSTRAP=0xF0003000KTZERO=0xF0100020DEVS=`{rc ../port/mkdevlist $CONF}PORT=\	alarm.$O\	alloc.$O\	allocb.$O\	auth.$O\	cache.$O\	chan.$O\	dev.$O\	edf.$O\	fault.$O\	latin1.$O\	page.$O\	parse.$O\	pgrp.$O\	portclock.$O\	print.$O\	proc.$O\	qio.$O\	qlock.$O\	rdb.$O\	rebootcmd.$O\	segment.$O\	swap.$O\	sysfile.$O\	sysproc.$O\	taslock.$O\	tod.$O\	xalloc.$O\OBJ=\	l.$O\	plan9l.$O\	cga.$O\	i8253.$O\	i8259.$O\	kbd.$O\	main.$O\	memory.$O\	mmu.$O\	random.$O\	trap.$O\	$CONF.root.$O\	$CONF.rootc.$O\	$DEVS\	$PORT\LIB=\	/$objtype/lib/libmemlayer.a\	/$objtype/lib/libmemdraw.a\	/$objtype/lib/libdraw.a\	/$objtype/lib/libc.a\	/$objtype/lib/libsec.a\ETHER=`{echo devether.c ether*.c | sed 's/\.c/.'$O'/g'}VGA=`{echo devvga.c screen.c vga*.c | sed 's/\.c/.'$O'/g'}SDEV=`{echo devsd.c sd*.c | sed 's/\.c/.'$O'/g'}$p$CONF:	$CONF.c $OBJ $LIB	$CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c	$LD -o $target -T$KTZERO -l $OBJ $CONF.$O $LIB	size $target# don't strip the gzipped kernels -- too frustrating when that's all you have!$p%.gz:	$p%	gzip -9 <$p$stem >$p$stem.gz# pcflop and pccd need all the space they can get9pcflop.gz: 9pcflop	strip -o /fd/1 9pcflop | gzip -9 >9pcflop.gz9pccd.gz: 9pccd	strip -o /fd/1 9pccd | gzip -9 >9pccd.gzinstall:V:	$p$CONF $p$CONF.gz	cp $p$CONF $p$CONF.gz /$objtype/	for(i in $EXTRACOPIES)		import $i / /n/$i && cp $p$CONF $p$CONF.gz /n/$i/$objtype/<../boot/bootmkfile<../port/portmkfile<|../port/mkbootrules $CONF$ETHER: 			etherif.h ../port/netif.hether8003.$O ether8390.$O:	ether8390.h$VGA mouse.$O:			screen.hdevfloppy.$O: 			floppy.harchmp.$O mp.$O:		apbootstrap.hapic.$O archmp.$O mp.$O:	mp.h$SDEV:				../port/sd.hsd53c8xx.$O:			sd53c8xx.imain.$O:			init.h reboot.hwavelan.$O:			wavelan.c ../pc/wavelan.c ../pc/wavelan.hetherwavelan.$O:		etherwavelan.c ../pc/wavelan.hdevusb.$O usbuhci.$O usbohci.$O: usb.htrap.$O:			/sys/include/tos.huartaxp.$O:			uartaxp.iinit.h:		../port/initcode.c init9.c	$CC ../port/initcode.c	$CC init9.c	$LD -l -R1 -o init.out init9.$O initcode.$O /386/lib/libc.a	strip init.out	{echo 'uchar initcode[]={'	 cat init.out | xd -1x |		sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'	 echo '};'} > init.hreboot.h:	rebootcode.s	$AS rebootcode.s	$LD -l -s -T0x11000 -R4 -o reboot.out rebootcode.$O	{echo 'uchar rebootcode[]={'	 xd -1x reboot.out |		sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'	 echo '};'} > reboot.hapbootstrap.h:	apbootstrap.s mem.h	$AS $prereq	$LD -o apbootstrap.out -T$APBOOTSTRAP -R4 -l -s apbootstrap.$O	{echo 'uchar apbootstrap[]={'	 xd -1x apbootstrap.out |		sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'	 echo '};'} > $targetsd53c8xx.i:	sd53c8xx.n	aux/na $prereq > $targetuartaxp.i:	a100p.cp	{echo 'static uchar uartaxpcp[] = {'	 xd -1x $prereq |		sed -e 's/^[0-9a-f]+ //' -e '/^$/d' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'	 echo '};'	} > $targetacid:V:	8c -a -w -I. i8253.c>acid%.checkether:VQ:	for (i in ether*.c){		x=`{echo $i | sed 's/\.c//'}		if(! ~ $x ether8390 && ! grep -s '^	'^$x^'([ 	]|$)' $stem)			echo $x not included in $stem	}	exit 0%.checkvga:VQ:	for (i in vga*.c){		x=`{echo $i | sed 's/\.c//'}		if(! ~ $x vga vgax vgasavage && ! grep -s '^	'^$x^'([ 	]|$)' $stem)			echo $x not included in $stem	}	exit 0checkdist:VQ:	for(i in pcdisk pcflop)	for(j in checkvga checkether)		mk $i.$j%.clean:V:	rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* reboot.h apbootstrap.h init.h# testing9load:D: /usr/rsc/boot/$O.load 9pcload	cat $prereq >$target9load.flp: 9load	disk/format -b /386/pbs -df $target $prereq$p$CONF.flp: /386/9load plan9.ini $p$CONF.gz	disk/format -b /386/pbs -df $target $prereq

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -