summaryrefslogtreecommitdiff
path: root/samples/vfio-mdev/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'samples/vfio-mdev/Makefile')
-rw-r--r--samples/vfio-mdev/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/samples/vfio-mdev/Makefile b/samples/vfio-mdev/Makefile
new file mode 100644
index 000000000000..a932edbe38eb
--- /dev/null
+++ b/samples/vfio-mdev/Makefile
@@ -0,0 +1,13 @@
+#
+# Makefile for mtty.c file
+#
+KERNEL_DIR:=/lib/modules/$(shell uname -r)/build
+
+obj-m:=mtty.o
+
+modules clean modules_install:
+ $(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(PWD) $@
+
+default: modules
+
+module: modules