NetBSD/sys/arch/news68k/stand/boot/Makefile

55 lines
1018 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.10 2001/03/04 16:15:50 tsutsui Exp $
.include <bsd.own.mk>
1999-12-09 17:53:00 +03:00
COMMON= ${.CURDIR}/../common
2001-01-07 11:38:01 +03:00
COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR}
1999-12-09 17:53:00 +03:00
.PATH: ${COMMON}
PROG= boot
SRCS= locore.S boot.c devopen.c
SRCS+= romcalls.S putchar.c
MKMAN= no
STRIPFLAG=
BINMODE= 444
SIZE?= size
2000-02-01 08:25:24 +03:00
STRIP?= strip
OBJCOPY?= objcopy
1999-12-09 17:53:00 +03:00
S= ${.CURDIR}/../../../..
LDFLAGS= -x -N -Ttext 3e0000 -e start
1999-12-09 17:53:00 +03:00
CFLAGS= -Os -Wall
2000-04-13 18:19:57 +04:00
CPPFLAGS+= -D_STANDALONE # -DBOOT_DEBUG
1999-12-09 17:53:00 +03:00
CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S}
AFLAGS= -D_LOCORE
CLEANFILES+= ${PROG}.tmp machine m68k
1999-12-09 17:53:00 +03:00
L= ${COMMONOBJ}/lib
LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a
.BEGIN: machine m68k
.NOPATH: machine m68k
realdepend realall: machine m68k
1999-12-09 17:53:00 +03:00
machine::
1999-12-09 17:53:00 +03:00
-rm -f $@
ln -s ${S}/arch/${MACHINE}/include $@
m68k::
1999-12-09 17:53:00 +03:00
-rm -f $@
ln -s ${S}/arch/m68k/include $@
${PROG}: ${OBJS} machine m68k
1999-12-09 17:53:00 +03:00
${LD} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBS}
-${SIZE} ${PROG}
2000-02-01 08:25:24 +03:00
${STRIP} ${PROG}
${OBJCOPY} -O binary ${PROG} ${PROG}.tmp
1999-12-09 17:53:00 +03:00
mv ${PROG}.tmp ${PROG}
.include <bsd.prog.mk>