From c0a8113ba0b7cd6984cc685ec63f79bef3bc9899 Mon Sep 17 00:00:00 2001 From: Aleksa Vuckovic Date: Tue, 2 Aug 2022 18:59:51 +0200 Subject: framebuffer multiboot2 --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b16507e..db39540 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,9 @@ OBJDUMP = $(ARCH)objcopy OBJCOPY = $(ARCH)objdump -CFLAGS = -Wall -Werror -Wno-error=infinite-recursion -O -fno-omit-frame-pointer -ggdb -CFLAGS += -MD +CFLAGS = -Wall -Werror -Wno-error=infinite-recursion -O -fno-omit-frame-pointer +# -mgeneral-regs-only disables SIMD instructions +CFLAGS += -MD -O3 -mgeneral-regs-only CFLAGS += -ffreestanding -fno-common -nostdlib CFLAGS += -I. CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector) @@ -22,7 +23,7 @@ OBJS = \ $K/boot64.o \ $K/main.o \ -kernel.iso: kernel.bin +kernel.iso: kernel.bin $K/grub.cfg mkdir -p isodir/boot/grub cp kernel.bin isodir/boot/kernel.bin cp $K/grub.cfg isodir/boot/grub/grub.cfg -- cgit v1.2.3