Makefile revision 1.3
1#	$NetBSD: Makefile,v 1.3 1996/10/18 06:06:23 thorpej 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= $(AS) $(ASFLAGS) -o $*.o
9LDFLAGS=-x -N -Ttext 0x4000 -e start
10NOMAN=
11SRCS=	start.s clock.c console.c etherfun.c le_poll.c libc_sa.c \
12		oc_cksum.s sboot.c
13OBJS=	${SRCS:N*.h:R:S/$/.o/g}
14
15BOOTS=	sboot.srec
16
17all: ${BOOTS}
18
19sboot.srec: sboot srec
20	dd ibs=32 skip=1 if=sboot | ${.OBJDIR}/srec 4 0x4000 sboot > ${.TARGET}
21
22sboot: ${OBJS}
23	${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS}
24
25srec: ${.CURDIR}/srec.c
26	${CC} ${CFLAGS} ${.CURDIR}/srec.c -o ${.TARGET}
27
28install:
29	${INSTALL} -c -m 444 -g bin -o bin sboot.srec \
30	    ${DESTDIR}${MDEC_DIR}/sboot
31
32.include <bsd.prog.mk>
33