#!/bin/sh
# DF-2798 build -- standalone (production-kernel emulation) + KLD
set -e
cd "$(dirname "$0")"
SRCDIR=${SRCDIR:-/usr/src}
cc -O2 -g -DNDEBUG -I "$SRCDIR/sys" -o trigger_oobfree trigger_oobfree.c
echo "trigger_oobfree built"
cd kld_aoobfree && make
