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