1 # $NetBSD: Makefile,v 1.4 2013/08/06 05:35:57 matt Exp $
7 NOCLANGERROR
= # defined
13 BINUTILS_MACHINE_ARCH
=${MACHINE_ARCH
:C
/armv
[4-7]/arm
/}
15 .
include "${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH}/defs.mk"
17 COPTS.argv.c
= -Wno-stack-protector
18 COPTS.cp-demangle.c
= -Wno-stack-protector
19 COPTS.make-relative-prefix.c
= -Wno-stack-protector
20 COPTS.regex.c
= -Wno-stack-protector
22 DIST
= ${NETBSDSRCDIR}/external
/gpl3
/binutils
/dist
25 # MINIX: make sure sources are fetched, even when tools not built earlier
27 .
include "${.CURDIR}/../../../../../minix/Makefile.fetchgnu"
28 .
endif # defined(__MINIX)
30 SRCS
= ${G_REQUIRED_OFILES
:.o
=.c
} ${G_EXTRA_OFILES
:.o
=.c
} \
31 ${G_LIBOBJS
:.o
=.c
} ${G_ALLOCA
:.o
=.c
}
33 CPPFLAGS
+= -DHAVE_CONFIG_H
-I
${.CURDIR
}/arch
/${BINUTILS_MACHINE_ARCH} \
36 .PATH
: ${DIST}/libiberty
40 .if defined
(__MINIX
) && ${USETOOLS} != "yes"
41 # Trigger the fetch phase, even when not building tools
42 ${SRCS} realdepend realall realinstall
: ${fetch_done}
43 .
endif # defined(__MINIX)