summaryrefslogtreecommitdiffstats
path: root/share/examples/kld/syscall/module/Makefile
blob: 44406f429f3c6480fc690f9ba0e5a48d4bfe9233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Makefile for building the sample syscall module

SRCS	= syscall.c
KMOD	= syscall
KO	= ${KMOD}.ko
KLDMOD	= t

KLDLOAD		= /sbin/kldload
KLDUNLOAD	= /sbin/kldunload

load: ${KO}
	${KLDLOAD} -v ./${KO}

unload: ${KO}
	${KLDUNLOAD} -v -n ${KO}

.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud