1 # $NetBSD: Makefile,v 1.12 2002/02/09 09:36:01 lukem Exp $
4 # sboot would like a newer GNU ld because it can generate S-Records.
5 # Until then, we convert.
8 COMPILE.s
= $(CC
) -x assembler-with-cpp
-traditional-cpp \
9 $(ASFLAGS
) $(CPPFLAGS
) $(INCPATH
) -c
-o
$*.o
12 SRCS
= start.s clock.c console.c etherfun.c le_poll.c \
18 CLEANFILES
+= sboot.srec
20 PROGDEPENDS
= ${OBJS} ${LIBS}
21 PROGLINKOBJS
= ${OBJS} ${LIBS}
24 ${OBJCOPY} -O srec
${.OBJDIR
}/sboot
${.TARGET
}
26 .
include "../Makefile.booters"
28 all realall
: sboot.srec
31 ${INSTALL_FILE} ${STRIPFLAG} -o
${BINOWN} -g
${BINGRP} -m
${BINMODE} \
32 ${.OBJDIR
}/sboot.srec
${DESTDIR}${MDEC_DIR}/sboot
34 .
include <bsd.prog.mk
>