NetBSD/sys/arch/alpha/stand/bootxx/Makefile

32 lines
819 B
Makefile

# $NetBSD: Makefile,v 1.16 1998/10/15 00:52:38 ross Exp $
PROG = bootxx
SRCS = start.S bootxx.c prom.c prom_disp.S puts.c
BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
HEADERSIZE_PROG = headersize
CPPFLAGS += ${PRIMARY_CPPFLAGS}
CLEANFILES+= ${PROG}.sym ${PROG}.nosym ${HEADERSIZE_PROG}
${PROG}.nosym: ${PROG}.sym
cp ${PROG}.sym ${PROG}.nosym
${STRIP} ${PROG}.nosym
${PROG}: ${PROG}.nosym ${HEADERSIZE_PROG}
dd if=${PROG}.nosym of=${PROG} \
ibs=`./${HEADERSIZE_PROG} ${BOOT_RELOC} ${PROG}.nosym` skip=1 \
obs=`expr 15 \* 512` conv=osync
.include "../Makefile.bootprogs"
NETBSD_VERS!=sh ${.CURDIR}/../../../../conf/osrelease.sh
CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"'
${PROG}.sym: ${OBJS} ${LIBKERN}
${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym ${OBJS} \
${LIBKERN}
${SIZE} ${PROG}.sym