aboutsummaryrefslogtreecommitdiff
path: root/.old/Makefile
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-02-23 23:18:48 +0100
committerczjstmax <jstmaxlol@disroot.org>2026-02-23 23:18:48 +0100
commit2420e3f52b62580af9cdd661fb441733e437daf9 (patch)
treea2854d70e7297e9bff879c5dc358dfb95d263fab /.old/Makefile
parent6fc0fd2fd64388e32c4ec1cefa2ad8e1e43fdb5a (diff)
lots of changes. restructured repository. switched to limine.
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
Diffstat (limited to '.old/Makefile')
-rw-r--r--.old/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/.old/Makefile b/.old/Makefile
new file mode 100644
index 0000000..9e63e3f
--- /dev/null
+++ b/.old/Makefile
@@ -0,0 +1,17 @@
+all:
+ # assemble bootloader
+ nasm -f bin src/boot.asm -o build/boot.bin
+ nasm -f elf32 src/boot_s2.asm -o build/boot_s2.o
+ # compile kernel
+ gcc -m32 -ffreestanding -nostdlib -c src/krn/mkern.c -o build/mkernel.o
+ # link
+ ld -m elf_i386 -T src/linker.ld -nostdlib -o build/s2.elf build/boot_s2.o build/mkernel.o
+ objcopy -O binary build/s2.elf build/s2.bin
+ # make .img
+ cat build/boot.bin build/s2.bin > build/mullos.img
+ # qemu test
+ qemu-system-x86_64 -drive format=raw,file=build/mullos.img
+
+clean:
+ rm -vf build/*
+