1 2 3 4 5
#!/bin/sh # DF-5155 build set -e cd "$(dirname "$0")" mkdir -p /tmp/pbmod && cp pbtest.c /tmp/pbmod/ && cd /tmp/pbmod && printf 'KMOD=\tpbtest\nSRCS=\tpbtest.c\n\n.include <bsd.kmod.mk>\n' > Makefile && make SYSDIR=/usr/src/sys