Home | History | Annotate | Line # | Download | only in bootelf
Makefile revision 1.11
      1 #	$NetBSD: Makefile,v 1.11 2006/01/26 22:39:08 he Exp $
      2 
      3 PROG=	bootelf
      4 SRCS=	alloc.c boot.c byteorder.c loadfile.c loadfile_elf32.c
      5 NOMAN=	# defined
      6 
      7 LIBSA=	${.CURDIR}/../../../../lib/libsa
      8 
      9 .PATH: ${LIBSA}
     10 
     11 CFLAGS+= -D_STANDALONE -ffreestanding
     12 CPPFLAGS+= -I${LIBSA} -I${.OBJDIR}
     13 LDSTATIC= -static
     14 
     15 CLEANFILES+=	machine
     16 
     17 realdepend realall: machine
     18 
     19 machine::
     20 	-rm -f $@
     21 	ln -s ${.CURDIR}/../../../../arch/${MACHINE}/include $@
     22 
     23 ${PROG}: ${OBJS} machine
     24 
     25 .include <bsd.prog.mk>
     26