feat(build)!: add conditions checking for X11 vs Wayland on linux in config.mk and added a DEBUG_BUILD make option which enables debug options instead of having them by default

Signed-off-by: Lorenzo Torres <lorenzo@sagittarius-a.org>
This commit is contained in:
h3ll 2025-11-03 19:26:56 +02:00 committed by Lorenzo Torres
parent aebe71fec2
commit b9a8fb3722
2 changed files with 20 additions and 8 deletions

View file

@ -1,18 +1,22 @@
# SPDX-License-Identifier: BSD-3-Clause
include config.mk
ifeq (${DEBUG_BUILD},1)
CFLAGS += -ggdb -fsanitize=address,undefined -DDEBUG
endif
SRC:=\
topaz.c\
linear.c\
core/arena.c\
core/vector.c
core/vector.c\
ifeq (${BACKEND},gl)
ifeq (${GRAPHICS_BACKEND},gl)
SRC += gl/gl.c\
gl/platform.c
gl/platform.c\
gl/renderer.c
endif
ifeq (${BACKEND},vk)
ifeq (${GRAPHICS_BACKEND},vk)
SRC += vk/platform.c\
vk/renderer.c\
vk/instance.c\