henesyinit from p9fce6d0435 years agoHistory
152 lines · 3.4 KB · Makefile
RawDownload
</$objtype/mkfile TARG=`{ls *.[cyl] | sed 's/..$//' }YFILES=units.y bc.yHFILES=/$objtype/include/u.h /sys/include/libc.h /sys/include/bio.hBIN=/$objtype/binPROGS=${TARG:%=$O.%}CFLAGS=-wLDFLAGS=YFLAGS=-d #NOTSYS=eqn|lp|map|pic|proof|tbl|tex|troff|weather|sml|dupNOTSYS=weather|dup|411|sml			#for distributionsBUGGERED=dwb|lbp|unix|psi|ua|uc|ulNOMK=$NOTSYS|$BUGGERED 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 ^([$OS])\.(.*):R:	\2.\1	$stem1^l $LDFLAGS -o $target $stem2.$stem1 .*\.[$OS]:R:	$HFILES ar\.[$OS]:R:	/sys/include/ar.hbtrace\.[$OS]:R:	/sys/include/libg.h /sys/include/fcall.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.hlogin\.[$OS]:R:	/sys/include/auth.hls\.[$OS]:R:	/sys/include/fcall.hmc\.[$OS]:R:	/sys/include/libg.hmugs\.[$OS]:R:	/sys/include/libg.h /sys/include/fb.hnetstat\.[$OS]:R:	/sys/include/ip.h /sys/include/ndb.hnm\.[$OS]:R:	/sys/include/ar.h /sys/include/mach.hpasswd\.[$OS]:R:	/sys/include/auth.hpr\.[$OS]:R:	/sys/include/ctype.hprof\.[$OS]:R:	/sys/include/mach.hramfs\.[$OS]:R:	/sys/include/fcall.hrl\.[$OS]:R:	/sys/include/ar.h /sys/include/mach.hrx\.[$OS]:R:	/sys/include/auth.hsed\.[$OS]:R:	/sys/include/regexp.hshowimage\.[$OS]:R:	/sys/include/libg.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/libg.hstrip\.[$OS]:R:	/sys/include/a.out.htail\.[$OS]:R:	/sys/include/ctype.htar\.[$OS]:R:	/sys/include/fcall.htweak\.[$OS]:R:	/sys/include/libg.huniq\.[$OS]:R:	/sys/include/ctype.hyacc\.[$OS]:R:	/sys/include/ctype.h (.*)\.([$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:	/tmp/cp $BIN/%	rm -f /tmp/cp %.install2:V:	$BIN/% $BIN/%:	$O.%	/tmp/cp $prereq $BIN/$stem /tmp/cp:	cp /bin/cp /tmp/cp installall:V:	for(objtype in $CPUS)		mk $MKFLAGS install clean:V:	rm -f *.[$OS] y.tab.? y.debug y.output [$OS].$TARG $TARG bc.c bc.tab.h units.tab.h units.c	for(i in $DIRS) @{		cd $i		echo mk $i		mk $MKFLAGS clean	}nuke:V:	rm -f *.[$OS] y.tab.? y.debug y.output [$OS].$TARG $TARG bc.c bc.tab.h units.tab.h units.c	for(i in $DIRS) @{		cd $i		echo mk $i		mk $MKFLAGS nuke	} %.installall:	%.c	cp /bin/cp /tmp/cp	for (objtype in $CPUS) {		rfork e		mk $stem.install2 &	}	wait	rm -f $stem.[$OS] y.tab.? $stem.tab.? y.debug y.output [$OS].$stem bc.c bc.tab.h units.c	rm -f /tmp/cp install:V:	mk $MKFLAGS files	mk $MKFLAGS directories files:V:	cp /bin/cp /tmp/cp	mk $MKFLAGS $TARG.install2	rm -f /tmp/cp cleanfiles:V:	rm -f [$OS].out *.[$OS] y.tab.? y.debug y.output [$OS].$TARG $TARG bc.c bc.tab.h units.tab.h units.c directories:V:	for(i in $DIRS) @{		cd $i		echo mk $i		mk $MKFLAGS install	} bc.c:	bc.tab.c	mv $prereq $target units.c:	units.tab.c	mv $prereq $target $BIN/init:	$O.init	cp $prereq /$objtype/init (.*)\.[vk8]'$':R:	\1.l	$ALEF $CFLAGS $stem1.l (.*)\.[2z]'$':RQ:	\1.l	; 2.md5sum:Q:	$OFILES $LIB	echo 'no alef compiler for 68020' /68020/bin/md5sum:Q:	2.md5sum	;