test41: relax maximum timer tick rate
[minix.git] / tools / binutils / Makefile
blobb24d9f6c43405d46e0c398639973a2ca2da22234
1 # $NetBSD: Makefile,v 1.22 2012/04/15 08:37:32 mrg Exp $
3 .include <bsd.own.mk>
5 MODULE= binutils
7 GNUHOSTDIST= ${.CURDIR}/../../external/gpl3/binutils/dist
9 BRANDING?= \
10 --with-pkgversion="NetBSD Binutils nb1" \
11 --with-bugurl="http://www.NetBSD.org/support/send-pr.html" \
12 --with-lib-path="=/usr/lib" --with-sysroot
14 CONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM} --disable-nls \
15 --program-transform-name="s,^,${MACHINE_GNU_PLATFORM}-," \
16 --disable-werror \
17 ${BRANDING}
19 MAKE_ARGS= MACHINE= MAKEINFO=${TOOL_MAKEINFO:Q}
21 ALL_TARGET= all-binutils all-gas all-ld
22 INSTALL_TARGET= install-binutils install-gas install-ld
23 .if ${MKCROSSGPROF:Uno} != "no"
24 ALL_TARGET+= all-gprof
25 INSTALL_TARGET+=install-gprof
26 .endif
28 .include "${.CURDIR}/../Makefile.gnuhost"
30 CCADDFLAGS= -I${DESTDIR}/usr/include -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/
32 # Force avoiding possibly non-executable install-sh.
33 CONFIGURE_ENV+= ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d"
35 NEWCONFIGDIR?= ${.CURDIR}/../..
36 MKNATIVE?= ${.CURDIR}/mknative-binutils
38 native-binutils: .native/.configure_done
39 @echo 'Extracting GNU binutils configury for a native toolchain.'
40 MAKE=${MAKE:Q} ${HOST_SH} ${MKNATIVE} binutils \
41 ${.OBJDIR}/.native ${NEWCONFIGDIR} ${MACHINE_GNU_PLATFORM}
43 .native/.configure_done: ${_GNU_CFGSRC} ${.CURDIR}/Makefile
44 mkdir .native 2>/dev/null || true
45 PATH=${TOOLDIR}/bin:$$PATH; export PATH; \
46 (cd .native && ${CONFIGURE_ENV:NC*:NLD*} \
47 CC_FOR_BUILD=${HOST_CC:Q} \
48 CC=${CC:Q}' '${CCADDFLAGS:Q} \
49 CXX=${CXX:Q}' '${CCADDFLAGS:Q} \
50 CPP=${CPP:Q}' '-I${DESTDIR}/usr/include \
51 CFLAGS= CPPFLAGS= CXXFLAGS= LDFLAGS= \
52 MSGFMT=${TOOLDIR}/bin/${_TOOL_PREFIX}msgfmt \
53 XGETTEXT=${TOOLDIR}/bin/${_TOOL_PREFIX}xgettext \
54 LIBS=-lintl \
55 ac_cv_prog_cc_cross=yes \
56 ac_cv_func_strcoll_works=yes \
57 ${HOST_SH} ${GNUHOSTDIST}/configure \
58 --build=`${GNUHOSTDIST}/config.guess` \
59 --host=${MACHINE_GNU_PLATFORM} \
60 --target=${MACHINE_GNU_PLATFORM} \
61 ${BRANDING} \
63 PATH=${TOOLDIR}/bin:$$PATH; export PATH; \
64 (cd .native && ${MAKE} configure-host)
65 PATH=${TOOLDIR}/bin:$$PATH; export PATH; \
66 (cd .native/bfd && ${MAKE} bfd.h bfdver.h)
67 PATH=${TOOLDIR}/bin:$$PATH; export PATH; \
68 (cd .native/ld && ${MAKE} ldemul-list.h)
69 @touch $@
71 clean: clean.native
72 clean.native:
73 -rm -r -f .native