summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4406ac9..68e0301 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,11 @@
TARGET?=virt
+BUILD?=debug
CROSS_COMPILE?=riscv64-unknown-elf-
GDB_PORT?=1234
CFLAGS=-nostdlib -ffreestanding -mcmodel=medany -I${.CURDIR}/include
+.if ${BUILD}==debug
+CFLAGS+=-ggdb
+.endif
.export
sys: ${SRC} lib/build/libc.a