aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 95a42ad..45c8b40 100644
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,8 @@ DO != echo -n > deps.mk
# this could be done better
DEBUGFLAGS != [ $(RELEASE) ] \
- && echo "-flto -O2 -DNDEBUG" \
- || echo "-O0 -ggdb3 -DDEBUG"
+ && echo "-flto -O2 -g -DNDEBUG" \
+ || echo "-O0 -g -DDEBUG"
CFLAGS = -ffreestanding -nostdlib -std=c17 -Wall -Wextra -Wvla
DEPFLAGS = -MT $@ -MMD -MP -MF $@.d
@@ -11,6 +11,10 @@ LINTFLAGS = -fsyntax-only
PREPROCESS = -E
LDFLAGS = -static-libgcc -lgcc
+BUILD = build
+ARCH_BUILD = $(BUILD)/arch/$(ARCH)
+ARCH_SOURCE = arch/$(ARCH)
+
all: apos.bin
# default values, overwrite if/when needed