1 # $NetBSD: Makefile,v 1.2 1996/05/17 21:08:25 chuck Exp $ 2 3 RELOC=0x3F0000 4 5 S= ${.CURDIR}/../../../.. 6 DEFS= -DSUN_BOOTPARAMS 7 INCPATH=-I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \ 8 -I${S} -I${S}/lib/libsa 9 CFLAGS= -O2 ${INCPATH} ${DEFS} ${COPTS} 10 CLEANFILES+=netboot netboot.bin 11 12 .include "${S}/arch/${MACHINE}/stand/bugcrt/Makefile.inc" 13 .include "${S}/arch/${MACHINE}/stand/libbug/Makefile.inc" 14 .include "${S}/arch/${MACHINE}/stand/libsa/Makefile.inc" 15 16 SRCS= boot.c conf.c version.c devopen.c dev_net.c 17 SRCS+= if_ie.c if_le.c 18 OBJS= ${SRCS:S/.c/.o/g} 19 20 all: netboot.bin 21 22 netboot: ${OBJS} ${LIBSA} ${BUGCRT} ${LIBBUG} 23 ${LD} -s -N -T ${RELOC} -o $@ \ 24 ${SRTOBJ} ${BUGCRT} ${OBJS} ${LIBSA} ${LIBBUG} 25 @size $@ 26 27 netboot.bin: netboot 28 dd ibs=32 skip=1 if=netboot of=$@ 29 30 install: 31 install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 32 netboot.bin ${DESTDIR}${MDEC_DIR}/netboot 33 34 .include <bsd.prog.mk> 35