Commit d7976347 authored by Benoit Steiner's avatar Benoit Steiner
Browse files

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

parent 3d110411
...@@ -96,6 +96,7 @@ CCFLAGS += -D_GNU_SOURCE ...@@ -96,6 +96,7 @@ CCFLAGS += -D_GNU_SOURCE
CCFLAGS += -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual CCFLAGS += -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual
# Optimizations : don't compile debug versions with them # Optimizations : don't compile debug versions with them
ifeq ($(DEBUG),0)
CCFLAGS += -O6 CCFLAGS += -O6
CCFLAGS += -ffast-math -funroll-loops -fargument-noalias-global CCFLAGS += -ffast-math -funroll-loops -fargument-noalias-global
CCFLAGS += -fomit-frame-pointer CCFLAGS += -fomit-frame-pointer
...@@ -126,6 +127,9 @@ ifneq (,$(findstring sparc,$(ARCH))) ...@@ -126,6 +127,9 @@ ifneq (,$(findstring sparc,$(ARCH)))
CCFLAGS += -mhard-float CCFLAGS += -mhard-float
endif endif
# End of optimizations
endif
# #
# C compiler flags: dependancies # C compiler flags: dependancies
# #
...@@ -143,9 +147,8 @@ LCFLAGS += -Wall ...@@ -143,9 +147,8 @@ LCFLAGS += -Wall
# Additionnal debugging flags # Additionnal debugging flags
# #
# Debugging support # Debugging and profiling support
ifeq ($(DEBUG),1) ifneq ($(DEBUG),0)
CFLAGS += -g
CFLAGS += -pg CFLAGS += -pg
endif 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