From 6115a71b4c998bc0cc359766f99653dadc8ca431 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 23 Jan 2008 08:26:32 +0100 Subject: [PATCH] only use -g if debugging is requested --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a738f53..c32626d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ -COPTS=-g -O2 -CFLAGS=$(COPTS) -fPIC -Wall -pedantic -std=gnu99 -Wno-unused -Werror $(if $(DEBUG),-DDEBUG_ALL) +COPTS=-O2 +CFLAGS=$(COPTS) -fPIC -Wall -pedantic -std=gnu99 -Wno-unused -Werror +ifneq ($(DEBUG),) + CFLAGS += -g3 -DDEBUG_ALL +endif AR=ar CC=gcc -- 2.30.2