freebsd-dev/sys/boot/alpha/boot1/Makefile
Doug Rabson e24168e6c3 * Add old UFS compatibility code to alpha/boot1.
* Fix a raft of warnings, printf and otherwise.
* Allocate the correct amount in mod_searchmodule to prevent an overflow.
* Fix the makefiles so they work outside my home directory (oops).
1998-09-26 10:51:38 +00:00

45 lines
982 B
Makefile

# $NetBSD: Makefile,v 1.15 1998/03/28 00:21:35 thorpej Exp $
.include <../Makefile.inc>
PROG = boot1
.PATH: ${.CURDIR}/../../common
.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}/..
CFLAGS+= -DSECONDARY_LOAD_ADDRESS=0x${SECONDARY_LOAD_ADDRESS} -DMINIMAL
NOMAN=1
STRIP=
BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
CLEANFILES+= ${PROG}.sym ${PROG}.nosym ${PROG}.list
all: ${PROG}
afterinstall:
ln -sf boot1 /usr/mdec/daboot
${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
${CC} -c -DPRIMARY_BOOTBLOCK $<
${PROG}.sym: ${OBJS} ${LIBKERN}
${LD} -M -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym ${OBJS} \
${LIBSTAND} ${LIBALPHA} ${LIBSTAND} > ${.OBJDIR}/${PROG}.list
size ${PROG}.sym