Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
#
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# WARNING: Do _NOT_ use whitespaces (` ') or tab (`	')
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# characters in any of the variables below save for MAKEFLAGS,
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# PATH, and TIMESTAMP_FMT.
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
#
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# $PREFIX_{CROSS,NATIVE} and $WORKDIR must be immediately
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# beneath $PREFIX. $PREFIX must be o+rwx. The variables mentioned
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# should not be forward slash-terminated.
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
#
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# Path names
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${PREFIX_ROOT:=${HOME}/midipix};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${PREFIX:=${PREFIX_ROOT}/${ARCH}/${BUILD}};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${PREFIX_CROSS:=${PREFIX}/${DEFAULT_TARGET}};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${PREFIX_MINGW32:=${PREFIX}/x86_64-w64-mingw32};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${PREFIX_MINIPIX:=${PREFIX}/minipix};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${PREFIX_NATIVE:=${PREFIX}/native};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${BUILD_DLCACHEDIR:=${PREFIX_ROOT}/dlcache};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${BUILD_WORKDIR:=${PREFIX}/tmp};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_LOG_ENV_VARS:="
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	ARCH BUILD BUILD_DLCACHEDIR BUILD_WORKDIR DEFAULT_GITROOT
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	HOME PATH PREFIX PREFIX_CROSS PREFIX_MINGW32 PREFIX_MINIPIX
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	PREFIX_NATIVE SHELL USER"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_INSTALL_FILES_DESTDIR:="
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	/=bin /=include /=lib /=lib/pkgconfig /=sbin
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	/=share /=share/doc /=share/info /=share/man
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	/=share/man/man1 /=share/man/man2 /=share/man/man3 /=share/man/man4 /=share/man/man5
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	/=share/man/man6 /=share/man/man7 /=share/man/man8 /=share/man/man9
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	@share/doc=doc
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	@share/info=info
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	@lib=lib64
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	@share/man=man
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	@../lib/pkgconfig=share/pkgconfig
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	@.=usr"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# Default flags & variables
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_BUILD_CPUS:=1};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_BUILD_TYPE:=native};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CFLAGS_DEBUG:="-g2 -O0"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CFLAGS_DEBUG_HOST:="-g0 -O2"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CFLAGS_DEBUG_RUNTIME:="-g3 -O0"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CFLAGS_RELEASE:="-g0 -O2"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CFLAGS_RELEASE_HOST:="-g0 -O2"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CFLAGS_RELEASE_RUNTIME:="-g0 -O2"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CFLAGS:=$(ex_rtl_get_var_unsafe "DEFAULT_CFLAGS_$(ex_rtl_toupper "${BUILD}")")};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CFLAGS_CONFIGURE:=${DEFAULT_CFLAGS}};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CFLAGS_HOST:=$(ex_rtl_get_var_unsafe "DEFAULT_CFLAGS_$(ex_rtl_toupper "${BUILD}")_HOST")};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CFLAGS_RUNTIME:=$(ex_rtl_get_var_unsafe "DEFAULT_CFLAGS_$(ex_rtl_toupper "${BUILD}")_RUNTIME")};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_GITROOT:=git://midipix.org};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_GITROOT_HEAD:=git://midipix.org};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_MAKE_INSTALL_VNAME:=DESTDIR};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_MAKEFLAGS_BUILD:=-j${DEFAULT_BUILD_CPUS}};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_WGET_ARGS:="--no-check-certificate"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# Target-relative defaults
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CROSS_AR:=${DEFAULT_TARGET}-ar};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CROSS_CC:=${DEFAULT_TARGET}-gcc};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CROSS_CXX:=${DEFAULT_TARGET}-g++};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CROSS_LIBTOOL:=slibtool};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CROSS_MAKE:=make LIBTOOL=slibtool};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CROSS_RANLIB:=${DEFAULT_TARGET}-ranlib};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_HOST_AR:=ar};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_HOST_CC:=gcc};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_HOST_CXX:=g++};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_HOST_LIBTOOL:=slibtool};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_HOST_MAKE:=make LIBTOOL=slibtool};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_HOST_RANLIB:=ranlib};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_NATIVE_AR:=${DEFAULT_TARGET}-ar};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_NATIVE_CC:=${DEFAULT_TARGET}-gcc};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_NATIVE_CXX:=${DEFAULT_TARGET}-g++};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_NATIVE_LIBTOOL:=slibtool};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_NATIVE_MAKE:=make LIBTOOL=slibtool};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_NATIVE_PKGCONFIG:=${PREFIX}/bin/${DEFAULT_TARGET}-pkg-config};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_NATIVE_PKG_CONFIG:=${PREFIX}/bin/${DEFAULT_TARGET}-pkg-config};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_NATIVE_PKG_CONFIG_LIBDIR:=${PREFIX_NATIVE}/lib/pkgconfig};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_NATIVE_RANLIB:=${DEFAULT_TARGET}-ranlib};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# Build {log,status} & tarball names
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_BUILD_LOG_FNAME:=${PREFIX}/build.log};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_BUILD_LOG_LAST_FNAME:=${PREFIX}/build.log.last};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME:=${PREFIX}/BUILD_IN_PROGRESS};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_TARBALL_CROSS_FNAME_PREFIX:=midipix-${ARCH}-${BUILD}_cross.};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_TARBALL_FNAME_PREFIX:=midipix-${ARCH}-${BUILD}.};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_TARBALL_MINIPIX_FNAME_PREFIX:=minipix-${ARCH}-${BUILD}.};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_TARBALL_SIGN_GPG_KEY:=};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_TARBALL_SRC_FNAME_PREFIX:=midipix-${ARCH}-${BUILD}_src.};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_TARBALL_SUFFIX:=xz};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# Check & clear predicates
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CHECK_PATH_VARS:="
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	PREFIX PREFIX_NATIVE PREFIX_CROSS DLCACHEDIR WORKDIR"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CHECK_PREREQ_CMDS:="
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	aclocal autoconf autopoint awk basename bunzip2 find flex gcc git groff gunzip install
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	ld libtool lzma make makeinfo msgfmt nl nroff openssl paste patch python sed sha256sum
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	sort tar tee tic tr uname wget xz"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CHECK_PREREQ_FILES_DYNAMIC:='
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	/usr/share/groff/$(groff -v 2>/dev/null | awk '\''/^GNU groff version /{print $NF}'\'')/tmac/e.tmac'};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CHECK_PREREQ_FILES:="
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	/usr/include/gmpxx.h /usr/include/mpc.h /usr/include/mpfr.h"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CHECK_PREREQ_PERL_MODULES:="
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	autodie ExtUtils::MakeMaker"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CLEAR_ENV_VARS_EXCEPT:="
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	DEFAULT_GITROOT DEFAULT_GITROOT_HEAD HOME PATH SHELL TERM TARBALL_SIGN_GPG_KEY USER"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_CLEAR_PREFIX_PATHS:="
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	bin i686-nt32-midipix doc include info lib lib64 libexec man minipix native
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	sbin share tmp usr x86_64-nt64-midipix x86_64-w64-mingw32 midipix.sh midipix_shortcut.vbs README"};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# vim:filetype=sh textwidth=0