xref: /freebsd/share/examples/kld/syscall/module/Makefile (revision 380a989b3223d455375b4fae70fd0b9bdd43bafb)
1380a989bSDoug Rabson# Makefile for building the sample syscall module
2380a989bSDoug Rabson
3380a989bSDoug RabsonSRCS	= syscall.c
4380a989bSDoug RabsonKMOD	= syscall
5380a989bSDoug RabsonKO	= ${KMOD}.ko
6380a989bSDoug RabsonKLDMOD	= t
7380a989bSDoug Rabson
8380a989bSDoug RabsonKLDLOAD		= /sbin/kldload
9380a989bSDoug RabsonKLDUNLOAD	= /sbin/kldunload
10380a989bSDoug Rabson
11380a989bSDoug Rabsonload: ${KO}
12380a989bSDoug Rabson	${KLDLOAD} -v ./${KO}
13380a989bSDoug Rabson
14380a989bSDoug Rabsonunload: ${KO}
15380a989bSDoug Rabson	${KLDUNLOAD} -v -n ${KO}
16380a989bSDoug Rabson
17380a989bSDoug Rabson.include <bsd.kmod.mk>
18