Home | History | Annotate | Line # | Download | only in mkbootimage
      1 #	$NetBSD: Makefile,v 1.5 2013/07/09 13:10:55 joerg Exp $
      2 
      3 BINDIR=	/usr/mdec
      4 PROG=	mkbootimage
      5 SRCS=	mkbootimage.c byteorder.c
      6 NOMAN=	# defined
      7 
      8 # We don't use libbfd, but we do use the BFD ELF header files because
      9 # they are somewhat more portable than NetBSD's own elf.h.
     10 BFDTOP=	${NETBSDSRCDIR}/external/gpl3/binutils/dist
     11 
     12 LIBSA=${.CURDIR}/../../../../lib/libsa
     13 
     14 .PATH.c: ${LIBSA}
     15 
     16 CPPFLAGS= -I${LIBSA} -I${.CURDIR} -I${BFDTOP}/include
     17 CPPFLAGS+=	-DATTRIBUTE_PACKED=
     18 .if !defined(HOSTPROGNAME)
     19 DPADD+=	${LIBZ}
     20 .endif
     21 LDADD+=	-lz
     22 
     23 .include <bsd.prog.mk>
     24