]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - Makefile
fix deluxemap when lit from the wrong side as good as possible (by ignoring the delux...
[xonotic/netradiant.git] / Makefile
index 29531309a8104c5293e7955003749b8f7e21efd7..7bd232ccc2ecaf5632905af08c9cf86c79b89d49 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -105,10 +105,13 @@ endif
        CPPFLAGS_COMMON += -D_DEBUG
        LDFLAGS_COMMON +=
 else ifeq ($(BUILD),profile)
+ifeq ($(findstring $(CFLAGS),-g),)
+       CFLAGS_COMMON += -g
+       # only add -g if no -g flag is in $(CFLAGS)
+endif
 ifeq ($(findstring $(CFLAGS),-O),)
        CFLAGS_COMMON += -O
-       # only add -O3 if no -O flag is in $(CFLAGS)
-       # to allow overriding the optimizations
+       # only add -O if no -O flag is in $(CFLAGS)
 endif
        CFLAGS_COMMON += -pg
        CPPFLAGS_COMMON +=