Introducing LunaBuild to the build flow (#36)
[lunaix-os.git] / lunaix-os / arch / i386 / LBuild
diff --git a/lunaix-os/arch/i386/LBuild b/lunaix-os/arch/i386/LBuild
new file mode 100644 (file)
index 0000000..d4c9a96
--- /dev/null
@@ -0,0 +1,44 @@
+use("hal")
+
+sources([
+    "exceptions/interrupts.c",
+    "exceptions/i386_isrdef.c",
+    "exceptions/intr_routines.c",
+    "exceptions/i386_isrm.c",
+    
+    "exceptions/interrupt.S",
+    "exceptions/intrhnds.S",
+])
+
+sources([
+    "boot/mb_parser.c",
+    "boot/kpt_setup.c",
+    "boot/init32.c",
+
+    "boot/boot.S",
+    "boot/prologue.S"
+])
+
+sources([
+    "mm/fault.c",
+    "mm/tlb.c",
+    "mm/pmm.c",
+    "mm/gdt.c",
+    "mm/vmutils.c"
+])
+
+sources([
+    "klib/fast_crc.c",
+    "klib/fast_str.c",
+    "hart.c",
+    "arch.c",
+    "gdbstub.c",
+    "trace.c",
+
+    "syscall.S",
+    "failsafe.S"
+])
+
+headers([
+    "includes"
+])
\ No newline at end of file