NetBSD/sys/arch/news68k/stand/bootxx/Makefile

50 lines
864 B
Makefile

# $NetBSD: Makefile,v 1.2 2000/01/23 17:04:06 mycroft Exp $
COMMON= ${.CURDIR}/../common
.ifnmake(print-objdir)
COMMONOBJ!= cd ${COMMON}; ${MAKE} print-objdir
.endif
.PATH: ${COMMON}
PROG= bootxx
SRCS= start.S bootxx.c
SRCS+= romcalls.S putchar.c
MKMAN= no
STRIPFLAG=
BINMODE= 444
SIZE?= size
S= ${.CURDIR}/../../../..
LDFLAGS= -x -N -Ttext 0
CFLAGS= -Os -Wall
CPPFLAGS+= -D_STANDALONE -DBOOTXX_DEBUG
CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S}
AFLAGS= -D_LOCORE
CLEANFILES+= machine m68k
L= ${COMMONOBJ}/lib
LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a
.BEGIN: machine m68k
.NOPATH: machine m68k
realdepend realall: machine m68k
machine::
-rm -f $@
ln -s ${S}/arch/${MACHINE}/include $@
m68k::
-rm -f $@
ln -s ${S}/arch/m68k/include $@
${PROG}: ${OBJS} machine m68k
${LD} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBS}
${SIZE} ${PROG}
.include <bsd.prog.mk>