]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
move debug to extradbeug, add a "debug" build config that's less debuggy (just -g...
authorrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Wed, 17 Sep 2008 11:10:47 +0000 (11:10 +0000)
committerrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Wed, 17 Sep 2008 11:10:47 +0000 (11:10 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@79 61c419a2-8eb2-4b30-bcec-8cead039b335

Makefile

index a9f34f0b9b7645708889b55265b2834bf7a228ef..d5403092a1d0710f650e4085ac47c79ddadaae94 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -82,7 +82,21 @@ LIBS_COMMON =
 CXXFLAGS_COMMON = -Wno-non-virtual-dtor -Wreorder -fno-exceptions -fno-rtti
 
 ifeq ($(BUILD),debug)
+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 -O if no -O flag is in $(CFLAGS)
+endif
+       CPPFLAGS_COMMON +=
+       LDFLAGS_COMMON +=
+else ifeq ($(BUILD),extradebug)
+ifeq ($(findstring $(CFLAGS),-g),)
        CFLAGS_COMMON += -g3
+       # only add -g3 if no -g flag is in $(CFLAGS)
+endif
        CPPFLAGS_COMMON += -D_DEBUG
        LDFLAGS_COMMON +=
 else ifeq ($(BUILD),release)
@@ -794,6 +808,13 @@ install/plugins/ufoaiplug.$(DLL): \
        contrib/ufoaiplug/ufoai_level.o \
        contrib/ufoaiplug/ufoai.o \
 
+#install/plugins/bkgrnd2d.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
+#install/plugins/bkgrnd2d.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
+#install/plugins/bkgrnd2d.$(DLL): \
+#      contrib/bkgrnd2d/bkgrnd2d.o \
+#      contrib/bkgrnd2d/dialog.o \
+#      contrib/bkgrnd2d/plugin.o \
+
 install/heretic2/h2data.$(EXE): LIBS_EXTRA := $(LIBS_XML)
 install/heretic2/h2data.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) -Itools/quake2/qdata_heretic2/common -Itools/quake2/qdata_heretic2/qcommon -Itools/quake2/qdata_heretic2 -Itools/quake2/common -Ilibs -Iinclude
 install/heretic2/h2data.$(EXE): \