Home | History | Annotate | Line # | Download | only in sboot
Makefile revision 1.5.8.1
      1  1.5.8.1   bouyer #	$NetBSD: Makefile,v 1.5.8.1 2000/11/20 20:15:31 bouyer Exp $
      2      1.1    chuck 
      3      1.1    chuck #
      4      1.2  thorpej # sboot would like a newer GNU ld because it can generate S-Records.
      5      1.2  thorpej # Until then, we convert.
      6      1.1    chuck #
      7      1.1    chuck 
      8      1.1    chuck COMPILE.s= $(AS) $(ASFLAGS) -o $*.o
      9      1.2  thorpej LDFLAGS=-x -N -Ttext 0x4000 -e start
     10  1.5.8.1   bouyer SRCS=	start.s clock.c console.c etherfun.c le_poll.c oc_cksum.s sboot.c
     11  1.5.8.1   bouyer CLEANFILES+= srec sboot
     12  1.5.8.1   bouyer # OPTS= -Os
     13  1.5.8.1   bouyer 
     14  1.5.8.1   bouyer PROG=		sboot.srec
     15  1.5.8.1   bouyer PROGNAME=	sboot
     16  1.5.8.1   bouyer DPADD=	srec sboot
     17      1.1    chuck 
     18  1.5.8.1   bouyer ${PROG}:
     19  1.5.8.1   bouyer 	dd ibs=32 skip=1 if=${.OBJDIR}/sboot | ${.OBJDIR}/srec 4 0x4000 ${.OBJDIR}/sboot > ${.TARGET}
     20      1.2  thorpej 
     21      1.2  thorpej sboot: ${OBJS}
     22  1.5.8.1   bouyer 	${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LIBSA}
     23  1.5.8.1   bouyer 
     24  1.5.8.1   bouyer srec: srec.c
     25  1.5.8.1   bouyer 	${CC} ${COPTS} ${.IMPSRC} -o ${.TARGET}
     26      1.2  thorpej 
     27  1.5.8.1   bouyer all: ${OBJS} ${PROG}
     28      1.2  thorpej 
     29  1.5.8.1   bouyer .include "../Makefile.booters"
     30      1.1    chuck 
     31      1.1    chuck .include <bsd.prog.mk>
     32