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