150472Speter# $FreeBSD: releng/10.2/gnu/usr.bin/binutils/libopcodes/Makefile 218822 2011-02-18 20:54:12Z dim $
233975Sjdp
333975Sjdp.include "../Makefile.inc0"
433975Sjdp
533975Sjdp.PATH: ${SRCDIR}/opcodes
633975Sjdp
784906SobrienLIB=	opcodes
8218822SdimSRCS+=	dis-buf.c dis-init.c disassemble.c i386-opc.c
9130575SobrienCFLAGS+= -D_GNU_SOURCE
1084906SobrienCFLAGS+= -I${SRCDIR}/opcodes -I${SRCDIR}/bfd
11136910SruINTERNALLIB=
1233975Sjdp
1352924Sjb# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
1452924Sjb# binutils release. FreeBSD only distributes the bits that are required to
1552924Sjb# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
1652924Sjb.if	defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
1784906Sobrien.PATH: ${BINUTILSDISTDIR}/bfd ${BINUTILSDISTDIR}/opcodes
1884906SobrienCFLAGS+= -I${BINUTILSDISTDIR}/opcodes -I${BINUTILSDISTDIR}/bfd
1984906SobrienCFLAGS+= -I${BINUTILSDISTDIR}/include
2052924Sjb.endif
2152924Sjb
2233975Sjdp.include <bsd.lib.mk>
23