12e280533SJohn Polstra#
29b7a44a6SPeter Wemm# $FreeBSD$
32e280533SJohn Polstra#
42e280533SJohn Polstra
52e280533SJohn Polstra.include "../Makefile.inc0"
62e280533SJohn Polstra
72e280533SJohn Polstra.PATH: ${SRCDIR}/binutils
82e280533SJohn Polstra
92e280533SJohn PolstraLIB=		binutils
10ab5ad3a4SJohn PolstraSRCS+=		arlex.l arparse.y arsup.c bucomm.c debug.c filemode.c \
112e280533SJohn Polstra		ieee.c rdcoff.c rddbg.c stabs.c wrstabs.c version.c
12*ecc4dcbdSMarcel Moolenaar.if ${TARGET_ARCH} == "mipseb"
130781becdSWarner LoshCFLAGS+=	-DTARGET=\"elf32-bigmips\"
14*ecc4dcbdSMarcel Moolenaar.elif ${TARGET_ARCH} == "mipsel"
150781becdSWarner LoshCFLAGS+=	-DTARGET=\"elf32-littlemips\"
160781becdSWarner Losh.else
17*ecc4dcbdSMarcel MoolenaarCFLAGS+=	-DTARGET=\"${TARGET_ARCH}-unknown-freebsdelf\"
180781becdSWarner Losh.endif
192e280533SJohn PolstraCFLAGS+=	-DVERSION=\"${VERSION}\"
202e280533SJohn PolstraCFLAGS+=	-I${SRCDIR}/binutils
212e280533SJohn PolstraCFLAGS+=	-I${SRCDIR}/bfd
222e280533SJohn PolstraNOPROFILE=	true
232e280533SJohn PolstraNOPIC=		true
24f07eaee2SJohn PolstraINTERNALLIB=	true
25f07eaee2SJohn PolstraINTERNALSTATICLIB=true
262e280533SJohn Polstra
272e280533SJohn Polstra.include <bsd.lib.mk>
28