From 31f52081142d18cd75cdb377448a1e9b9814683f Mon Sep 17 00:00:00 2001 From: IoIxD Date: Wed, 1 Oct 2025 21:50:47 +0000 Subject: [PATCH] ok instead of adding -g to the makefile and forgetting I'm just gonna make it so you can make with debug symbols using 'DEBUG=1 make' git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@114 b9cfdab3-6d41-4d17-bbe4-086880011989 --- GNUmakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 9a8473c..6bf2393 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -3,9 +3,12 @@ TARGET = $(shell uname -s) CC = gcc -CFLAGS = -Wall -Wextra -Iinclude -g +CFLAGS = -Wall -Wextra -Iinclude LDFLAGS = LIBS = +ifeq (${DEBUG},1) +CFLAGS += -g +endif L_CFLAGS = $(CFLAGS) -fPIC -D_MILSKO L_LDFLAGS = $(LDFLAGS)