Migrated first 6 gists.
This commit is contained in:
12
kernel.c/Makefile
Normal file
12
kernel.c/Makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
.PHONY: all
|
||||
all: kernel-1989
|
||||
qemu-system-i386 -kernel kernel-1989 -d guest_errors
|
||||
|
||||
kernel-1989: boot.s kmain.c
|
||||
gcc -m32 -c boot.s -o boot.o
|
||||
gcc -m32 -std=c99 -c kmain.c -o kmain.o
|
||||
ld -m elf_i386 -T link.ld -o kernel-1989 boot.o kmain.o
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f *.o kernel-1989
|
||||
Reference in New Issue
Block a user