e4dd1abb05
errno from conf.c and put it in boot.c.
40 lines
946 B
Makefile
40 lines
946 B
Makefile
# $NetBSD: Makefile,v 1.7 1999/03/14 00:57:06 simonb Exp $
|
|
# @(#)Makefile 8.3 (Berkeley) 2/16/94
|
|
|
|
|
|
S= ${.CURDIR}/../../../..
|
|
PROG= boot
|
|
SRCS= start.S boot.c conf.c
|
|
CLEANFILES+=${PROG}.elf ${PROG}.map ${ALL}
|
|
|
|
DPADD+= ${LIBS}
|
|
MKMAN= no
|
|
LDBUG= -T $S/arch/mips/conf/stand.ldscript
|
|
|
|
# Tell boot code which drivers we want to link against
|
|
SRCS+= rz.c
|
|
|
|
|
|
ALL= boot mkboot rzboot bootrz
|
|
|
|
all: ${ALL}
|
|
|
|
${PROG}: ${OBJS} ${LIBS}
|
|
ld -Map ${PROG}.map -N -Ttext ${RELOC} ${LDBUG} -e start \
|
|
${OBJS} ${LIBS} -o ${PROG}.elf
|
|
elf2aout ${PROG}.elf ${PROG}
|
|
|
|
mkboot: ${.CURDIR}/mkboot.c
|
|
${CC} ${CPPFLAGS} ${INCPATH} -o mkboot ${.CURDIR}/mkboot.c
|
|
|
|
rzboot bootrz: mkboot ${PROG}
|
|
./mkboot ${PROG} rzboot bootrz
|
|
|
|
proginstall:: bootrz rzboot
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
${.ALLSRC} ${DESTDIR}${BINDIR}
|
|
|
|
.include <bsd.prog.mk>
|
|
.include "../Makefile.inc" # XXX after <bsd.prog.mk> to reset CFLAGS, etc
|
|
.include "../Makefile.booters"
|