1#         $NetBSD: Makefile,v 1.5 2013/07/09 13:10:55 joerg Exp $
2
3BINDIR=   /usr/mdec
4PROG=     mkbootimage
5SRCS=     mkbootimage.c byteorder.c
6NOMAN=    # 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.
10BFDTOP=   ${NETBSDSRCDIR}/external/gpl3/binutils/dist
11
12LIBSA=${.CURDIR}/../../../../lib/libsa
13
14.PATH.c: ${LIBSA}
15
16CPPFLAGS= -I${LIBSA} -I${.CURDIR} -I${BFDTOP}/include
17CPPFLAGS+=          -DATTRIBUTE_PACKED=
18.if !defined(HOSTPROGNAME)
19DPADD+=   ${LIBZ}
20.endif
21LDADD+=   -lz
22
23.include <bsd.prog.mk>
24