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