#       $NetBSD: Makefile,v 1.5 2013/07/09 13:10:55 joerg Exp $

BINDIR= /usr/mdec
PROG=   mkbootimage
SRCS=   mkbootimage.c byteorder.c
NOMAN=  # defined

# We don't use libbfd, but we do use the BFD ELF header files because
# they are somewhat more portable than NetBSD's own elf.h.
BFDTOP= ${NETBSDSRCDIR}/external/gpl3/binutils/dist

LIBSA=${.CURDIR}/../../../../lib/libsa

PATH.c: ${LIBSA}

CPPFLAGS= -I${LIBSA} -I${.CURDIR} -I${BFDTOP}/include
CPPFLAGS+=      -DATTRIBUTE_PACKED=
if !defined(HOSTPROGNAME)
DPADD+= ${LIBZ}
endif
LDADD+= -lz

include <bsd.prog.mk>