summaryrefslogtreecommitdiffstats
path: root/kernel/tools/lguest/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tools/lguest/Makefile')
-rw-r--r--kernel/tools/lguest/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/tools/lguest/Makefile b/kernel/tools/lguest/Makefile
new file mode 100644
index 000000000..a107b5e4d
--- /dev/null
+++ b/kernel/tools/lguest/Makefile
@@ -0,0 +1,13 @@
+# This creates the demonstration utility "lguest" which runs a Linux guest.
+CFLAGS:=-m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -U_FORTIFY_SOURCE -Iinclude
+
+all: lguest
+
+include/linux/virtio_types.h: ../../include/uapi/linux/virtio_types.h
+ mkdir -p include/linux 2>&1 || true
+ ln -sf ../../../../include/uapi/linux/virtio_types.h $@
+
+lguest: include/linux/virtio_types.h
+
+clean:
+ rm -f lguest