1# @(#)Makefile 7.7 (Berkeley) 05/08/91 2 3CFLAGS= -DLOCORE 4 5# source files that live in the current directory 6SRCS= hkboot.c hpboot.c htboot.c mtboot.c raboot.c rdboot.c rlboot.c \ 7 upboot.c utboot.c tmboot.c tsboot.c tuboot.c httoggle.s mttoggle.s \ 8 tmtoggle.s tstoggle.s uttoggle.s 9 10# boot blocks that are preprocessed, then assembled 11BOOTS= hkboot hpboot htboot mtboot raboot rdboot rlboot upboot utboot \ 12 tmboot tmscpboot tsboot tuboot 13 14# toggle files that are assembled, but not installed 15TOGGLES=httoggle mttoggle tmtoggle tstoggle uttoggle 16 17all: ${BOOTS} ${TOGGLES} noboot 18 19${BOOTS}: 20 ${CC} -E ${CFLAGS} $@.c | as 21 nm -u a.out 22 strip a.out 23 dd if=a.out bs=32 skip=1 of=b.out 24 dd if=b.out of=$@ conv=sync 25 rm b.out 26 27${TOGGLES}: 28 as $@.s 29 nm -u a.out 30 strip a.out 31 dd if=a.out bs=32 skip=1 of=$@ 32 33noboot: 34 echo | dd of=noboot conv=sync 35 36clean: 37 rm -f a.out b.out ${BOOTS} ${TOGGLES} noboot 38 39install: 40 install -o bin -g bin -m 444 ${BOOTS} ${DESTDIR}/usr/mdec 41 rm -f ${DESTDIR}/usr/mdec/mboot ${DESTDIR}/usr/mdec/uboot 42 ln ${DESTDIR}/usr/mdec/htboot ${DESTDIR}/usr/mdec/mboot 43 ln ${DESTDIR}/usr/mdec/hpboot ${DESTDIR}/usr/mdec/uboot 44 45depend: 46 mkdep -p ${CFLAGS} ${SRCS} 47 48# DO NOT DELETE THIS LINE -- mkdep uses it. 49# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 50 51hkboot: hkboot.c /usr/include/sys/disklabel.h 52hpboot: hpboot.c /usr/include/sys/disklabel.h 53htboot: htboot.c 54mtboot: mtboot.c 55raboot: raboot.c /usr/include/sys/disklabel.h 56rlboot: rlboot.c /usr/include/sys/disklabel.h 57upboot: upboot.c /usr/include/sys/disklabel.h 58utboot: utboot.c 59tmboot: tmboot.c 60tsboot: tsboot.c 61tuboot: tuboot.c 62httoggle: httoggle.s 63mttoggle: mttoggle.s 64tmtoggle: tmtoggle.s 65tstoggle: tstoggle.s 66uttoggle: uttoggle.s 67 68# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 69