From 7b289ca58d23a32c91500df0c43dffa27bf97ffa Mon Sep 17 00:00:00 2001 From: hev Date: Mon, 30 Sep 2024 18:53:53 +0800 Subject: [PATCH] Build: Add debug option. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 27bcaa8..6041318 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,12 @@ LINKMSG="\e[1;34mLINK\e[0m \e[1;32m%s\e[0m\n" STRIPMSG="\e[1;34mSTRIP\e[0m \e[1;32m%s\e[0m\n" CLEANMSG="\e[1;34mCLEAN\e[0m %s\n" +ENABLE_DEBUG := +ifeq ($(ENABLE_DEBUG),1) + CCFLAGS+=-g -O0 -DENABLE_DEBUG + STRIP=true +endif + ENABLE_STATIC := ifeq ($(ENABLE_STATIC),1) CCFLAGS+=-static