
Split the process to fetch GNU tools (until now embedded within tools/Makefile.gnuhost) into a new Makefile.fetchgnu, MINIX-specific hence relocated, which is to be also used to fetch sources even when not building the tools. Use it for binutils too. Improve documentation. Also do not run configure on each run when MKUPDATE=yes The .WAIT serialization instruction between fetching and other configure sources was raising a new run of configure at each compilation. Avoid it by using two rules. Change-Id: Ie24950ccbb5c5067f3c1ea57b7bd8294e4c9445e
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.4 2013/08/06 05:35:57 matt Exp $
|
|
|
|
NOLINT= # defined
|
|
NOPROFILE= # defined
|
|
NOPIC= # defined
|
|
NOLINKLIB= # defined
|
|
NOCLANGERROR= # defined
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LIB= iberty
|
|
|
|
BINUTILS_MACHINE_ARCH=${MACHINE_ARCH:C/armv[4-7]/arm/}
|
|
|
|
.include "${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH}/defs.mk"
|
|
|
|
COPTS.argv.c = -Wno-stack-protector
|
|
COPTS.cp-demangle.c = -Wno-stack-protector
|
|
COPTS.make-relative-prefix.c = -Wno-stack-protector
|
|
COPTS.regex.c = -Wno-stack-protector
|
|
|
|
DIST= ${NETBSDSRCDIR}/external/gpl3/binutils/dist
|
|
|
|
.if defined(__MINIX)
|
|
# MINIX: make sure sources are fetched, even when tools not built earlier
|
|
GNUHOSTDIST= ${DIST}
|
|
.include "${.CURDIR}/../../../../../minix/Makefile.fetchgnu"
|
|
.endif # defined(__MINIX)
|
|
|
|
SRCS= ${G_REQUIRED_OFILES:.o=.c} ${G_EXTRA_OFILES:.o=.c} \
|
|
${G_LIBOBJS:.o=.c} ${G_ALLOCA:.o=.c}
|
|
|
|
CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH} \
|
|
-I${DIST}/include
|
|
|
|
.PATH: ${DIST}/libiberty
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.if defined(__MINIX) && ${USETOOLS} != "yes"
|
|
# Trigger the fetch phase, even when not building tools
|
|
${SRCS} realdepend realall realinstall: ${fetch_done}
|
|
.endif # defined(__MINIX)
|