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
CCFLAGS += -mhard-float
endif
+# End of optimizations
+endif
+
#
# C compiler flags: dependancies
#
# Additionnal debugging flags
#
-# Debugging support
-ifeq ($(DEBUG),1)
-CFLAGS += -g
+# Debugging and profiling support
+ifneq ($(DEBUG),0)
CFLAGS += -pg
endif