1 # $NetBSD: Makefile,v 1.15 2014/11/21 20:13:18 christos 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= $(CC) -x assembler-with-cpp \ 9 $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o 10 11 RELOC= 0x4000 12 SRCS= start.s clock.c console.c etherfun.c le_poll.c \ 13 oc_cksum.s sboot.c 14 SRTOBJ= 15 PROG= sboot 16 LIBS= ${LIBSA} ${LIBKERN} 17 DPADD= ${LIBS} 18 CLEANFILES+= sboot.srec 19 20 PROGDEPENDS= ${OBJS} ${LIBS} 21 PROGLINKOBJS= ${OBJS} ${LIBS} 22 23 sboot.srec: ${PROG} 24 ${OBJCOPY} -O srec ${.OBJDIR}/sboot ${.TARGET} 25 26 .include "../Makefile.booters" 27 28 all realall: sboot.srec 29 30 install: sboot.srec 31 ${INSTALL_FILE} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 32 ${.OBJDIR}/sboot.srec ${DESTDIR}${MDEC_DIR}/sboot 33 34 .include <bsd.prog.mk> 35