From: Felix Fietkau Date: Wed, 23 Jan 2008 07:26:32 +0000 (+0100) Subject: only use -g if debugging is requested X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6115a71b4c998bc0cc359766f99653dadc8ca431;p=oweals%2Fuci.git only use -g if debugging is requested --- 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