NetBSD/sys/arch/pmax/stand/scsiboot/Makefile

44 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.12 1999/03/31 07:43:39 simonb Exp $
# @(#)Makefile 8.3 (Berkeley) 2/16/94
S= ${.CURDIR}/../../../..
1999-03-25 15:24:56 +03:00
PROG= bootxx
RELOC= 80700000 # Room for an almost 7MB kernel
VERS_O= # no version info in first stage
MKMAN= no
1999-03-25 15:24:56 +03:00
SRCS= start.S alloc.c bootxx.c clear_cache.S memcpy.c memset.c printf.S \
1999-03-31 08:30:11 +04:00
strcmp.S strcpy.S strlen.S
1999-03-25 15:24:56 +03:00
# from sys/lib/libsa:
SRCS+= disklabel.c dkcksum.c errno.c lseek.c open.c read.c ufs.c
1999-03-25 15:24:56 +03:00
# from sys/lib/libkern:
SRCS+= bcmp.c
CLEANFILES+=${PROG}.aout ${PROG}.map mkboot ${ALL}
1999-03-25 15:24:56 +03:00
.PATH: ${.CURDIR}/../lib $S/lib/libsa $S/lib/libkern
BOOTDEFADD+=-DBOOTXX -DRELOC=0x${RELOC} \
-DLIBSA_NO_FS_CLOSE -DLIBSA_NO_FS_SYMLINK \
1999-03-31 08:30:11 +04:00
-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET -DLIBSA_NO_TWIDDLE
ALL= rzboot bootrz
all: ${ALL}
${PROG}.aout: ${PROG}
elf2aout ${PROG} ${PROG}.aout
mkboot: ${.CURDIR}/mkboot.c
1999-03-25 15:24:56 +03:00
${CC} ${CPPFLAGS} -I${DESTDIR}/usr/include -o mkboot ${.IMPSRC}
rzboot bootrz: ${PROG}.aout mkboot
./mkboot ${PROG}.aout rzboot bootrz
proginstall:: bootrz rzboot
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.ALLSRC} ${DESTDIR}${BINDIR}
# .include <bsd.prog.mk>
.include "../Makefile.booters"