summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-09-05 16:01:44 +0100
committerVincent Sanders <vince@kyllikki.org>2014-09-05 16:01:44 +0100
commit4f530a3f8fff035006e2c9afbcfd233cd38a499a (patch)
treedb356c0ef1c02bf0476213e6927bd0e579c4a62d /gtk
parentef5b2340809ca61b4ffd87d864fec8f40ea43120 (diff)
downloadnetsurf-4f530a3f8fff035006e2c9afbcfd233cd38a499a.tar.gz
netsurf-4f530a3f8fff035006e2c9afbcfd233cd38a499a.tar.bz2
Pull warning flags out into variables that can be overriden seperately for C and C++
Diffstat (limited to 'gtk')
-rw-r--r--gtk/Makefile.target6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/Makefile.target b/gtk/Makefile.target
index 513cb22de..05865ff74 100644
--- a/gtk/Makefile.target
+++ b/gtk/Makefile.target
@@ -44,14 +44,13 @@ GTKDEPFLAGS := -DG_DISABLE_SINGLE_INCLUDES \
# libsexy currently means we cannot enable this
# -DGDK_DISABLE_DEPRECATED
-GTKCFLAGS := -std=c99 -Dgtk -Dnsgtk \
+GTKCFLAGS := -std=c99 -Dgtk -Dnsgtk -g \
$(GTKDEPFLAGS) \
-D_BSD_SOURCE \
-D_XOPEN_SOURCE=600 \
-D_POSIX_C_SOURCE=200809L \
-D_NETBSD_SOURCE \
- -DGTK_RESPATH=\"$(NETSURF_GTK_RESOURCES)\" \
- $(WARNFLAGS) -g
+ -DGTK_RESPATH=\"$(NETSURF_GTK_RESOURCES)\"
# non optional pkg-configed libs
$(eval $(call pkg_config_find_and_add,libcss,CSS))
@@ -63,7 +62,6 @@ $(eval $(call pkg_config_find_and_add,gtk+-$(NETSURF_GTK_MAJOR).0,GTK-$(NETSURF_
$(eval $(call pkg_config_find_and_add,gthread-2.0,GThread2))
$(eval $(call pkg_config_find_and_add,gmodule-2.0,GModule2))
-
CFLAGS += $(GTKCFLAGS)
LDFLAGS += -lm