From dea248b824f452352f49365b154b970eaf55bdbc Mon Sep 17 00:00:00 2001 From: Utkarsh Verma Date: Tue, 19 Mar 2024 06:52:21 +0530 Subject: [PATCH] build: Add DEBUG option --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index d7d7455..635673e 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ BUILD_DIR := build SRC_DIR := src INC_DIR := include +DEBUG := 0 VERBOSE := 0 LIBS := xcb-atom @@ -26,6 +27,10 @@ ifeq ($(VERBOSE), 0) Q := @ endif +ifeq ($(DEBUG), 1) + CFLAGS += -g +endif + all: $(BUILD_DIR)/$(BIN) $(BUILD_DIR)/%.o: $(SRC_DIR)/%.c config.h