summarylogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Marc Lenoir2018-01-14 11:59:24 +0100
committerJean-Marc Lenoir2018-01-14 11:59:24 +0100
commitb091575043e114ae3f1741823aec15c4e9941ae0 (patch)
treea83a487e7e7cdd6a669570fe137f0863f30b411b /Makefile
downloadaur-b091575043e114ae3f1741823aec15c4e9941ae0.tar.gz
Initial commit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000000..4b589921549
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+
+MODULES = \
+ vmmon \
+ vmnet \
+ #vmblock \
+ #vmci \
+ #vsock
+
+all: $(foreach m, $(MODULES), $m.ko)
+
+%.ko: %
+ $(MAKE) KVERSION=$(KVERSION) VM_KBUILD=yes -C $*-only
+
+$(MODULES): %:
+ cp -r $(SRCDIR)/$*-only $*-only
+
+vsock.ko: vmci.ko
+
+clean:
+ rm -rf $(MODULES)
+ rm -rf $(foreach m, $(MODULES), $m-only)
+ rm -f $(foreach m, $(MODULES), $m.ko)
+ rm -f $(foreach m, $(MODULES), $m.o)