old-MTGos-old/kernel.settings
Morten Delenk 0e85f6616e Did a lot of things to the x86_64 build. still won't boot, though.
Crashes in PMM2. refuse to debug after ~2 days of failed debugging.
Might do tommorrow. might do it today. who knows.
2016-06-21 15:13:41 +02:00

22 lines
359 B
Text

arch = x86_64
MODE = debug
#MODE = release # enables optimization
export PATH := $(HOME)/opt/bin:$(PATH)
ARCHFLAGS =
ifeq ($(arch),x86)
PREFIX = i686-elf-
else
ifeq ($(arch),x86_64)
PREFIX = x86_64-elf-
ARCHFLAGS =
endif
endif
ifeq ($(MODE),debug)
CFLAGS := -g3 -DDEBUG
CPPFLAGS := -g3 -DDEBUG
else
CFLAGS := -O2
CPPFLAGS := -O2
endif