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

54 lines
992 B
Makefile
Raw Normal View History

2000-02-01 08:25:24 +03:00
# $NetBSD: Makefile,v 1.4 2000/02/01 05:25:41 tsutsui Exp $
1999-12-09 17:53:00 +03:00
COMMON= ${.CURDIR}/../common
.ifnmake(print-objdir)
COMMONOBJ!= cd ${COMMON}; ${MAKE} print-objdir
.endif
.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
1999-12-09 17:53:00 +03:00
S= ${.CURDIR}/../../../..
LDFLAGS= -x -N -Ttext 3e0000
CFLAGS= -Os -Wall
CPPFLAGS+= -D_STANDALONE -DBOOT_DEBUG
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}
1999-12-09 17:53:00 +03:00
tail -c +33 ${PROG} > ${PROG}.tmp
mv ${PROG}.tmp ${PROG}
.include <bsd.prog.mk>