19b7a44a6SPeter Wemm# $FreeBSD$
22e280533SJohn Polstra
32e280533SJohn Polstra.include "../Makefile.inc0"
42e280533SJohn Polstra
52e280533SJohn Polstra.PATH: ${SRCDIR}/opcodes
62e280533SJohn Polstra
72e280533SJohn PolstraLIB=	opcodes
8*67f8e5a5SDimitry AndricSRCS+=	dis-buf.c dis-init.c disassemble.c i386-opc.c
9e223c68bSDavid E. O'BrienCFLAGS+= -D_GNU_SOURCE
107408d8ffSWarner LoshCFLAGS+= -I${SRCDIR}/opcodes -I${SRCDIR}/bfd
11a35d8893SRuslan ErmilovINTERNALLIB=
122e280533SJohn Polstra
133ba3ae90SJohn Birrell# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
143ba3ae90SJohn Birrell# binutils release. FreeBSD only distributes the bits that are required to
153ba3ae90SJohn Birrell# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
163ba3ae90SJohn Birrell.if	defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
173ba3ae90SJohn Birrell.PATH: ${BINUTILSDISTDIR}/bfd ${BINUTILSDISTDIR}/opcodes
183ba3ae90SJohn BirrellCFLAGS+= -I${BINUTILSDISTDIR}/opcodes -I${BINUTILSDISTDIR}/bfd
193ba3ae90SJohn BirrellCFLAGS+= -I${BINUTILSDISTDIR}/include
203ba3ae90SJohn Birrell.endif
213ba3ae90SJohn Birrell
222e280533SJohn Polstra.include <bsd.lib.mk>
23