Improve the process for GNU tools
[minix3.git] / external / gpl3 / binutils / lib / libiberty / Makefile
blob23fcf9f3ef6cfa963e909ed6470d5febda40c7b9
1 # $NetBSD: Makefile,v 1.4 2013/08/06 05:35:57 matt Exp $
3 NOLINT= # defined
4 NOPROFILE= # defined
5 NOPIC= # defined
6 NOLINKLIB= # defined
7 NOCLANGERROR= # defined
9 .include <bsd.own.mk>
11 LIB= iberty
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
24 .if defined(__MINIX)
25 # MINIX: make sure sources are fetched, even when tools not built earlier
26 GNUHOSTDIST= ${DIST}
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} \
34 -I${DIST}/include
36 .PATH: ${DIST}/libiberty
38 .include <bsd.lib.mk>
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)