Home | History | Annotate | Line # | Download | only in sboot
Makefile revision 1.8
      1 #	$NetBSD: Makefile,v 1.8 2000/07/24 18:40:00 jdolecek 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 SRCS=	start.s clock.c console.c etherfun.c le_poll.c oc_cksum.s sboot.c
     11 CLEANFILES+= srec sboot
     12 # OPTS= -Os
     13 
     14 PROG=		sboot.srec
     15 PROGNAME=	sboot
     16 DPADD=	srec sboot
     17 
     18 ${PROG}:
     19 	dd ibs=32 skip=1 if=${.OBJDIR}/sboot | ${.OBJDIR}/srec 4 0x4000 ${.OBJDIR}/sboot > ${.TARGET}
     20 
     21 sboot: ${OBJS}
     22 	${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LIBSA}
     23 
     24 srec: srec.c
     25 	${CC} ${COPTS} ${.IMPSRC} -o ${.TARGET}
     26 
     27 all: ${OBJS} ${PROG}
     28 
     29 .include "../Makefile.booters"
     30 
     31 .include <bsd.prog.mk>
     32