#!/bin/sh
# -*- mode: sh; -*-

set -e

export compiler_settings=1
: ${MAKEOBJDIR:=$HOME/.mkcmake}
export MAKEOBJDIR
export MKC_CACHEDIR="$MAKEOBJDIR"
export MKC_NOCACHE=1
: ${MK_FILES_DIR:=/usr/pkg/share/mk-configure/mk}
: ${FEATURES_DIR:=/usr/pkg/share/mk-configure/features}
export COMPILER_SETTINGS_MK="-f $MK_FILES_DIR/mkc.compiler_settings.mk"
export SRCTOP=/baddir

BMAKE=${MKC_BMAKE-/usr/pkg/bin/bmake}
env MKCHECKS=no $BMAKE -m "$MK_FILES_DIR" -m "$FEATURES_DIR" $COMPILER_SETTINGS_MK post_all
