2000-07-09 17:47:33 +04:00
|
|
|
# $NetBSD: Makefile,v 1.6 2000/07/09 13:47:34 jdolecek Exp $
|
1995-07-26 03:11:53 +04:00
|
|
|
|
1996-05-18 01:08:25 +04:00
|
|
|
RELOC=0x3F0000
|
1995-07-26 03:11:53 +04:00
|
|
|
|
1996-05-18 01:08:25 +04:00
|
|
|
S= ${.CURDIR}/../../../..
|
|
|
|
DEFS= -DSUN_BOOTPARAMS
|
|
|
|
INCPATH=-I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \
|
|
|
|
-I${S} -I${S}/lib/libsa
|
|
|
|
CFLAGS= -O2 ${INCPATH} ${DEFS} ${COPTS}
|
2000-07-09 17:47:33 +04:00
|
|
|
CLEANFILES+=netboot.tmp
|
1995-07-26 03:11:53 +04:00
|
|
|
|
1998-06-13 03:11:45 +04:00
|
|
|
.include "${S}/arch/mvme68k/stand/bugcrt/Makefile.inc"
|
|
|
|
.include "${S}/arch/mvme68k/stand/libbug/Makefile.inc"
|
|
|
|
.include "${S}/arch/mvme68k/stand/libsa/Makefile.inc"
|
1995-07-26 03:11:53 +04:00
|
|
|
|
1996-05-18 01:08:25 +04:00
|
|
|
SRCS= boot.c conf.c version.c devopen.c dev_net.c
|
|
|
|
SRCS+= if_ie.c if_le.c
|
2000-07-09 17:47:33 +04:00
|
|
|
PROG= netboot.bin
|
|
|
|
MKMAN=no
|
1996-05-18 01:08:25 +04:00
|
|
|
|
2000-07-09 17:47:33 +04:00
|
|
|
${PROG}: ${OBJS} ${LIBSA} ${BUGCRT} ${LIBBUG}
|
|
|
|
${LD} -s -N -T ${RELOC} -o netboot.tmp \
|
1996-05-18 01:08:25 +04:00
|
|
|
${SRTOBJ} ${BUGCRT} ${OBJS} ${LIBSA} ${LIBBUG}
|
2000-07-09 17:47:33 +04:00
|
|
|
@size netboot.tmp
|
|
|
|
dd ibs=32 skip=1 if=netboot.tmp of=$@
|
1996-05-18 01:08:25 +04:00
|
|
|
|
|
|
|
install:
|
1996-10-18 09:55:26 +04:00
|
|
|
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
1996-05-18 01:08:25 +04:00
|
|
|
netboot.bin ${DESTDIR}${MDEC_DIR}/netboot
|
1995-07-26 03:11:53 +04:00
|
|
|
|
2000-07-09 17:47:33 +04:00
|
|
|
#afterdepend: .depend
|
|
|
|
# @(TMP=/tmp/_depend$$$$; \
|
|
|
|
# sed -e 's/^\([^\.]*\).o[ ]*:/\1.o g\1.o s\1.o:/' \
|
|
|
|
# < .depend > $$TMP; \
|
|
|
|
# mv $$TMP .depend)
|
|
|
|
#
|
1996-05-18 01:08:25 +04:00
|
|
|
.include <bsd.prog.mk>
|