diff options
author | obrien <obrien@FreeBSD.org> | 2003-01-18 23:09:56 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-01-18 23:09:56 +0000 |
commit | d09e50792c6dc82c27e751848ae8417ce7510895 (patch) | |
tree | ec521bea964d2ddadd3d454903f2ebdf2db9cc3e /sys | |
parent | f199b661e8467884b0a26e72c8f5223a8055ad45 (diff) | |
download | FreeBSD-src-d09e50792c6dc82c27e751848ae8417ce7510895.zip FreeBSD-src-d09e50792c6dc82c27e751848ae8417ce7510895.tar.gz |
Simplify the Makefile by just using our standard PROG variable.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/boot/i386/loader/Makefile | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sys/boot/i386/loader/Makefile b/sys/boot/i386/loader/Makefile index 68b6e21..af8d51f 100644 --- a/sys/boot/i386/loader/Makefile +++ b/sys/boot/i386/loader/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ -BASE= loader -PROG= ${BASE} +PROG= loader STRIP= NEWVERSWHAT= "bootstrap loader" i386 BINDIR?= /boot @@ -46,7 +45,7 @@ CFLAGS+= -DLOADER_GZIP_SUPPORT CFLAGS+= -I${.CURDIR}/../../common CFLAGS+= -I${.CURDIR}/../../.. -I. -CLEANFILES+= vers.c vers.o ${BASE}.list ${BASE}.bin ${BASE}.sym ${BASE}.help +CLEANFILES+= vers.c vers.o ${PROG}.list ${PROG}.bin ${PROG}.sym ${PROG}.help CFLAGS+= -Wall LDFLAGS= -nostdlib -static -Ttext 0x0 @@ -88,21 +87,21 @@ vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT} ${CC} -c vers.c -${BASE}: ${BASE}.bin ${BTXLDR} ${BTXKERN} ${BTXCRT} +${PROG}: ${PROG}.bin ${BTXLDR} ${BTXKERN} ${BTXCRT} btxld -v -f aout -e ${LOADER_ADDRESS} -o ${.TARGET} -l ${BTXLDR} \ - -b ${BTXKERN} ${BASE}.bin + -b ${BTXKERN} ${PROG}.bin # /usr/bin/kzip ${.TARGET} # mv ${.TARGET}.kz ${.TARGET} -${BASE}.bin: ${BASE}.sym +${PROG}.bin: ${PROG}.sym cp ${.ALLSRC} ${.TARGET} strip -R .comment -R .note ${.TARGET} -${BASE}.help: help.common help.i386 +${PROG}.help: help.common help.i386 cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET} .PATH: ${.CURDIR}/../../forth -FILES= ${BASE}.help loader.4th support.4th loader.conf +FILES= ${PROG}.help loader.4th support.4th loader.conf FILESDIR_loader.conf= /boot/defaults .if !exists(${DESTDIR}/boot/loader.rc) @@ -114,7 +113,7 @@ FILES+= loader.rc # Cannot use ${OBJS} above this line .include <bsd.prog.mk> -${BASE}.sym: ${OBJS} ${LIBI386} ${LIBSTAND} ${LIBFICL} vers.o +${PROG}.sym: ${OBJS} ${LIBI386} ${LIBSTAND} ${LIBFICL} vers.o ${CC} ${LDFLAGS} -o ${.TARGET} ${BTXCRT} ${OBJS} vers.o \ ${LIBFICL} ${LIBI386} ${LIBSTAND} |