summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/netboot/Makefile
blob: 9d9d9cfc8505f07713b1962bf96e1e3c172c004b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#	$Id: Makefile,v 1.2 1997/04/27 20:56:32 millert Exp $

RELOC=0x3F0000

S=	${.CURDIR}/../../../..
DEFS= -DSTANDALONE -DSUN_BOOTPARAMS
INCPATH=-I${.CURDIR} -I${.CURDIR}/../libsa -I${S} -I${S}/lib/libsa
CFLAGS=	-O2 ${INCPATH} ${DEFS} ${COPTS}

.include "${S}/arch/${MACHINE}/stand/libsa/Makefile.inc"
.PATH: ${S}/arch/${MACHINE}/stand/libsa
SRTOBJ= SRT0.o SRT1.o

SRCS=   boot.c conf.c version.c dev_net.c
SRCS+=	if_ie.c if_le.c
OBJS=  ${SRTOBJ} ${SRCS:S/.c/.o/g}

all:	netboot.bin

netboot: ${OBJS} ${LIBSA}
	${LD} -s -N -T ${RELOC} -e start -o $@ ${OBJS} ${LIBSA}
	@size $@

netboot.bin: netboot
	dd ibs=32 skip=1 if=netboot of=$@

install:
	${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
	  netboot.bin ${DESTDIR}${MDEC_DIR}/netboot

.include <bsd.prog.mk>