move stuff aroundd

This commit is contained in:
nub31
2025-08-23 14:43:00 +02:00
parent e2dcdbeb53
commit 3b5e08951c
11 changed files with 43 additions and 32 deletions

19
src/kernel/makefile Normal file
View File

@@ -0,0 +1,19 @@
CC = i386-elf-gcc -ffreestanding -m32
kernel.bin: entry.o kernel.o mem.o print.o
i386-elf-ld -o kernel.bin -Ttext 0x1000 entry.o kernel.o mem.o print.o --oformat binary
entry.o: entry.asm
nasm -f elf -o entry.o entry.asm
kernel.o: kernel.c
$(CC) -c -o kernel.o kernel.c
mem.o: mem.c
$(CC) -c -o mem.o mem.c
print.o: print.c
$(CC) -c -o print.o print.c
clean:
@rm *.o *.bin 2>/dev/null || true