1# $FreeBSD$ 2 3.include "../Makefile.inc0" 4 5.PATH: ${SRCDIR}/opcodes 6 7LIB= opcodes 8SRCS+= dis-buf.c disassemble.c 9CFLAGS+= -I${SRCDIR}/opcodes -I${SRCDIR}/bfd 10INTERNALLIB= true 11 12# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU 13# binutils release. FreeBSD only distributes the bits that are required to 14# build native architectures. BINUTILSDISTDIR is needed to build cross tools. 15.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR}) 16.PATH: ${BINUTILSDISTDIR}/bfd ${BINUTILSDISTDIR}/opcodes 17CFLAGS+= -I${BINUTILSDISTDIR}/opcodes -I${BINUTILSDISTDIR}/bfd 18CFLAGS+= -I${BINUTILSDISTDIR}/include 19.endif 20 21.include <bsd.lib.mk> 22