1#	$NetBSD: src/sys/arch/mvme68k/stand/sboot/Makefile,v 1.13 2002-04-09 19:37:22 scw Exp $
2
3#
4# sboot would like a newer GNU ld because it can generate S-Records.
5# Until then, we convert.
6#
7
8COMPILE.s= $(CC) -x assembler-with-cpp \
9	$(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o
10
11RELOC=		0x4000
12SRCS=		start.s clock.c console.c etherfun.c le_poll.c \
13		oc_cksum.s sboot.c
14SRTOBJ=
15PROG=		sboot
16LIBS=		${LIBSA}
17DPADD=		${LIBS}
18CLEANFILES+=	sboot.srec
19
20PROGDEPENDS=	${OBJS} ${LIBS}
21PROGLINKOBJS=	${OBJS} ${LIBS}
22
23sboot.srec:	${PROG}
24	${OBJCOPY} -O srec ${.OBJDIR}/sboot ${.TARGET}
25
26.include "../Makefile.booters"
27
28all realall:	sboot.srec
29
30install:	sboot.srec
31	${INSTALL_FILE} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
32		${.OBJDIR}/sboot.srec ${DESTDIR}${MDEC_DIR}/sboot
33
34.include <bsd.prog.mk>
35