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
10NOPROFILE=	true
11NOPIC=		true
12INTERNALLIB=	true
13INTERNALSTATICLIB=true
14
15# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
16# binutils release. FreeBSD only distributes the bits that are required to
17# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
18.if	defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
19.PATH: ${BINUTILSDISTDIR}/bfd ${BINUTILSDISTDIR}/opcodes
20CFLAGS+= -I${BINUTILSDISTDIR}/opcodes -I${BINUTILSDISTDIR}/bfd
21CFLAGS+= -I${BINUTILSDISTDIR}/include
22.endif
23
24.include <bsd.lib.mk>
25