ab11c169b5
now in bsd.own.mk).
35 lines
1012 B
Makefile
35 lines
1012 B
Makefile
# $NetBSD: Makefile,v 1.24 2001/09/22 03:34:18 tv Exp $
|
|
|
|
PROG = bootxx.old
|
|
|
|
SRCS = start.S bootxx.c prom.c prom_disp.S putstr.c booted_dev.c
|
|
|
|
BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
|
|
PRIMARY_MAX_LOAD!= expr 8192 - 512
|
|
|
|
CPPFLAGS += ${PRIMARY_CPPFLAGS}
|
|
|
|
CLEANFILES+= ${PROG}.sym ${PROG}.trunc
|
|
|
|
${PROG}: ${PROG}.sym
|
|
@echo creating ${PROG} from ${PROG}.sym...
|
|
@${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}.trunc
|
|
@chmod 644 ${PROG}.trunc
|
|
@dd if=${PROG}.trunc of=${PROG} obs=`expr 15 \* 512` conv=osync
|
|
@ls -l ${PROG}
|
|
@${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${PRIMARY_MAX_LOAD} \
|
|
${PRIMARY_MAX_TOTAL} || (rm -f ${PROG} ; false)
|
|
|
|
SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=no
|
|
.include "../Makefile.bootprogs"
|
|
|
|
NETBSD_VERS!=sh ${.CURDIR}/../../../../conf/osrelease.sh
|
|
CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' \
|
|
-DBOOTXX_RAID1_SUPPORT
|
|
|
|
${PROG}.sym: ${OBJS} ${LIBKERN}
|
|
${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym ${OBJS} \
|
|
${LIBKERN}
|
|
@chmod 644 ${PROG}.sym
|
|
@${SIZE} ${PROG}.sym
|