aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-04-29 17:38:41 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-04-29 17:38:41 +0300
commit9273c16434316a8ab60dc78ee65a03e68031203a (patch)
tree41754de4b7c459fc07e20189948c94a0e2cab966 /Makefile
parent105f3d0dab75f669d1fc404c06b73289b343591c (diff)
downloadkmi-9273c16434316a8ab60dc78ee65a03e68031203a.tar.gz
kmi-9273c16434316a8ab60dc78ee65a03e68031203a.zip
continue building base for irq handling
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