Add the pc86emu skeleton.
authorDavid Given <dg@cowlark.com>
Sun, 3 Jun 2018 15:24:21 +0000 (08:24 -0700)
committerDavid Given <dg@cowlark.com>
Sun, 3 Jun 2018 15:24:21 +0000 (08:24 -0700)
plat/pc86/emu/README.md
plat/pc86/emu/build.lua [new file with mode: 0644]
plat/pc86/emu/main.c [new file with mode: 0644]

index 85ffd05..d63cb02 100644 (file)
@@ -1 +1,4 @@
-The x86emu directory contains a copy of the xorg 8086 emulation library from\rthe X server. It's distributable under the MIT/X11 license, and so is\rcompatible with the ACK.\r\r
\ No newline at end of file
+The x86emu directory contains a copy of the xorg 8086 emulation library from
+the X server. It's distributable under the MIT/X11 license, and so is
+compatible with the ACK.
+
diff --git a/plat/pc86/emu/build.lua b/plat/pc86/emu/build.lua
new file mode 100644 (file)
index 0000000..ee94bea
--- /dev/null
@@ -0,0 +1,19 @@
+clibrary {
+       name = "x86emu",
+       vars = {
+               ["+cflags"] = {"-Iplat/pc86/emu/x86emu"}
+       },
+       srcs = {"./x86emu/*.c"}
+}
+
+cprogram {
+       name = "pc86emu",
+       srcs = {"./main.c"},
+       vars = {
+               ["+cflags"] = {"-Iplat/pc86/emu/x86emu"}
+       },
+       deps = {
+               "+x86emu"
+       }
+}
+
diff --git a/plat/pc86/emu/main.c b/plat/pc86/emu/main.c
new file mode 100644 (file)
index 0000000..70ec1d9
--- /dev/null
@@ -0,0 +1,9 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <stdint.h>
+
+int main(int argc, const char* argv[])
+{
+       return 1;
+}
+