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) 64e589
: ${PREFIX_RPM:=${PREFIX}/rpm};
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 ed4109
: ${DEFAULT_CHECK_PATH_VARS:="
Lucio Andrés Illanes Albornoz ed4109
	PREFIX PREFIX_NATIVE PREFIX_CROSS BUILD_DLCACHEDIR BUILD_WORKDIR"};
Lucio Andrés Illanes Albornoz ed4109
: ${DEFAULT_CLEAR_ENV_VARS_EXCEPT:="
Lucio Andrés Illanes Albornoz ed4109
	HOME PATH TERM DEFAULT_TARBALL_SIGN_GPG_KEY USER"};
Lucio Andrés Illanes Albornoz ed4109
: ${DEFAULT_CLEAR_PREFIX_PATHS:="
Lucio Andrés Illanes Albornoz ed4109
	bin i686-nt32-midipix doc include info lib lib64 libexec man minipix minipix_dist native
Lucio Andrés Illanes Albornoz ed4109
	rpm sbin share tmp usr x86_64-nt64-midipix x86_64-w64-mingw32 pkglist.cross pkglist.host
Lucio Andrés Illanes Albornoz ed4109
	pkglist.native SHA256SUMS SHA256SUMS.last"};
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 ed4109
: ${DEFAULT_LOG_ENV_VARS:="
Lucio Andrés Illanes Albornoz ed4109
	ARCH BUILD BUILD_DLCACHEDIR BUILD_WORKDIR DEFAULT_GITROOT
Lucio Andrés Illanes Albornoz ed4109
	HOME PATH PREFIX PREFIX_CROSS PREFIX_MINGW32 PREFIX_MINIPIX
Lucio Andrés Illanes Albornoz ed4109
	PREFIX_NATIVE USER"};
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) 807f5f
: ${DEFAULT_BUILD_CPUS:=};
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) d5dd6f
: ${DEFAULT_CFLAGS_RELEASE:="-g0 -O0"};
Lucio Andrés Illanes Albornoz (arab, vxp) d5dd6f
: ${DEFAULT_CFLAGS_RELEASE_HOST:="-g0 -O0"};
Lucio Andrés Illanes Albornoz (arab, vxp) d5dd6f
: ${DEFAULT_CFLAGS_RELEASE_RUNTIME:="-g0 -O0"};
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 d279a9
: ${DEFAULT_GIT_ARGS:=""};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
: ${DEFAULT_WGET_ARGS:="--no-check-certificate"};
Lucio Andrés Illanes Albornoz ec4218
: ${DEFAULT_ZIPDIST_DEFROOT:="/dev/fs/c/midipix"};
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 3c2739
: ${DEFAULT_CROSS_LIBTOOL:=slibtool};
Lucio Andrés Illanes Albornoz 3c2739
: ${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 3c2739
: ${DEFAULT_HOST_LIBTOOL:=slibtool};
Lucio Andrés Illanes Albornoz 3c2739
: ${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 3c2739
: ${DEFAULT_NATIVE_LIBTOOL:=slibtool};
Lucio Andrés Illanes Albornoz 3c2739
: ${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 da0364
: ${DEFAULT_BUILD_LAST_FAILED_PKG_FNAME:=${BUILD_WORKDIR}/last_failed_pkg};
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 36c4a8
: ${DEFAULT_ZIPDIST_FNAME_PREFIX:=midipix-${ARCH}-${BUILD}.};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
# vim:filetype=sh textwidth=0