[BACK]Return to Makefile.common CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / cross / mingw

File: [cvs.NetBSD.org] / pkgsrc / cross / mingw / Makefile.common (download)

Revision 1.2, Wed Dec 10 23:21:40 2014 UTC (9 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4
Changes since 1.1: +2 -2 lines

Use PREPEND_PATH here in place of explicit PATH manipulation.

# $NetBSD: Makefile.common,v 1.2 2014/12/10 23:21:40 joerg Exp $
#
# used by cross/mingw-gcc/buildlink3.mk
# used by cross/mingw-binutils/Makefile
# used by cross/mingw-gcc/Makefile
# used by cross/mingw-runtime-bin/Makefile
# used by cross/mingw-w32api-bin/Makefile

.if !defined(MINGW_MAKEFILECOMMON)
MINGW_MAKEFILECOMMON=	# defined
USE_CROSSBASE=		yes

MASTER_SITE_MINGW=	${MASTER_SITE_SOURCEFORGE:=mingw/}
MINGW_TARGET?=		i386--mingw32
PLIST_SUBST+=		MINGW_TARGET=${MINGW_TARGET:Q}
MAKE_ENV+=		MINGW_TARGET=${MINGW_TARGET:Q}
CONFIGURE_ENV+=		MINGW_TARGET=${MINGW_TARGET:Q}

PREPEND_PATH+=		${CROSSBASE}/bin

.if defined(GNU_CONFIGURE)
CONFIGURE_ARGS+=	--prefix=${PREFIX:Q}
CONFIGURE_ARGS+=	--exec-prefix=${PREFIX:Q}
CONFIGURE_ARGS+=	--target=${MINGW_TARGET:Q}
# following line to avoid getting
#    make: exec(i386--netbsdelf-ar) failed (No such file or directory)
USE_GNU_CONFIGURE_HOST=	NO
.endif
.endif