]> git.sesse.net Git - vlc/commitdiff
Le Makefile genere ne gerait pas correctement le mode debug=1
authorBenoit Steiner <benny@videolan.org>
Sun, 18 Jun 2000 08:14:25 +0000 (08:14 +0000)
committerBenoit Steiner <benny@videolan.org>
Sun, 18 Jun 2000 08:14:25 +0000 (08:14 +0000)
Makefile.in

index 8ba410c003b71cf4e0fa87e62978cbc939c85812..1bd4c11a871e251a03896d66a473aae272532373 100644 (file)
@@ -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