2008-07-26 21:08:23 +04:00
|
|
|
#
|
2010-04-06 23:50:52 +04:00
|
|
|
# NetSurf default build setup
|
2008-07-26 21:08:23 +04:00
|
|
|
#
|
2008-09-17 21:10:24 +04:00
|
|
|
#
|
2010-04-06 23:50:52 +04:00
|
|
|
# | WARNING: You should NOT be editing this file.
|
|
|
|
# |
|
|
|
|
# | If you want to configure your build, create a 'Makefile.config'
|
|
|
|
# | file with 'override' statements to override the settings here.
|
|
|
|
# | Follow the example in 'Makefile.config.example'.
|
|
|
|
#
|
2009-03-27 14:11:43 +03:00
|
|
|
#
|
2009-03-27 14:23:25 +03:00
|
|
|
# This file should be treated as INVIOLATE and only altered to alter
|
|
|
|
# the defaults by a core developer. If you wish to configure the build
|
|
|
|
# of NetSurf then instead please create a file called Makefile.config
|
|
|
|
# and simply override the statements you require in that. Remember
|
|
|
|
# that Makefile.config cannot override the TARGET. That must be set on
|
|
|
|
# the commandline. i.e. 'make TARGET=framebuffer' However
|
|
|
|
# Makefile.config can use the TARGET variable to control what to set
|
|
|
|
# the configuration options to.
|
2009-03-27 14:11:43 +03:00
|
|
|
#
|
2010-04-06 23:50:52 +04:00
|
|
|
# Some of these options support an 'AUTO' option, as well as YES and NO.
|
|
|
|
# When an option is set to AUTO, the Makefile will attempt to detect if that
|
|
|
|
# feature is available, enabling it if possible.
|
|
|
|
#
|
|
|
|
# Options marked "highly recommended" have a severe impact on NetSurf's
|
|
|
|
# use as a web browser and should be set to YES unless there is a particularly
|
|
|
|
# good reason not to.
|
|
|
|
#
|
2008-07-29 00:56:24 +04:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Options relating to all versions of NetSurf
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
2016-08-13 15:09:39 +03:00
|
|
|
# Enable NetSurf's use of libcurl for fetching over http(s)
|
2016-09-20 00:02:51 +03:00
|
|
|
# Valid options: YES, NO (highly recommended)
|
2016-08-13 15:09:39 +03:00
|
|
|
NETSURF_USE_CURL := YES
|
|
|
|
|
|
|
|
# Enable NetSurf's use of openssl for fetching over https
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_USE_OPENSSL := YES
|
|
|
|
|
2008-09-17 00:21:01 +04:00
|
|
|
# Enable NetSurf's use of libnsbmp for displaying BMPs and ICOs
|
2008-07-29 00:56:24 +04:00
|
|
|
# Valid options: YES, NO
|
2008-07-29 03:16:59 +04:00
|
|
|
NETSURF_USE_BMP := YES
|
2008-07-29 00:56:24 +04:00
|
|
|
|
2008-09-17 00:21:01 +04:00
|
|
|
# Enable NetSurf's use of libnsgif for displaying GIFs
|
2008-09-17 21:10:24 +04:00
|
|
|
# Valid options: YES, NO (highly recommended)
|
2008-07-29 03:16:59 +04:00
|
|
|
NETSURF_USE_GIF := YES
|
2008-07-29 00:56:24 +04:00
|
|
|
|
2008-09-17 00:21:01 +04:00
|
|
|
# Enable NetSurf's use of libjpeg for displaying JPEGs
|
2008-09-17 21:10:24 +04:00
|
|
|
# Valid options: YES, NO (highly recommended)
|
2008-07-29 03:16:59 +04:00
|
|
|
NETSURF_USE_JPEG := YES
|
2008-07-29 00:56:24 +04:00
|
|
|
|
2014-01-04 21:07:11 +04:00
|
|
|
# Enable NetSurf's use of libpng for displaying PNGs.
|
|
|
|
# Valid options: YES, NO (highly recommended)
|
2009-04-21 18:09:53 +04:00
|
|
|
NETSURF_USE_PNG := YES
|
2008-09-17 21:10:24 +04:00
|
|
|
|
2011-12-06 02:33:02 +04:00
|
|
|
# Enable NetSurf's use of gstreamer for displaying videos
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_USE_VIDEO := NO
|
|
|
|
|
2016-09-20 00:02:51 +03:00
|
|
|
# Enable NetSurf's use of duktape for javascript
|
|
|
|
# Valid options: YES, NO
|
2015-08-09 14:27:28 +03:00
|
|
|
NETSURF_USE_DUKTAPE := YES
|
2012-01-02 01:42:38 +04:00
|
|
|
|
2008-09-17 00:21:01 +04:00
|
|
|
# Enable NetSurf's use of libharu for PDF export and GTK printing support.
|
|
|
|
# There is no auto-detection available for this, as it does not have a
|
|
|
|
# pkg-config file.
|
2008-07-29 00:56:24 +04:00
|
|
|
# Valid options: YES, NO
|
2010-05-01 15:15:00 +04:00
|
|
|
NETSURF_USE_HARU_PDF := NO
|
2008-07-29 12:57:51 +04:00
|
|
|
|
2016-09-20 23:45:35 +03:00
|
|
|
# Enable the use of the Public suffix library to detect supercookies
|
|
|
|
NETSURF_USE_NSPSL := AUTO
|
|
|
|
|
2008-07-29 12:57:51 +04:00
|
|
|
# Enable stripping the NetSurf binary
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_STRIP_BINARY := NO
|
2008-07-26 21:08:23 +04:00
|
|
|
|
2008-07-29 19:10:31 +04:00
|
|
|
# Template used for constructing the User Agent: string. The first two
|
2013-01-14 17:59:07 +04:00
|
|
|
# replacements are major/minor version, next is OS.
|
2008-07-29 19:10:31 +04:00
|
|
|
# Please don't be tempted to mention Mozilla here! Let's let that lie die.
|
2013-01-14 17:59:07 +04:00
|
|
|
NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (%s)"
|
2008-07-29 19:10:31 +04:00
|
|
|
|
2008-09-17 00:21:01 +04:00
|
|
|
# Default home page, if one is not defined by the user. Note that this
|
|
|
|
# option does not apply to the RISC OS version, as it has its own local
|
|
|
|
# home page, and it can be changed by editing the end of gui_init2() in
|
|
|
|
# riscos/gui.c
|
2012-07-21 16:13:57 +04:00
|
|
|
NETSURF_HOMEPAGE := "about:welcome"
|
2008-07-29 19:10:31 +04:00
|
|
|
|
2008-08-09 03:47:11 +04:00
|
|
|
# Force using glibc internal iconv implementation instead of external libiconv
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_USE_LIBICONV_PLUG := YES
|
|
|
|
|
2014-04-10 14:56:15 +04:00
|
|
|
# Enable building the source object cache filesystem based backing store.
|
|
|
|
# implementation.
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_FS_BACKING_STORE := NO
|
|
|
|
|
2008-08-15 13:49:10 +04:00
|
|
|
# Initial CFLAGS. Optimisation level etc. tend to be target specific.
|
2012-12-20 19:27:07 +04:00
|
|
|
CFLAGS :=
|
2008-08-13 19:31:41 +04:00
|
|
|
|
2014-09-05 19:32:19 +04:00
|
|
|
# Initial CXXFLAGS. Optimisation level etc. tend to be target specific.
|
|
|
|
CXXFLAGS :=
|
|
|
|
|
2009-04-22 02:22:59 +04:00
|
|
|
# Default installation/execution prefix
|
2010-06-13 14:58:13 +04:00
|
|
|
PREFIX ?= /usr/local
|
2009-04-22 02:22:59 +04:00
|
|
|
|
2014-12-21 19:22:54 +03:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# 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
|
|
|
|
# ----------------------------------------------------------------------------
|
2016-05-06 00:28:51 +03:00
|
|
|
-include frontends/$(TARGET)/Makefile.defaults
|
2011-01-19 04:36:21 +03:00
|
|
|
|
2014-12-21 19:22:54 +03:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
2017-08-31 01:27:28 +03:00
|
|
|
# Detect double inclusion
|
2014-12-21 19:22:54 +03:00
|
|
|
# ----------------------------------------------------------------------------
|
2011-03-13 14:21:31 +03:00
|
|
|
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
|
|
|
|
MAKEFILE_DEFAULTS_FINISHED=yes
|