#!/usr/bin/make

all:
	gcc -m64 -I. -nostdlib -O -W -Wall -g -c  boot.S
	gcc -m64 -I. -fno-builtin -nostdinc -O -W -Wall -g -nostdlib -c kernel.c
	gcc -m64 -fno-builtin -nostdinc -O -W -Wall -g -nostdlib -Wl,-N -Wl,-Ttext -Wl,100000 -Wl,--build-id=none -o kernel boot.o kernel.o  

boot.o: multiboot2.h
kernel.o: multiboot2.h stdarg.h

clean:
	rm -f kernel *.o
