adds some debug flags for GDB support

This commit is contained in:
2025-06-04 17:34:54 -04:00
parent e471564f89
commit 87e5e06142
3 changed files with 67 additions and 32 deletions

View File

@ -2,7 +2,10 @@
# or maybe add it to a bash script instead? im not sure
CC = i686-elf-gcc
CFLAGS = -m32 -ffreestanding -Wall -Wextra -Werror -Wpedantic --sysroot=$(PWD)/sysroot -isystem=/usr/include -Iinclude -MD -D__TESTING__
DEBUG_FLAGS = -D__TESTING__ -g
CFLAGS = -m32 -ffreestanding -Wall -Wextra -Werror -Wpedantic --sysroot=$(PWD)/sysroot -isystem=/usr/include -Iinclude -MD $(DEBUG_FLAGS)
AS = nasm
ASFLAGS = -f elf