-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.
+
--- /dev/null
+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"
+ }
+}
+