diff options
| author | Clément Sibille <claymeuns@protonmail.com> | 2021-10-04 13:30:31 +0200 |
|---|---|---|
| committer | Clément Sibille <claymeuns@protonmail.com> | 2021-10-04 13:30:31 +0200 |
| commit | 25a24b8b167a7cb28c622039ea30e4afd166cd83 (patch) | |
| tree | 811a6a0e46234ac6fc7078030b0221db8d85f5b6 /Makefile | |
| parent | 84ac89b379da880468d2bb1396eb4773b48b6a92 (diff) | |
Make kernel print hello world using the VGA text buffer
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cb64d5e --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +all: target/kernel.o + +run: target/kernel.o + qemu-system-i386 -kernel $< -machine type=pc-i440fx-3.1 + +target/boot.o: boot/boot.S + mkdir -p target + nasm -felf32 $< -o $@ + +target/kernel.o: target/boot.o target/i686-lisibleos/release/libkernel.a + mkdir -p target + ld -m elf_i386 -n -T boot/linker.ld -o $@ $^ + +target/i686-lisibleos/release/libkernel.a: + mkdir -p target + xargo build -p kernel --target i686-lisibleos --release + +clean: + xargo clean --target i686-lisibleos + rm target/kernel.o target/boot.o target/i686-lisibleos/debug/libkernel.a + rm target/kernel.o target/boot.o target/i686-lisibleos/release/libkernel.a |
