14 lines
324 B
Makefile
14 lines
324 B
Makefile
|
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
|