Home | History | Annotate | Line # | Download | only in xxboot
Makefile.xxboot revision 1.4.88.1
      1  1.4.88.1  bouyer #	$NetBSD: Makefile.xxboot,v 1.4.88.1 2009/01/16 22:57:33 bouyer Exp $
      2       1.1     leo 
      3       1.1     leo BINMODE=	${NONBINMODE}
      4       1.1     leo 
      5  1.4.88.1  bouyer # XXX SHOULD NOT NEED TO DEFINE THESE!
      6  1.4.88.1  bouyer LIBCRT0=
      7  1.4.88.1  bouyer LIBC=
      8  1.4.88.1  bouyer LIBCRTBEGIN=
      9  1.4.88.1  bouyer LIBCRTEND=
     10  1.4.88.1  bouyer 
     11  1.4.88.1  bouyer .include "../../Makefile.booters"
     12  1.4.88.1  bouyer .include "../${BTYPE}_LOADADDR"
     13  1.4.88.1  bouyer 
     14       1.1     leo STRIPFLAG=
     15  1.4.88.1  bouyer LINKFLAGS=	-static -x -N -Ttext 0
     16  1.4.88.1  bouyer CPPFLAGS+=	-I. -I${.CURDIR}/.. -I${.CURDIR}/../.. -D${BTYPE}
     17       1.1     leo 
     18       1.1     leo beforeinstall:
     19  1.4.88.1  bouyer 	${INSTALL_DIR} ${DESTDIR}${BINDIR}
     20       1.1     leo 
     21       1.1     leo .s.o: ../${BTYPE}_LOADADDR
     22       1.1     leo 	${CPP} ${CPPFLAGS} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET}
     23       1.3     jmc 	@if ${NM} ${.TARGET} | grep -q "00000200 t end";	\
     24       1.1     leo 	 then						\
     25       1.1     leo 		true;					\
     26       1.1     leo 	 else						\
     27       1.3     jmc 		${NM} ${.TARGET} | grep " end";		\
     28       1.1     leo 		rm -f ${.TARGET};			\
     29       1.1     leo 		false;					\
     30       1.1     leo 	 fi
     31       1.1     leo 
     32  1.4.88.1  bouyer ${PROG}:	${OBJS}
     33  1.4.88.1  bouyer 	${LD} ${LINKFLAGS} -o ${PROG}.elf ${OBJS}
     34  1.4.88.1  bouyer 	${OBJCOPY} -O binary ${PROG}.elf ${.TARGET}
     35       1.1     leo 
     36  1.4.88.1  bouyer CLEANFILES+=	${PROG}.elf
     37