summaryrefslogtreecommitdiff
path: root/Makefile.config
blob: 8c5946e2a459ab74958a4947c85b08e9db2f7a9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
#
# NetSurf build configuration
#
# Some of these options support an 'AUTO' option, as well as YES and NO.  If
# AUTO is available, the Makefile will attempt to detect if that feature is
# available when such is used.

# ----------------------------------------------------------------------------
# Options relating to all versions of NetSurf
# ----------------------------------------------------------------------------

# Enable NetSurf's built-in BMP support
# Valid options: YES, NO
NETSURF_USE_BMP := YES

# Enable NetSurf's built-in GIF support
# Valid options: YES, NO
NETSURF_USE_GIF := YES

# Enable NetSurf's use of IJG's libjpeg
# Valid options: YES, NO
NETSURF_USE_JPEG := YES

# Enable NetSurf's use of libmng for displaying MNGs and PNGs
# Valid options: YES, NO
NETSURF_USE_MNG := YES

# Use libharu to enable PDF export and GTK printing support.  There is no
# auto-detection available for this, as it does not have a pkg-config file.
# Valid options: YES, NO
NETSURF_USE_HARU_PDF := YES

# Enable stripping the NetSurf binary
# Valid options: YES, NO
NETSURF_STRIP_BINARY := NO

# Template used for constructing the User Agent: string.  The first two
# replacements are major/minor version, second two are OS and architecture.
# Please don't be tempted to mention Mozilla here!  Let's let that lie die.
NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (%s; %s)"

# Default home page if one is not defined.  Note that this 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
NETSURF_HOMEPAGE := "http://www.netsurf-browser.org/welcome/"

# Force using glibc internal iconv implementation instead of external libiconv
# Valid options: YES, NO
NETSURF_USE_LIBICONV_PLUG := YES

# Initial CFLAGS. Optimisation level etc. tend to be target specific.
CFLAGS := 

# ----------------------------------------------------------------------------
# RISC OS-specific options
# ----------------------------------------------------------------------------
ifeq ($(TARGET),riscos)

  # Enable using Hubbub to parse HTML rather than libxml2
  # Valid options: YES, NO
  NETSURF_USE_HUBBUB := YES

  # Use James Bursa's libsvgtiny for rendering SVG images
  # Valid options: YES, NO
  NETSURF_USE_NSSVG := YES

  # Use pencil to enable export to Drawfile
  # Valid options: YES, NO
  NETSURF_USE_DRAW := YES

  # Enable NetSurf's RISC OS Sprite support via Tinct
  # Valid options: YES, NO
  NETSURF_USE_SPRITE := YES

  # Enable NetSurf's ArtWorks support via AWRender
  # Valid options: YES, NO
  NETSURF_USE_ARTWORKS := YES

  # Enable support for the Acorn plugin protocol
  # Valid options: YES, NO
  NETSURF_USE_PLUGINS := NO

  # Optimisation levels
  CFLAGS += -O -Wuninitialized

endif

# ----------------------------------------------------------------------------
# GTK-specific options
# ----------------------------------------------------------------------------
ifeq ($(TARGET),gtk)

  # Where to search for NetSurf's resources after looking in ~/.netsurf and
  # $NETSURFRES.  It must have a trailing /
  NETSURF_GTK_RESOURCES := /usr/local/share/netsurf/

  # Where to install the netsurf binary
  NETSURF_GTK_BIN := /usr/local/bin/

  # Enable using Hubbub to parse HTML rather than libxml2
  # Valid options: YES, NO, AUTO
  NETSURF_USE_HUBBUB := AUTO

  # Use librsvg in conjunction with Cairo to render SVG images
  # Valid options: YES, NO, AUTO
  NETSURF_USE_RSVG := AUTO

  # Use James Shaw's librosprite for rendering RISC OS Sprites
  # Valid options: YES, NO, AUTO
  NETSURF_USE_ROSPRITE := AUTO

  # Configuration overrides for Mac OS X
  ifeq ($(HOST),macosx)
    NETSURF_USE_LIBICONV_PLUG := NO
    NETSURF_USE_HARU_PDF := NO
  endif

  # Optimisation levels
  CFLAGS += -O2 -Wuninitialized

endif

# ----------------------------------------------------------------------------
# BeOS-specific options
# ----------------------------------------------------------------------------
ifeq ($(TARGET),beos)

  # Use James Shaw's librosprite for rendering RISC OS Sprites
  # Valid options: YES, NO, AUTO
  NETSURF_USE_ROSPRITE := AUTO

  # Use libharu to enable PDF export and GTK printing support.
  # Valid options: YES, NO
  NETSURF_USE_HARU_PDF := NO

  # Force using glibc internal iconv implementation instead of external libiconv
  # Valid options: YES, NO
  NETSURF_USE_LIBICONV_PLUG := NO

  # Optimisation levels
  CFLAGS += -O2 -Wuninitialized

endif

# ----------------------------------------------------------------------------
# Amiga-specific options
# ----------------------------------------------------------------------------
ifeq ($(TARGET),amiga)

  # Use James Shaw's librosprite for rendering RISC OS Sprites
  # Valid options: YES, NO, AUTO
  NETSURF_USE_ROSPRITE := YES

  # Enable using Hubbub to parse HTML rather than libxml2
  # Valid options: YES, NO, AUTO
  NETSURF_USE_HUBBUB := YES

  # Optimisation levels
  CFLAGS += -O2 -Wuninitialized

endif

# ----------------------------------------------------------------------------
# Debug-target-specific options
# ----------------------------------------------------------------------------
ifeq ($(TARGET),debug)
  # Optimisation levels
  CFLAGS += -O0
endif

# Include any local overrides
-include Makefile.config.override