1*32ff9330Sbostic# @(#)Makefile 7.7 (Berkeley) 05/08/91 2f494bcaaSbostic 38f26171aSkarelsCFLAGS= -DLOCORE 48f26171aSkarels 5e877e4b2Sbostic# source files that live in the current directory 63e9e8393SbosticSRCS= hkboot.c hpboot.c htboot.c mtboot.c raboot.c rdboot.c rlboot.c \ 73e9e8393Sbostic upboot.c utboot.c tmboot.c tsboot.c tuboot.c httoggle.s mttoggle.s \ 8e877e4b2Sbostic tmtoggle.s tstoggle.s uttoggle.s 90ec0ac1eSsam 10e877e4b2Sbostic# boot blocks that are preprocessed, then assembled 11976767b8SbosticBOOTS= hkboot hpboot htboot mtboot raboot rdboot rlboot upboot utboot \ 12976767b8Sbostic tmboot tmscpboot tsboot tuboot 13e877e4b2Sbostic 14e877e4b2Sbostic# toggle files that are assembled, but not installed 15e877e4b2SbosticTOGGLES=httoggle mttoggle tmtoggle tstoggle uttoggle 16e877e4b2Sbostic 17e877e4b2Sbosticall: ${BOOTS} ${TOGGLES} noboot 18e877e4b2Sbostic 19e877e4b2Sbostic${BOOTS}: 20e877e4b2Sbostic ${CC} -E ${CFLAGS} $@.c | as 214350e6b9Ssam nm -u a.out 224350e6b9Ssam strip a.out 234350e6b9Ssam dd if=a.out bs=32 skip=1 of=b.out 24e877e4b2Sbostic dd if=b.out of=$@ conv=sync 258f26171aSkarels rm b.out 264350e6b9Ssam 27e877e4b2Sbostic${TOGGLES}: 28e877e4b2Sbostic as $@.s 294350e6b9Ssam nm -u a.out 304350e6b9Ssam strip a.out 31e877e4b2Sbostic dd if=a.out bs=32 skip=1 of=$@ 328e8eded7Ssam 330ec0ac1eSsamnoboot: 340ec0ac1eSsam echo | dd of=noboot conv=sync 350ec0ac1eSsam 360ec0ac1eSsamclean: 37e877e4b2Sbostic rm -f a.out b.out ${BOOTS} ${TOGGLES} noboot 380ec0ac1eSsam 390ec0ac1eSsaminstall: 40e877e4b2Sbostic install -o bin -g bin -m 444 ${BOOTS} ${DESTDIR}/usr/mdec 41e877e4b2Sbostic rm -f ${DESTDIR}/usr/mdec/mboot ${DESTDIR}/usr/mdec/uboot 427442abc3Skarels ln ${DESTDIR}/usr/mdec/htboot ${DESTDIR}/usr/mdec/mboot 437442abc3Skarels ln ${DESTDIR}/usr/mdec/hpboot ${DESTDIR}/usr/mdec/uboot 44e877e4b2Sbostic 45e877e4b2Sbosticdepend: 46e877e4b2Sbostic mkdep -p ${CFLAGS} ${SRCS} 47e877e4b2Sbostic 48e877e4b2Sbostic# DO NOT DELETE THIS LINE -- mkdep uses it. 49e877e4b2Sbostic# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 50e877e4b2Sbostic 51e877e4b2Sbostichkboot: hkboot.c /usr/include/sys/disklabel.h 52e877e4b2Sbostichpboot: hpboot.c /usr/include/sys/disklabel.h 53e877e4b2Sbostichtboot: htboot.c 54e877e4b2Sbosticmtboot: mtboot.c 55e877e4b2Sbosticraboot: raboot.c /usr/include/sys/disklabel.h 56e877e4b2Sbosticrlboot: rlboot.c /usr/include/sys/disklabel.h 57e877e4b2Sbosticupboot: upboot.c /usr/include/sys/disklabel.h 58e877e4b2Sbosticutboot: utboot.c 59e877e4b2Sbostictmboot: tmboot.c 60e877e4b2Sbostictsboot: tsboot.c 61e877e4b2Sbostictuboot: tuboot.c 62e877e4b2Sbostichttoggle: httoggle.s 63e877e4b2Sbosticmttoggle: mttoggle.s 64e877e4b2Sbostictmtoggle: tmtoggle.s 65e877e4b2Sbostictstoggle: tstoggle.s 66e877e4b2Sbosticuttoggle: uttoggle.s 67e877e4b2Sbostic 68e877e4b2Sbostic# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 69