📄 makefile
字号:
# @(#)Makefile 7.30 (Berkeley) 5/8/91DESTDIR=STAND= ../../standINCPATH=-I. -I../.. -I${STAND}VPATH= ${STAND}:../vaxCC= ccC2= /usr/libexec/c2AS= asRELOC= 150000DEFS= ${INCPATH} -DSTANDALONE -DCOMPAT_42MACH= -DVAX8600 -DVAX8200 -DVAX780 -DVAX750 -DVAX730 -DVAX630 -DVAX650# Collections of C options:# COPTS device drivers/assembler, not optimized# SMOPTS "small" versions for 7.5K bootxx programs# 730OPTS "small" versions for 11/730-only versions# CFLAGS everything elseCOPTS= ${DEFS} ${MACH}SMOPTS= ${DEFS} -DSMALL -DVAX750 -DVAX630 -DVAX650730OPTS=-O ${DEFS} -DVAX730CFLAGS= -O ${DEFS} ${MACH}DRIVERS=autoconf.c hp.c hpmaptype.c ht.c idc.c kdb.c mba.c mt.c qdcons.c \ qvcons.c rk.c rl.c tm.c tmscp.c ts.c uba.c uda.c up.c upmaptype.c \ ut.cDOBJS= ${DRIVERS:.c=.o}SRCS= boot.c bootxx.c cat.c copy.c drtest.c format.c format.c machdep.c \ prf.c qfont.c conf.c ../vax/dkbad.c ${DRIVERS}DUMMIES=confxx.cSMOBJ= bootxx.o sm_autoconf.o LIBS= libsa/libsa.a libdrive.a ${DESTDIR}/usr/lib/libc.aSMLIBS= libsmsa/libsmsa.a libdrive.a ${DESTDIR}/usr/lib/libc.a# These drivers don't have ecc correction and bad sector forwarding;# they are placed in the file system boot area for 750's. If your# root has bad sectors you can try and squeeze the newer drivers in...ODRIVERS=sm_hp.o sm_up.oMDEC= boothp boothk bootkra bootup bootra bootrlALL= boot tpboot cat copy tpcopy format tpformat drtest ls \ 730boot 730copy 730format 730drtest ${MDEC}all: ${ALL}libsa/libsa.a:: cd libsa; makelibsmsa/libsmsa.a:: cd libsa; makelibdrive.a: conf.o dkbad.o machdep.o prf.o qfont.o ${DOBJS} ar crv $@ $? ranlib $@${DOBJS}: ${CC} -c -S ${COPTS} $*.c ${C2} -i $*.s | as -o $*.o rm -f $*.s# startupssrt0.o: srt0.c ../include/mtpr.h ../include/cpu.h ${CC} -E -DRELOC=0x${RELOC} ${COPTS} srt0.c | as -o srt0.otpsrt0.o: srt0.c ../include/mtpr.h ../include/cpu.h ${CC} -E -DRELOC=0x${RELOC} -DTP ${COPTS} srt0.c | as -o tpsrt0.orelsrt0.o: srt0.c ../include/mtpr.h ../include/cpu.h ${CC} -E -DRELOC=0x${RELOC} -DREL ${COPTS} srt0.c | as -o relsrt0.o# bootable from tapetpboot: tpboot.o relsrt0.o ${LIBS} ld -N -T ${RELOC} relsrt0.o tpboot.o ${LIBS} strip a.out; dd if=a.out of=tpboot ibs=32 skip=1; rm -f a.outtpboot.o: boot.o rm -f $*.c ln -s boot.c $*.c ${CC} -c ${CFLAGS} -DJUSTASK $*.c rm -f $*.ctpcopy: copy.o tpsrt0.o ${LIBS} ld -N tpsrt0.o copy.o ${LIBS} strip a.out; dd if=a.out of=tpcopy ibs=32 skip=1; rm -f a.outtpformat: tpformat.o tpsrt0.o confhpup.o ${LIBS} ld -N tpsrt0.o tpformat.o confhpup.o ${LIBS} strip a.out; dd if=a.out of=tpformat ibs=32 skip=1; rm -f a.outtpformat.o: format.o rm -f $*.c ln -s format.c $*.c ${CC} -c ${CFLAGS} -DJUSTEXIT $*.c rm -f $*.c# bootable from floppy or real disksboot: boot.o relsrt0.o bootconf.o ${LIBS} ld -N -T ${RELOC} -o $@ relsrt0.o boot.o bootconf.o ${LIBS}bootconf.o: conf.o rm -f $*.c ln -s conf.c $*.c ${CC} -c ${CFLAGS} -DBOOT $*.c rm -f $*.ccopy: copy.o srt0.o getfile.o ${LIBS} ld -N -o $@ srt0.o copy.o getfile.o ${LIBS}cat: cat.o srt0.o getfile.o ${LIBS} ld -N -o $@ srt0.o cat.o getfile.o ${LIBS}ls: ls.o srt0.o ${LIBS} ld -N -o $@ srt0.o ls.o ${LIBS}format: format.o srt0.o confhpup.o ${LIBS} ld -N -o $@ srt0.o format.o confhpup.o ${LIBS}drtest: drtest.o srt0.o confhpup.o ${LIBS} ld -N -o $@ srt0.o drtest.o confhpup.o ${LIBS}# for 730s minimize size to avoid microcode botch# (won't load files larger than 12.5 Kbytes)730boot.o: boot.o rm -f $*.c ln -s boot.c $*.c ${CC} -c ${730OPTS} $*.c rm -f $*.c730boot: 730boot.o relsrt0.o 730bootconf.o ${LIBS} ld -N -T ${RELOC} -o 730boot relsrt0.o 730boot.o 730bootconf.o ${LIBS}730bootconf.o: conf.o rm -f $*.c ln -s conf.c $*.c ${CC} -c ${730OPTS} -DBOOT $*.c rm -f $*.c730copy: copy.o srt0.o 730conf.o ${LIBS} ld -N -o $@ srt0.o copy.o 730conf.o ${LIBS}730drtest: drtest.o srt0.o confup.o ${LIBS} ld -N -o $@ srt0.o drtest.o confup.o ${LIBS}730format: format.o srt0.o confup.o ${LIBS} ld -N -o $@ srt0.o format.o confup.o ${LIBS}730conf.o: conf.o rm -f $*.c ln -s conf.c $*.c ${CC} -c ${730OPTS} $*.c rm -f $*.c# bootstrap from ether### not yet, rosin, not yet #### getting booted from discboothk: relsrt0.o confrk.o ${SMOBJ} ${LIBS} ld -N -T ${RELOC} relsrt0.o confrk.o ${SMOBJ} ${LIBS} size a.out rm -f $@ strip a.out;dd if=a.out of=$@ ibs=32 skip=1;rm -f a.out ls -l $@boothp: relsrt0.o confhp.o sm_hp.o ${SMOBJ} ${SMLIBS} ld -N -T ${RELOC} relsrt0.o confhp.o sm_hp.o ${SMOBJ} ${SMLIBS} size a.out rm -f $@ strip a.out;dd if=a.out of=$@ ibs=32 skip=1;rm -f a.out ls -l $@bootkra: relsrt0.o confkra.o ${SMOBJ} ${SMLIBS} ld -N -T ${RELOC} relsrt0.o confkra.o ${SMOBJ} ${SMLIBS} size a.out rm -f $@ strip a.out;dd if=a.out of=$@ ibs=32 skip=1;rm -f a.out ls -l $@bootup: relsrt0.o confup.o sm_up.o ${SMOBJ} ${SMLIBS} ld -N -T ${RELOC} relsrt0.o confup.o sm_up.o ${SMOBJ} ${SMLIBS} size a.out rm -f $@ strip a.out;dd if=a.out of=$@ ibs=32 skip=1;rm -f a.out ls -l $@bootra: relsrt0.o confra.o ${SMOBJ} ${SMLIBS} ld -N -T ${RELOC} relsrt0.o confra.o ${SMOBJ} ${SMLIBS} size a.out rm -f $@ strip a.out;dd if=a.out of=$@ ibs=32 skip=1;rm -f a.out ls -l $@bootrl: relsrt0.o confrl.o ${SMOBJ} ${SMLIBS} ld -N -T ${RELOC} relsrt0.o confrl.o ${SMOBJ} ${SMLIBS} size a.out rm -f $@ strip a.out;dd if=a.out of=$@ ibs=32 skip=1;rm -f a.out ls -l $@sm_hp.o: hp.o rm -f sm_hp.c ln -s hp.c sm_hp.c ${CC} -S ${SMOPTS} sm_hp.c ${C2} -i sm_hp.s | as -o sm_hp.o rm -f sm_hp.s sm_hp.csm_up.o: up.o rm -f sm_up.c ln -s up.c sm_up.c ${CC} -S ${SMOPTS} sm_up.c ${C2} -i sm_up.s | as -o sm_up.o rm -f sm_up.s sm_up.csm_autoconf.o: autoconf.o rm -f sm_autoconf.c ln -s autoconf.c sm_autoconf.c ${CC} -c -O ${SMOPTS} sm_autoconf.c rm -f sm_autoconf.cconfrk.o: confrk.c confxx.oconfhp.o: confhp.c confxx.oconfkra.o: confkra.c confxx.oconfup.o: confup.c confxx.oconfra.o: confra.c confxx.oconfrl.o: confrl.c confxx.o# These are currently not compiled using -DSMALL; doing so would result in# some extra space. See the i386/stand code for examples.confxx.o: touch confxx.oconfrk.c: confxx.c ${STAND}/dev.c sed -e 's/io->i_dev/0/g' < ${STAND}/dev.c > confrk.c sed -e 's/XX/hk/' -e 's/xx/rk/g' < confxx.c >> confrk.cconfhp.c: confxx.c ${STAND}/dev.c sed -e 's/io->i_dev/0/g' < ${STAND}/dev.c > confhp.c sed -e 's/XX/hp/' -e 's/xx/hp/g' < confxx.c >> confhp.cconfkra.c: confxx.c ${STAND}/dev.c sed -e 's/io->i_dev/0/g' < ${STAND}/dev.c > confkra.c sed -e 's/XX/kra/' -e 's/xx/kra/g' < confxx.c >> confkra.cconfup.c: confxx.c ${STAND}/dev.c sed -e 's/io->i_dev/0/g' < ${STAND}/dev.c > confup.c sed -e 's/XX/up/' -e 's/xx/up/g' < confxx.c >> confup.cconfra.c: confxx.c ${STAND}/dev.c sed -e 's/io->i_dev/0/g' < ${STAND}/dev.c > confra.c sed -e 's/XX/ra/' -e 's/xx/ra/g' < confxx.c >> confra.cconfrl.c: confxx.c ${STAND}/dev.c sed -e 's/io->i_dev/0/g' < ${STAND}/dev.c > confrl.c sed -e 's/XX/rl/' -e 's/xx/rl/g' < confxx.c >> confrl.cclean: rm -f *.o *.exe *.i sm_*.c libsa.a rm -f boot[a-wyz][a-z].c conf[a-wyz][a-z].c confkra.c rm -f ${ALL} a.out core errs sboot bootconf.c cd ${STAND}; make clean cd ${STAND}/small; make cleancleandir: clean rm -f ${MAN} tags .dependdepend: ${SRCS} mkdep ${INCPATH} -DSTANDALONE ${SRCS} ${DUMMIES}install: install -c -s -o bin -g bin -m 644 \ format cat copy drtest ls ${DESTDIR}/stand [ -d ../vaxdist/tp ] || mkdir ../vaxdist/tp cp tpcopy ../vaxdist/tp/copy cp tpboot ../vaxdist/tp/boot cp tpformat ../vaxdist/tp/format cp boot a.out; strip a.out; \ dd if=a.out of=../floppy/boot bs=32 skip=1; rm a.out cp 730boot a.out; strip a.out; \ dd if=a.out of=../cassette/boot.730 bs=32 skip=1; rm a.out cp ../floppy/boot ../cassette/boot.750 cp ../floppy/boot ../consolerl/boot cp copy a.out; strip a.out; \ dd if=a.out of=../floppy/copy bs=32 skip=1; rm a.out cp 730copy a.out; strip a.out; \ dd if=a.out of=../cassette/copy.730 bs=32 skip=1; rm a.out cp ../floppy/copy ../cassette/copy.750 cp ../floppy/copy ../consolerl/copy cp format a.out; strip a.out; \ dd if=a.out of=../floppy/format bs=32 skip=1; rm a.out cp 730format a.out; strip a.out; \ dd if=a.out of=../cassette/format.730 bs=32 skip=1; rm a.out cp ../floppy/format ../cassette/format.750 cp ../floppy/format ../consolerl/format cp drtest a.out; strip a.out; \ dd if=a.out of=../floppy/drtest bs=32 skip=1; rm a.out cp 730drtest a.out; strip a.out; \ dd if=a.out of=../cassette/drtest.730 bs=32 skip=1; rm a.out cp ../floppy/drtest ../cassette/drtest.750 cp ../floppy/drtest ../consolerl/drtest install -c -o bin -g bin -m 444 ${MDEC} ${DESTDIR}/usr/mdec rm -f ${DESTDIR}/usr/mdec/bootrd ln ${DESTDIR}/usr/mdec/bootra ${DESTDIR}/usr/mdec/bootrdlint: ${SRCS} lint ${COPTS} -hxbn boot.c ${SRCS} | \ sed -e '/possible pointer alignment/d' \ -e '/struct\/union .* never defined/d'tags: ${SRCS} ctags ${SRCS} ${DUMMIES}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -