1 1.5.8.2 bouyer # $NetBSD: Makefile,v 1.5.8.3 2001/01/05 17:34:50 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.5.8.2 bouyer COMPILE.s= $(CC) -x assembler-with-cpp -traditional-cpp \ 9 1.5.8.2 bouyer $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o 10 1.1 chuck 11 1.5.8.2 bouyer RELOC= 0x4000 12 1.5.8.2 bouyer SRCS= start.s clock.c console.c etherfun.c le_poll.c oc_cksum.s sboot.c 13 1.5.8.2 bouyer SRTOBJ= 14 1.5.8.2 bouyer PROG= sboot 15 1.5.8.2 bouyer PROGNAME= sboot.srec 16 1.5.8.2 bouyer LIBS= ${LIBSA} 17 1.5.8.2 bouyer DPADD= ${LIBS} 18 1.5.8.2 bouyer CLEANFILES+= srec sboot.srec 19 1.5.8.2 bouyer 20 1.5.8.2 bouyer PROGDEPENDS= ${OBJS} ${LIBS} 21 1.5.8.2 bouyer PROGLINKOBJS= ${OBJS} ${LIBS} 22 1.5.8.2 bouyer 23 1.5.8.2 bouyer sboot.srec: ${PROG} srec 24 1.5.8.2 bouyer ${OBJCOPY} -O binary ${.OBJDIR}/sboot 25 1.5.8.2 bouyer ${.OBJDIR}/srec 4 0x4000 ${.OBJDIR}/sboot \ 26 1.5.8.2 bouyer > ${.TARGET} < ${.OBJDIR}/sboot 27 1.5.8.1 bouyer 28 1.5.8.1 bouyer srec: srec.c 29 1.5.8.2 bouyer ${HOST_CC} ${COPTS} ${.IMPSRC} -o ${.TARGET} 30 1.2 thorpej 31 1.5.8.1 bouyer .include "../Makefile.booters" 32 1.5.8.2 bouyer 33 1.5.8.2 bouyer all realall: sboot.srec 34 1.5.8.2 bouyer 35 1.5.8.2 bouyer install: sboot.srec 36 1.5.8.2 bouyer ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${STRIPFLAG} ${INSTPRIV} \ 37 1.5.8.2 bouyer -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${.OBJDIR}/sboot.srec \ 38 1.5.8.3 bouyer ${DESTDIR}${MDEC_DIR}/sboot 39 1.1 chuck 40 1.1 chuck .include <bsd.prog.mk> 41