summaryrefslogtreecommitdiff
path: root/sys/modules/dm/dm_target_snapshot/Makefile
diff options
context:
space:
mode:
authorhaad <haad@NetBSD.org>2009-01-02 01:06:16 +0000
committerhaad <haad@NetBSD.org>2009-01-02 01:06:16 +0000
commit18bcf672b40d63646ca3a90d82814f8cd8f2e3fb (patch)
tree1d8175a88c6d0eb2cf5121a28537032f098f52e7 /sys/modules/dm/dm_target_snapshot/Makefile
parent32013fd9f2b763436fd35f42074747f8f32631f4 (diff)
Remove unneeded targets from dm driver and build them as separate modules.
The zero, error and snapshot targets are build as modules and can be loaded to dm driver with modload. I do not build/install these drivers by default. The linear and stripe targets are needed for LVM so I keep them compiled in dm.
Diffstat (limited to 'sys/modules/dm/dm_target_snapshot/Makefile')
-rw-r--r--sys/modules/dm/dm_target_snapshot/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/modules/dm/dm_target_snapshot/Makefile b/sys/modules/dm/dm_target_snapshot/Makefile
new file mode 100644
index 00000000000..cbf37709b0d
--- /dev/null
+++ b/sys/modules/dm/dm_target_snapshot/Makefile
@@ -0,0 +1,12 @@
+#$NetBSD: Makefile,v 1.1 2009/01/02 01:06:16 haad Exp $
+
+.include "../../Makefile.inc"
+
+S!= cd ${.CURDIR}/../../..;pwd
+.PATH: ${S}/dev/dm
+
+CFLAGS += -DDM_TARGET_MODULE
+KMOD= dm_target_snapshot
+SRCS= dm_target_snapshot.c
+
+.include <bsd.kmodule.mk>