Deleted Added
full compact
1c1
< # $FreeBSD: head/sys/boot/pc98/loader/Makefile 116003 2003-06-08 03:34:49Z nyan $
---
> # $FreeBSD: head/sys/boot/pc98/loader/Makefile 125563 2004-02-07 12:19:44Z nyan $
3,4d2
< PROG= loader
< STRIP=
6,7d3
< BINDIR?= /boot
< INSTALLFLAGS= -b
12c8
< SRCS= main.c conf.c
---
> SRCS= main.c conf.c vers.c
47c43
< .include <${.CURDIR}/../../common/Makefile.inc>
---
> .include "${.CURDIR}/../../common/Makefile.inc"
49c45,46
< CFLAGS+= -I${.CURDIR}/../../.. -I. -I${.CURDIR}/../../i386
---
> CFLAGS+= -I${.CURDIR}/../../i386
> CFLAGS+= -I.
51c48
< CLEANFILES+= vers.c vers.o ${PROG}.list ${PROG}.bin ${PROG}.sym ${PROG}.help
---
> CLEANFILES= vers.c loader loader.list loader.bin loader.sym loader.help
60,70d56
< # where to get libstand from
< #XXX need a better way to do this
< LIBSTAND= ${.CURDIR}/../../../../lib/libstand/libstand.a
< .if !exists(${LIBSTAND})
< LIBSTAND= ${.OBJDIR}/../../../../lib/libstand/libstand.a
< .if !exists(${LIBSTAND})
< LIBSTAND= -lstand
< .endif
< .endif
< CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
<
72,79d57
< .if exists(${.OBJDIR}/../btx)
< BTXDIR= ${.OBJDIR}/../btx
< .else
< BTXDIR= ${.CURDIR}/../btx
< .endif
< BTXLDR= ${BTXDIR}/btxldr/btxldr
< BTXKERN= ${BTXDIR}/btx/btx
< BTXCRT= ${BTXDIR}/lib/crt0.o
89c67,70
< vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/../../i386/loader/version
---
> # Pick up ../Makefile.inc early.
> .include <bsd.init.mk>
>
> vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/../../i386/loader/version
91d71
< ${CC} -c vers.c
93c73
< ${PROG}: ${PROG}.bin ${BTXLDR} ${BTXKERN} ${BTXCRT}
---
> loader: loader.bin ${BTXLDR} ${BTXKERN} ${BTXCRT}
95c75
< -b ${BTXKERN} ${PROG}.bin
---
> -b ${BTXKERN} loader.bin
99c79
< ${PROG}.bin: ${PROG}.sym
---
> loader.bin: loader.sym
103c83
< ${PROG}.help: help.common help.pc98
---
> loader.help: help.common help.pc98
107c87
< FILES= ${PROG}.help loader.4th support.4th loader.conf
---
> FILES= loader loader.help loader.4th support.4th loader.conf
108a89,90
> # XXX INSTALLFLAGS_loader= -b
> FILESMODE_loader= ${BINMODE} -b
115c97
< .include <${.CURDIR}/../Makefile.inc>
---
> OBJS= ${SRCS:N*.h:R:S/$/.o/g}
117,121c99,100
< # Cannot use ${OBJS} above this line
< .include <bsd.prog.mk>
<
< ${PROG}.sym: ${OBJS} ${LIBPC98} ${LIBSTAND} ${LIBFICL} vers.o
< ${CC} ${LDFLAGS} -o ${.TARGET} ${BTXCRT} ${OBJS} vers.o \
---
> loader.sym: ${OBJS} ${LIBFICL} ${LIBPC98} ${LIBSTAND}
> ${CC} ${LDFLAGS} -o ${.TARGET} ${BTXCRT} ${OBJS} \
124,133c103
< # If it's not there, don't consider it a target
< .if exists(${.CURDIR}/../../../i386/include)
< beforedepend ${OBJS}: machine
<
< machine:
< ln -sf ${.CURDIR}/../../../i386/include machine
<
< .endif
<
< CLEANFILES+= machine
---
> .include <bsd.prog.mk>