1997-09-06 18:06:53 +04:00
|
|
|
# $NetBSD: Makefile,v 1.13 1997/09/06 14:06:53 drochner Exp $
|
1996-09-19 00:03:04 +04:00
|
|
|
|
1997-01-16 05:59:08 +03:00
|
|
|
S= ${.CURDIR}/../../../..
|
|
|
|
|
1997-01-24 04:52:35 +03:00
|
|
|
.PATH: ${.CURDIR}/../common
|
1996-09-19 00:03:04 +04:00
|
|
|
|
1997-01-24 01:31:32 +03:00
|
|
|
PROG = netboot
|
|
|
|
|
|
|
|
SRCS = start.S boot.c prom.c prom_disp.S OSFpal.c prom_swpal.S
|
|
|
|
SRCS+= rpcc.S
|
|
|
|
SRCS+= dev_net.c conf.c devopen.c
|
|
|
|
SRCS+= if_prom.c loadfile.c getsecs.c
|
|
|
|
NOMAN=
|
1997-04-17 11:27:46 +04:00
|
|
|
STRIPFLAG=
|
1997-01-24 01:31:32 +03:00
|
|
|
BINMODE= 444
|
|
|
|
|
1996-09-19 00:03:04 +04:00
|
|
|
BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
|
1997-01-24 01:31:32 +03:00
|
|
|
HEADERSIZE_PROG = headersize
|
1996-09-19 00:03:04 +04:00
|
|
|
|
1997-01-24 01:31:32 +03:00
|
|
|
CLEANFILES+= vers.c vers.o ${PROG}.sym ${PROG}.nosym ${HEADERSIZE_PROG}
|
|
|
|
|
|
|
|
AFLAGS += -DASSEMBLER
|
|
|
|
CPPFLAGS += -I${.CURDIR}/../.. -I${.CURDIR}/../../../.. \
|
|
|
|
-DALPHA_BOOT_ECOFF -DALPHA_BOOT_ELF \
|
1997-09-06 18:06:53 +04:00
|
|
|
-DPRIMARY_BOOTBLOCK -D_STANDALONE \
|
|
|
|
-DSUPPORT_DHCP
|
|
|
|
CFLAGS = -Wall -Werror -mno-fp-regs -g
|
1996-09-19 00:03:04 +04:00
|
|
|
|
1997-01-24 01:31:32 +03:00
|
|
|
${PROG}.nosym: ${PROG}.sym
|
|
|
|
cp ${PROG}.sym ${PROG}.nosym
|
|
|
|
strip ${PROG}.nosym
|
1996-09-19 00:03:04 +04:00
|
|
|
|
1997-01-24 01:31:32 +03:00
|
|
|
${PROG}: ${PROG}.nosym ${HEADERSIZE_PROG}
|
|
|
|
dd if=${PROG}.nosym of=${PROG} \
|
|
|
|
bs=`./${HEADERSIZE_PROG} ${BOOT_RELOC} ${PROG}.nosym` skip=1
|
1996-09-19 00:03:04 +04:00
|
|
|
|
1997-01-24 01:31:32 +03:00
|
|
|
.include <bsd.prog.mk>
|
1996-09-19 00:03:04 +04:00
|
|
|
|
1997-01-16 05:59:08 +03:00
|
|
|
### find out what to use for libkern
|
|
|
|
KERN_AS= library
|
|
|
|
.include "${S}/lib/libkern/Makefile.inc"
|
|
|
|
LIBKERN= ${KERNLIB}
|
|
|
|
|
|
|
|
### find out what to use for libz
|
|
|
|
Z_AS= library
|
|
|
|
.include "${S}/lib/libz/Makefile.inc"
|
|
|
|
LIBZ= ${ZLIB}
|
|
|
|
|
|
|
|
### find out what to use for libsa
|
|
|
|
SA_AS= library
|
1997-01-24 02:10:34 +03:00
|
|
|
SAMISCMAKEFLAGS= SA_USE_CREAD=yes
|
1997-01-16 05:59:08 +03:00
|
|
|
.include "${S}/lib/libsa/Makefile.inc"
|
|
|
|
LIBSA= ${SALIB}
|
|
|
|
|
1997-01-24 01:31:32 +03:00
|
|
|
${PROG}.sym: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
|
1996-09-19 00:03:04 +04:00
|
|
|
sh ${.CURDIR}/newvers.sh ${.CURDIR}/version
|
|
|
|
${COMPILE.c} vers.c
|
1997-01-24 01:31:32 +03:00
|
|
|
${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \
|
|
|
|
${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
|
|
|
|
size ${PROG}.sym
|