diff options
Diffstat (limited to 'share/examples/kld/syscall/module/Makefile')
-rw-r--r-- | share/examples/kld/syscall/module/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/share/examples/kld/syscall/module/Makefile b/share/examples/kld/syscall/module/Makefile new file mode 100644 index 0000000..44406f4 --- /dev/null +++ b/share/examples/kld/syscall/module/Makefile @@ -0,0 +1,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> |