X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B?a=blobdiff_plain;f=kernel%2FMakefile;h=8c9b27bedfab7082cb555d45856ed70df7cf30fa;hb=99a030764f8e82f362926b77d01e10711774fb32;hp=a872ca6dac43ebe77470a37c2637fdd6b04f5aba;hpb=9603a4f4c7bfdf52bfbea6ead7b98e897a21f644;p=nameless-os.git diff --git a/kernel/Makefile b/kernel/Makefile index a872ca6..8c9b27b 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -4,8 +4,10 @@ include drivers/Makefile include arch/x86/Makefile ASFLAGS_BASE = -f elf -g dwarf2 -CFLAGS_BASE = -fgnu89-inline -ffreestanding -nostdlib -Iinclude -Iinclude/arch/x86 -g -DGIT_COMMIT=\"$(GIT_REV)\" -LDFLAGS_BASE = -ffreestanding -nostdlib -lgcc -g +CFLAGS_BASE = -fgnu89-inline -ffreestanding -nostdlib -Iinclude \ + -Iinclude/arch/x86 -g -DGIT_COMMIT=\"$(GIT_REV)\" \ + -O2 -flto +LDFLAGS_BASE = -ffreestanding -nostdlib -lgcc -g -flto kernel.elf kernel.dbg: $(KERNEL_OBJ) $(CC) $(LDFLAGS_BASE) $(LDFLAGS) -T linker.ld $^ -o $@