2000-07-24 22:39:01 +04:00
|
|
|
# $NetBSD: Makefile,v 1.8 2000/07/24 18:40:00 jdolecek 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
|
|
|
#
|
|
|
|
|
|
|
|
COMPILE.s= $(AS) $(ASFLAGS) -o $*.o
|
1996-09-07 23:23:03 +04:00
|
|
|
LDFLAGS=-x -N -Ttext 0x4000 -e start
|
2000-07-24 22:39:01 +04:00
|
|
|
SRCS= start.s clock.c console.c etherfun.c le_poll.c oc_cksum.s sboot.c
|
|
|
|
CLEANFILES+= srec sboot
|
|
|
|
# OPTS= -Os
|
1995-07-26 03:11:53 +04:00
|
|
|
|
2000-07-24 22:39:01 +04:00
|
|
|
PROG= sboot.srec
|
|
|
|
PROGNAME= sboot
|
|
|
|
DPADD= srec sboot
|
1995-07-26 03:11:53 +04:00
|
|
|
|
2000-07-24 22:39:01 +04:00
|
|
|
${PROG}:
|
|
|
|
dd ibs=32 skip=1 if=${.OBJDIR}/sboot | ${.OBJDIR}/srec 4 0x4000 ${.OBJDIR}/sboot > ${.TARGET}
|
1996-09-07 23:23:03 +04:00
|
|
|
|
|
|
|
sboot: ${OBJS}
|
2000-07-24 22:39:01 +04:00
|
|
|
${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LIBSA}
|
1995-07-26 03:11:53 +04:00
|
|
|
|
2000-07-24 22:39:01 +04:00
|
|
|
srec: srec.c
|
|
|
|
${CC} ${COPTS} ${.IMPSRC} -o ${.TARGET}
|
1996-09-07 23:23:03 +04:00
|
|
|
|
2000-07-24 22:39:01 +04:00
|
|
|
all: ${OBJS} ${PROG}
|
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
|
|
|
|
1996-09-07 23:23:03 +04:00
|
|
|
.include <bsd.prog.mk>
|