Commit d7976347 authored by Benoit Steiner's avatar Benoit Steiner

Le Makefile genere ne gerait pas correctement le mode debug=1

parent 3d110411
......@@ -96,6 +96,7 @@ CCFLAGS += -D_GNU_SOURCE
CCFLAGS += -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual
# Optimizations : don't compile debug versions with them
ifeq ($(DEBUG),0)
CCFLAGS += -O6
CCFLAGS += -ffast-math -funroll-loops -fargument-noalias-global
CCFLAGS += -fomit-frame-pointer
......@@ -126,6 +127,9 @@ ifneq (,$(findstring sparc,$(ARCH)))
CCFLAGS += -mhard-float
endif
# End of optimizations
endif
#
# C compiler flags: dependancies
#
......@@ -143,9 +147,8 @@ LCFLAGS += -Wall
# Additionnal debugging flags
#
# Debugging support
ifeq ($(DEBUG),1)
CFLAGS += -g
# Debugging and profiling support
ifneq ($(DEBUG),0)
CFLAGS += -pg
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment