Makefile (40620) | Makefile (40877) |
---|---|
1# $Id: Makefile,v 1.14 1998/10/22 20:23:58 msmith Exp $ | 1# $Id: Makefile,v 1.15 1998/10/23 22:32:27 msmith Exp $ |
2 3BASE= loader 4PROG= ${BASE} 5NOMAN= 6STRIP= 7NEWVERSWHAT= "bootstrap loader" 8BINDIR?= /boot 9 10# architecture-specific loader code 11SRCS= main.c conf.c 12 13# Enable PnP and ISA-PnP code. 14HAVE_PNP= yes 15HAVE_ISABUS= yes 16 | 2 3BASE= loader 4PROG= ${BASE} 5NOMAN= 6STRIP= 7NEWVERSWHAT= "bootstrap loader" 8BINDIR?= /boot 9 10# architecture-specific loader code 11SRCS= main.c conf.c 12 13# Enable PnP and ISA-PnP code. 14HAVE_PNP= yes 15HAVE_ISABUS= yes 16 |
17# Enable BootForth 18#BOOT_FORTH= yes 19#CFLAGS+= -DBOOT_FORTH -I${.CURDIR}/../../ficl 20#LIBFICL= ${.CURDIR}/../../ficl/libficl.a 21 |
|
17# Always add MI sources 18.PATH: ${.CURDIR}/../../common 19.include <${.CURDIR}/../../common/Makefile.inc> 20CFLAGS+= -I${.CURDIR}/../../common 21CFLAGS+= -I${.CURDIR}/../../.. -I. 22 23CLEANFILES+= vers.c vers.o ${BASE}.list ${BASE}.bin ${BASE}.sym 24 --- 22 unchanged lines hidden (view full) --- 47 48# BTX is expecting ELF components 49CFLAGS+= -elf 50 51# New linker set code 52CFLAGS+= -DNEW_LINKER_SET 53 54# Debug me! | 22# Always add MI sources 23.PATH: ${.CURDIR}/../../common 24.include <${.CURDIR}/../../common/Makefile.inc> 25CFLAGS+= -I${.CURDIR}/../../common 26CFLAGS+= -I${.CURDIR}/../../.. -I. 27 28CLEANFILES+= vers.c vers.o ${BASE}.list ${BASE}.bin ${BASE}.sym 29 --- 22 unchanged lines hidden (view full) --- 52 53# BTX is expecting ELF components 54CFLAGS+= -elf 55 56# New linker set code 57CFLAGS+= -DNEW_LINKER_SET 58 59# Debug me! |
55#CFLAGS+= -g 56#LDFLAGS+= -g | 60CFLAGS+= -g 61LDFLAGS+= -g |
57 58vers.o: 59 sh ${.CURDIR}/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT} 60 ${CC} -c vers.c 61 62${BASE}: ${BASE}.bin ${BTXLDR} ${BTXKERN} ${BTXCRT} 63 btxld -v -f aout -e 0x100000 -o ${.TARGET} -l ${BTXLDR} -b ${BTXKERN} \ 64 ${BASE}.bin 65 66${BASE}.bin: ${BASE}.sym 67 cp ${.ALLSRC} ${.TARGET} 68 strip ${.TARGET} 69 70# Cannot use ${OBJS} above this line 71.include <bsd.prog.mk> 72 | 62 63vers.o: 64 sh ${.CURDIR}/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT} 65 ${CC} -c vers.c 66 67${BASE}: ${BASE}.bin ${BTXLDR} ${BTXKERN} ${BTXCRT} 68 btxld -v -f aout -e 0x100000 -o ${.TARGET} -l ${BTXLDR} -b ${BTXKERN} \ 69 ${BASE}.bin 70 71${BASE}.bin: ${BASE}.sym 72 cp ${.ALLSRC} ${.TARGET} 73 strip ${.TARGET} 74 75# Cannot use ${OBJS} above this line 76.include <bsd.prog.mk> 77 |
73${BASE}.sym: ${OBJS} ${LIBI386} vers.o | 78${BASE}.sym: ${OBJS} ${LIBI386} ${LIBSTAND} ${LIBFICL} vers.o |
74 ${CC} ${LDFLAGS} -o ${.TARGET} ${BTXCRT} ${OBJS} vers.o \ | 79 ${CC} ${LDFLAGS} -o ${.TARGET} ${BTXCRT} ${OBJS} vers.o \ |
75 ${LIBSTAND} ${LIBI386} ${LIBSTAND} | 80 ${LIBFICL} ${LIBSTAND} ${LIBI386} ${LIBSTAND} |
76 77# If it's not there, don't consider it a target 78.if exists(${.CURDIR}/../../../i386/include) 79beforedepend ${OBJS}: machine 80 81machine: 82 ln -sf ${.CURDIR}/../../../i386/include machine 83 84.endif 85 86CLEANFILES+= machine 87 88 | 81 82# If it's not there, don't consider it a target 83.if exists(${.CURDIR}/../../../i386/include) 84beforedepend ${OBJS}: machine 85 86machine: 87 ln -sf ${.CURDIR}/../../../i386/include machine 88 89.endif 90 91CLEANFILES+= machine 92 93 |