1 1.1 uwe # $NetBSD: Makefile.mbr,v 1.1 2006/09/01 21:26:19 uwe Exp $ 2 1.1 uwe 3 1.1 uwe S= ${.CURDIR}/../../../../.. 4 1.1 uwe 5 1.1 uwe NOMAN= # defined 6 1.1 uwe 7 1.1 uwe LIBCRT0= # nothing 8 1.1 uwe LIBCRTBEGIN= # nothing 9 1.1 uwe LIBCRTEND= # nothing 10 1.1 uwe LIBC= # nothing 11 1.1 uwe 12 1.1 uwe .include <bsd.own.mk> 13 1.1 uwe 14 1.1 uwe STRIPFLAG= # override 15 1.1 uwe 16 1.1 uwe SRCS?= mbr.S 17 1.1 uwe 18 1.1 uwe BINDIR= /usr/mdec 19 1.1 uwe BINMODE= 444 20 1.1 uwe 21 1.1 uwe .PATH: ${.CURDIR}/.. 22 1.1 uwe 23 1.1 uwe LDFLAGS+= -N -e start 24 1.1 uwe CPPFLAGS= -nostdinc -I${.OBJDIR} -I${.CURDIR}/.. -I${S} 25 1.1 uwe 26 1.1 uwe CLEANFILES+= ${PROG}.tmp machine sh3 27 1.1 uwe 28 1.1 uwe .if !make(obj) && !make(clean) && !make(cleandir) 29 1.1 uwe .BEGIN: machine sh3 30 1.1 uwe .NOPATH: machine sh3 31 1.1 uwe 32 1.1 uwe machine:: 33 1.1 uwe -rm -f $@ 34 1.1 uwe ln -s ${S}/arch/${MACHINE}/include $@ 35 1.1 uwe 36 1.1 uwe sh3:: 37 1.1 uwe -rm -f $@ 38 1.1 uwe ln -s ${S}/arch/sh3/include $@ 39 1.1 uwe .endif 40 1.1 uwe 41 1.1 uwe ${PROG}: ${OBJS} 42 1.1 uwe ${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x8c200200 ${OBJS} 43 1.1 uwe ${OBJCOPY} -O binary ${PROG}.tmp ${PROG} 44 1.1 uwe -rm -f ${PROG}.tmp 45 1.1 uwe 46 1.1 uwe .include <bsd.prog.mk> 47