1999-08-27 19:37:10 -04:00
|
|
|
# $FreeBSD$
|
1998-03-01 18:41:17 -05:00
|
|
|
|
|
|
|
|
.include "../Makefile.inc0"
|
|
|
|
|
|
|
|
|
|
.PATH: ${SRCDIR}/opcodes
|
|
|
|
|
|
2001-10-13 21:31:37 -04:00
|
|
|
LIB= opcodes
|
2010-11-01 15:42:07 -04:00
|
|
|
SRCS+= dis-buf.c dis-init.c disassemble.c i386-opc.c
|
2004-06-16 03:09:44 -04:00
|
|
|
CFLAGS+= -D_GNU_SOURCE
|
2001-10-13 21:31:37 -04:00
|
|
|
CFLAGS+= -I${SRCDIR}/opcodes -I${SRCDIR}/bfd
|
2004-10-24 11:33:08 -04:00
|
|
|
INTERNALLIB=
|
1998-03-01 18:41:17 -05:00
|
|
|
|
1999-11-06 16:04:46 -05:00
|
|
|
# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
|
|
|
|
|
# binutils release. FreeBSD only distributes the bits that are required to
|
|
|
|
|
# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
|
|
|
|
|
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
|
2001-10-13 21:31:37 -04:00
|
|
|
.PATH: ${BINUTILSDISTDIR}/bfd ${BINUTILSDISTDIR}/opcodes
|
|
|
|
|
CFLAGS+= -I${BINUTILSDISTDIR}/opcodes -I${BINUTILSDISTDIR}/bfd
|
|
|
|
|
CFLAGS+= -I${BINUTILSDISTDIR}/include
|
1999-11-06 16:04:46 -05:00
|
|
|
.endif
|
|
|
|
|
|
1998-03-01 18:41:17 -05:00
|
|
|
.include <bsd.lib.mk>
|