henesyinit from p9f0ed2a895 years agoHistory
112 lines · 2.7 KB · Makefile
RawDownload
</$objtype/mkfile TARG=`{ls *.[cyl] | sed 's/..$//' }HFILES=/$objtype/include/u.h /sys/include/libc.h /sys/include/bio.hBIN=/$objtype/binPROGS=${TARG:%=$O.%}LDFLAGS=YFLAGS=-d NOTSYS=sml|dup|411BUGGERED=dwb|unix|gc|opq|lmlvideoNOMK=$NOTSYS|$BUGGERED cpuobjtype=`{sed -n 's/^O=//p' /$cputype/mkfile}DIRS=`{ls -l | sed '/^d/!d; s/.* //; /^('$NOMK')$/d'} none:VQ:	echo usage: mk all, install, installall, '$O'.cmd, cmd.install, or cmd.installall all:V:	$PROGS ar\.[$OS]:R:	/sys/include/ar.hcpu\.[$OS]:R:	/sys/include/auth.hed\.[$OS]:R:	/sys/include/regexp.hfile\.[$OS]:R:	/sys/include/ctype.h /sys/include/mach.hfmt\.[$OS]:R:	/sys/include/ctype.hgrep\.[$OS]:R:	/sys/include/regexp.himport\.[$OS]:R:	/sys/include/fcall.h /sys/include/auth.hinit\.[$OS]:R:	/sys/include/auth.hkprof\.[$OS]:R:	/sys/include/mach.hls\.[$OS]:R:	/sys/include/fcall.hmc\.[$OS]:R:	/sys/include/draw.hnetstat\.[$OS]:R:	/sys/include/ip.h /sys/include/ndb.hnm\.[$OS]:R:	/sys/include/ar.h /sys/include/mach.hpr\.[$OS]:R:	/sys/include/ctype.hprof\.[$OS]:R:	/sys/include/mach.hramfs\.[$OS]:R:	/sys/include/fcall.hrx\.[$OS]:R:	/sys/include/auth.hsed\.[$OS]:R:	/sys/include/regexp.hsize\.[$OS]:R:	/sys/include/mach.hsplit\.[$OS]:R:	/sys/include/regexp.hsrv\.[$OS]:R:	/sys/include/fcall.h /sys/include/ndb.hstats\.[$OS]:R:	/sys/include/draw.hstrip\.[$OS]:R:	/sys/include/a.out.htail\.[$OS]:R:	/sys/include/ctype.htar\.[$OS]:R:	/sys/include/fcall.htweak\.[$OS]:R:	/sys/include/draw.huniq\.[$OS]:R:	/sys/include/ctype.hyacc\.[$OS]:R:	/sys/include/ctype.h ^([$OS])\.(.*):R:	\2.\1	$stem1^l $LDFLAGS -o $target $stem2.$stem1 .*\.[$OS]:R:	$HFILES (.*)\.([$OS])'$':R:	\1.c	$stem2^c $CFLAGS $stem1.c &:n:	$O.&	mv $O.$stem $stem %.tab.h %.tab.c:	%.y	$YACC $YFLAGS -s $stem $prereq %.install:V: $BIN/% $BIN/%:	$O.%	test -e $cpuobjtype._cp || cp /bin/cp $cpuobjtype._cp	$cpuobjtype._cp $prereq $BIN/$stem %.directories:V:	for(i in $DIRS) @{		cd $i		echo mk $i		mk $MKFLAGS $stem	} clean:V:	cleanfiles clean.directories nuke:V:		cleanfiles nuke.directories directories:V:	install.directories cleanfiles:V:	rm -f [$OS].out *.[$OS] y.tab.? y.debug y.output [$OS].$TARG [$OS].units.tab $TARG bc.c bc.tab.h units.tab.h units.c [$OS]._cp install:V:	test -e $cpuobjtype._cp || cp /bin/cp $cpuobjtype._cp	mk $MKFLAGS $TARG.install	mk $MKFLAGS directories installall:V:	for(objtype in $CPUS)		mk $MKFLAGS install %.installall:	%.c	test -e $cpuobjtype._cp || cp /bin/cp $cpuobjtype._cp	for (objtype in $CPUS) {		rfork e		mk $stem.install &	}	wait	rm -f $stem.[$OS] y.tab.? $stem.tab.? y.debug y.output [$OS].$stem bc.c bc.tab.h units.c %.acid: %.$O $HFILES	$CC $CFLAGS -a $stem.c >$target (bc|units).c:R:	\1.tab.c	mv $stem1.tab.c $stem1.c $BIN/init:	$O.init	cp $prereq /$objtype/init