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