From bd0840096cc53c5e15847cb2c4336807bbb5d75f Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 29 Nov 2003 13:13:54 +0000 Subject: [PATCH] Compile with "-g -O" instead of "-O2" when DEBUG is set to 1. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2103 7894878c-1315-0410-8ee3-d5d059ff63e0 --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9ed3852a..bf9d6295 100644 --- a/Makefile +++ b/Makefile @@ -183,10 +183,13 @@ SED := sed # ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries). # LIBCPPFLAGS/LIBCFLAGS are for shared library objects. ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -ALL_CFLAGS := -Wall -O2 +ALL_CFLAGS := -Wall ifeq ($(DEBUG),1) ALL_CPPFLAGS += -DDEBUG +ALL_CFLAGS += -O -g +else +ALL_CFLAGS += -O2 endif ifeq ($(WARN),1)