2000-12-19 00:27:01 +03:00
|
|
|
# $NetBSD: Makefile,v 1.11 2000/12/18 21:27:01 scw Exp $
|
1995-07-26 03:11:53 +04:00
|
|
|
|
|
|
|
#
|
1996-09-07 23:23:03 +04:00
|
|
|
# sboot would like a newer GNU ld because it can generate S-Records.
|
|
|
|
# Until then, we convert.
|
1995-07-26 03:11:53 +04:00
|
|
|
#
|
|
|
|
|
2000-12-01 01:26:26 +03:00
|
|
|
COMPILE.s= $(CC) -x assembler-with-cpp -traditional-cpp \
|
2000-12-05 00:25:57 +03:00
|
|
|
$(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o
|
1995-07-26 03:11:53 +04:00
|
|
|
|
2000-12-05 00:25:57 +03:00
|
|
|
RELOC= 0x4000
|
|
|
|
SRCS= start.s clock.c console.c etherfun.c le_poll.c oc_cksum.s sboot.c
|
|
|
|
SRTOBJ=
|
|
|
|
PROG= sboot
|
|
|
|
PROGNAME= sboot.srec
|
|
|
|
LIBS= ${LIBSA}
|
|
|
|
DPADD= ${LIBS}
|
|
|
|
CLEANFILES+= srec sboot.srec
|
1995-07-26 03:11:53 +04:00
|
|
|
|
2000-12-05 00:25:57 +03:00
|
|
|
PROGDEPENDS= ${OBJS} ${LIBS}
|
|
|
|
PROGLINKOBJS= ${OBJS} ${LIBS}
|
1996-09-07 23:23:03 +04:00
|
|
|
|
2000-12-05 00:25:57 +03:00
|
|
|
sboot.srec: ${PROG} srec
|
2000-12-01 01:26:26 +03:00
|
|
|
${OBJCOPY} -O binary ${.OBJDIR}/sboot
|
2000-12-05 00:25:57 +03:00
|
|
|
${.OBJDIR}/srec 4 0x4000 ${.OBJDIR}/sboot \
|
|
|
|
> ${.TARGET} < ${.OBJDIR}/sboot
|
1995-07-26 03:11:53 +04:00
|
|
|
|
2000-07-24 22:39:01 +04:00
|
|
|
srec: srec.c
|
2000-12-01 01:26:26 +03:00
|
|
|
${HOST_CC} ${COPTS} ${.IMPSRC} -o ${.TARGET}
|
1996-09-07 23:23:03 +04:00
|
|
|
|
2000-07-24 22:39:01 +04:00
|
|
|
.include "../Makefile.booters"
|
2000-06-25 20:39:05 +04:00
|
|
|
|
2000-12-05 00:25:57 +03:00
|
|
|
all realall: sboot.srec
|
|
|
|
|
|
|
|
install: sboot.srec
|
|
|
|
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${STRIPFLAG} ${INSTPRIV} \
|
|
|
|
-o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${.OBJDIR}/sboot.srec \
|
2000-12-19 00:27:01 +03:00
|
|
|
${DESTDIR}${MDEC_DIR}/sboot
|
2000-12-05 00:25:57 +03:00
|
|
|
|
1996-09-07 23:23:03 +04:00
|
|
|
.include <bsd.prog.mk>
|