1999-03-31 11:43:39 +04:00
|
|
|
# $NetBSD: Makefile,v 1.12 1999/03/31 07:43:39 simonb Exp $
|
1999-01-21 15:33:39 +03:00
|
|
|
# @(#)Makefile 8.3 (Berkeley) 2/16/94
|
|
|
|
|
1999-01-21 17:16:52 +03:00
|
|
|
S= ${.CURDIR}/../../../..
|
1999-03-25 15:24:56 +03:00
|
|
|
|
|
|
|
PROG= bootxx
|
1999-03-27 10:17:50 +03:00
|
|
|
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:
|
1999-03-31 11:23:27 +04:00
|
|
|
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
|
1999-03-27 10:17:50 +03:00
|
|
|
CLEANFILES+=${PROG}.aout ${PROG}.map mkboot ${ALL}
|
1999-03-25 15:24:56 +03:00
|
|
|
.PATH: ${.CURDIR}/../lib $S/lib/libsa $S/lib/libkern
|
|
|
|
|
1999-03-31 11:43:39 +04:00
|
|
|
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
|
1999-01-22 17:05:05 +03:00
|
|
|
|
1999-03-27 10:17:50 +03:00
|
|
|
ALL= rzboot bootrz
|
1999-01-21 15:33:39 +03:00
|
|
|
|
1999-01-21 17:16:52 +03:00
|
|
|
all: ${ALL}
|
1999-01-21 15:33:39 +03:00
|
|
|
|
1999-03-27 10:17:50 +03:00
|
|
|
${PROG}.aout: ${PROG}
|
|
|
|
elf2aout ${PROG} ${PROG}.aout
|
1999-01-21 15:33:39 +03:00
|
|
|
|
1999-01-21 17:16:52 +03:00
|
|
|
mkboot: ${.CURDIR}/mkboot.c
|
1999-03-25 15:24:56 +03:00
|
|
|
${CC} ${CPPFLAGS} -I${DESTDIR}/usr/include -o mkboot ${.IMPSRC}
|
1999-01-21 15:33:39 +03:00
|
|
|
|
1999-03-27 10:17:50 +03:00
|
|
|
rzboot bootrz: ${PROG}.aout mkboot
|
|
|
|
./mkboot ${PROG}.aout rzboot bootrz
|
1999-01-21 15:33:39 +03:00
|
|
|
|
1999-01-21 17:16:52 +03:00
|
|
|
proginstall:: bootrz rzboot
|
1999-02-22 13:53:13 +03:00
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
|
|
${.ALLSRC} ${DESTDIR}${BINDIR}
|
1999-01-21 15:33:39 +03:00
|
|
|
|
1999-03-27 10:17:50 +03:00
|
|
|
# .include <bsd.prog.mk>
|
|
|
|
.include "../Makefile.booters"
|