1# $NetBSD: Makefile,v 1.4 2011/01/26 21:35:14 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= 18DPADD+= ${LIBZ} 19LDADD+= -lz 20 21.include <bsd.prog.mk> 22