1998-08-21 03:17:42 +00:00
|
|
|
# $NetBSD: Makefile,v 1.15 1998/03/28 00:21:35 thorpej Exp $
|
1999-12-15 18:16:56 +00:00
|
|
|
# $FreeBSD$
|
1998-08-21 03:17:42 +00:00
|
|
|
|
|
|
|
.include <../Makefile.inc>
|
|
|
|
|
|
|
|
PROG = boot1
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../libalpha
|
|
|
|
|
|
|
|
SRCS= start.S boot1.c sys.c
|
|
|
|
CFLAGS+= -mno-fp-regs
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}
|
|
|
|
CFLAGS+= -I${LIBSTANDDIR}
|
|
|
|
CFLAGS+= -I${.CURDIR}/..
|
1998-10-20 02:43:28 +00:00
|
|
|
CFLAGS+= -DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS} -DMINIMAL
|
1999-09-03 19:42:18 +00:00
|
|
|
CFLAGS+= -DBOOT1
|
1998-08-21 03:17:42 +00:00
|
|
|
NOMAN=1
|
|
|
|
STRIP=
|
1999-01-02 23:22:12 +00:00
|
|
|
BINDIR?= /boot
|
1998-08-21 03:17:42 +00:00
|
|
|
|
|
|
|
BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
|
|
|
|
|
|
|
|
CLEANFILES+= ${PROG}.sym ${PROG}.nosym ${PROG}.list
|
|
|
|
|
|
|
|
all: ${PROG}
|
|
|
|
|
|
|
|
${PROG}.nosym: ${PROG}.sym
|
|
|
|
cp ${PROG}.sym ${PROG}.nosym
|
|
|
|
strip ${PROG}.nosym
|
|
|
|
|
|
|
|
${PROG}: ${PROG}.nosym
|
|
|
|
objcopy -O binary ${PROG}.nosym ${PROG}
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
start.o: ${.CURDIR}/../libalpha/start.S
|
1998-10-31 17:12:32 +00:00
|
|
|
${CC} -c ${CFLAGS} $<
|
1998-08-21 03:17:42 +00:00
|
|
|
|
|
|
|
${PROG}.sym: ${OBJS} ${LIBKERN}
|
|
|
|
${LD} -M -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym ${OBJS} \
|
1999-12-15 18:16:56 +00:00
|
|
|
-L${DESTDIR}${LIBDIR} ${LIBSTAND} ${LIBALPHA} ${LIBSTAND} \
|
|
|
|
> ${.OBJDIR}/${PROG}.list
|
1998-08-21 03:17:42 +00:00
|
|
|
size ${PROG}.sym
|