kernel/Makefile

14 lines
324 B
Makefile
Raw Normal View History

2023-06-12 11:46:47 +03:00
all: kernel-i386.elf
clean:
rm *.o *.elf
start32.o: start32.asm
fasm start32.asm
kernel.o: kernel.c
../tinycc/tcc -m32 -c kernel.c
kernel-i386.elf: kernel.o start32.o
../tinycc/tcc -m32 -nostdlib -Wl,-Ttext,0x100000 start32.o kernel.o -o kernel-i386.elf
qemu: kernel-i386.elf
qemu-system-i386 -kernel kernel-i386.elf