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