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