diff options
Diffstat (limited to '.build.mk')
-rw-r--r-- | .build.mk | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -3,27 +3,32 @@ # All preprocessor flags - enable using the custom config group below ALL_PREPROCESSOR_FLAGS = \ DEBUG_ALLOC \ + DEBUG_SYSCALLS \ DEBUG_SCHEDULER # All config options ALL_CONFIGS = \ + CONFIG_STRIP \ CONFIG_CACHE \ CONFIG_EXTRA_CFLAGS \ CONFIG_USER_PIE +# Set ccache globally +CONFIG_CACHE ?= ccache + # Specific config groups ifeq ($(CONFIG), debug) CONFIG_OPTIMIZATION ?= -Ofast CONFIG_EXTRA_CFLAGS ?= -Wno-error -ggdb3 -s -fsanitize=undefined -fstack-protector-all - CONFIG_CACHE ?= ccache else ifeq ($(CONFIG), dev) CONFIG_OPTIMIZATION ?= -finline -finline-functions -Ofast - CONFIG_CACHE ?= ccache else ifeq ($(CONFIG), release) CONFIG_OPTIMIZATION ?= -finline -finline-functions -Ofast CONFIG_STRIP ?= true - CONFIG_CACHE ?= ccache +else ifeq ($(CONFIG), experimental) + CONFIG_USER_PIE ?= true else ifeq ($(CONFIG), custom) DEBUG_ALLOC ?= true + DEBUG_SYSCALLS ?= true DEBUG_SCHEDULER ?= true endif |