diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..050746b --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +SRC=$(wildcard src/*.c) +BOOT=$(wildcard boot/*.s) +INCLUDE=include/ +FLAGS=-g -Wall -Wextra -Ffreestanding -m32 +BIN=boot.img + +all: boot + $(CC) $(FLAGS) $(SRC) -I $(INCLUDE) -o $(BIN) + +boot: + nasm -Fl32 + +install: all + ./installgrub.sh + diff --git a/boot/boot.s b/boot/boot.s new file mode 100644 index 0000000..5d24aae --- /dev/null +++ b/boot/boot.s @@ -0,0 +1,14 @@ +mov ah, 0x0e +mov al, 'H' +int 0x10 +mov al, 'E' +int 0x10 +mov al, 'Y' +int 0x10 + + +cli +hlt + +times 510 - ($ - $$) db 0 +dw 0xaa55