summaryrefslogtreecommitdiff
path: root/Makefile.defaults
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-12-21 16:22:54 +0000
committerVincent Sanders <vince@kyllikki.org>2014-12-21 16:22:54 +0000
commite467077a21843f030749319f0ab591d5cc67c30b (patch)
tree56be60f887c2271297764d2cc0f9dc98c4641e36 /Makefile.defaults
parent193a5c80b7afe4d3fe52947b5ba9e31b4e470361 (diff)
downloadnetsurf-e467077a21843f030749319f0ab591d5cc67c30b.tar.gz
netsurf-e467077a21843f030749319f0ab591d5cc67c30b.tar.bz2
move host based default settings to core as tehy are not frontend dependant
Diffstat (limited to 'Makefile.defaults')
-rw-r--r--Makefile.defaults31
1 files changed, 30 insertions, 1 deletions
diff --git a/Makefile.defaults b/Makefile.defaults
index 45a3a2067..b8261ff64 100644
--- a/Makefile.defaults
+++ b/Makefile.defaults
@@ -100,10 +100,39 @@ CXXFLAGS :=
# Default installation/execution prefix
PREFIX ?= /usr/local
-# Incude defaults specific to a TARGET
+
+# ----------------------------------------------------------------------------
+# Option overrides determined by HOST relating to all versions of NetSurf
+# ----------------------------------------------------------------------------
+
+# Configuration overrides for Mac OS X
+ifeq ($(HOST),macosx)
+ NETSURF_USE_LIBICONV_PLUG := NO
+ NETSURF_USE_HARU_PDF := NO
+endif
+
+# Configuration overrides for OpenBSD
+ifeq ($(HOST),OpenBSD)
+ NETSURF_USE_LIBICONV_PLUG := NO
+ NETSURF_USE_HARU_PDF := NO
+endif
+
+# Configuration overrides for FreeBSD
+ifeq ($(HOST),FreeBSD)
+ NETSURF_USE_LIBICONV_PLUG := NO
+ NETSURF_USE_HARU_PDF := NO
+endif
+
+
+# ----------------------------------------------------------------------------
+# Option overrides determined by specific TARGET
+# ----------------------------------------------------------------------------
-include $(TARGET)/Makefile.defaults
+
+# ----------------------------------------------------------------------------
# Include any local configuration
+# ----------------------------------------------------------------------------
ifneq ($(MAKEFILE_DEFAULTS_FINISHED),)
$(error Makefile.defaults has been double-included. If you did something utterly brain-dead such as copying Makefile.defaults to Makefile.config then you deserve all the pain you can imagine. Do NOT do that. Why not read the comments at the top of Makefile.defaults. They are there to help you, you numpty)
endif