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
This commit is contained in:
Jean Delvare committed 2003-11-29 13:13:54 +00:00
1 parent f2fe6cbd68
commit bd0840096c
1 file changed
+4 -1
+4 -1
View File
@@ -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)