first pass makefile not really checking its validity

This commit is contained in:
Medium Fries 2018-12-03 19:12:46 -08:00
parent f857b4bcd3
commit 0c5d771766

27
makefile Normal file
View File

@ -0,0 +1,27 @@
ASM=nasm
CC=gcc
LINK=ld
ISO=genisoimage
# build our loader
loader: loader.asm
# loading the kernel form loader.asm
# creates loader.o
$(ASM) -f elf32 loader.asm
# link the kernel to our loader
link: loader.o
$(LINK) -T link.ld -melf_i386 loader.o -o kernel.elf
# build the iso file into our target directory
iso:
$(ISO) -R \
-b boot/grub/stage2_eltorito \
-no-emul-boot \
-boot-load-size 4 \
-A os \
-input-charset utf8 \
-quiet \
-boot-info-table \
-o os.iso \
iso