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