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