2008-10-12 17:36:08 +04:00
|
|
|
#
|
|
|
|
# NetSurf source file inclusion
|
|
|
|
#
|
2010-10-29 04:54:27 +04:00
|
|
|
# Included by main makefile -- indicates generic sources for every build.
|
2008-10-12 17:36:08 +04:00
|
|
|
#
|
|
|
|
|
2011-05-07 00:40:09 +04:00
|
|
|
S_CONTENT := content.c content_factory.c dirlist.c fetch.c hlcache.c \
|
2011-09-04 10:28:09 +04:00
|
|
|
llcache.c mimesniff.c urldb.c
|
2011-02-16 02:18:10 +03:00
|
|
|
|
2011-05-16 23:28:40 +04:00
|
|
|
S_FETCHERS := curl.c data.c file.c about.c resource.c
|
2010-10-29 04:54:27 +04:00
|
|
|
|
2009-07-24 03:05:34 +04:00
|
|
|
S_CSS := css.c dump.c internal.c select.c utils.c
|
2010-10-29 04:54:27 +04:00
|
|
|
|
2011-05-07 00:40:09 +04:00
|
|
|
S_RENDER := box.c box_construct.c box_normalise.c \
|
2012-07-13 23:19:04 +04:00
|
|
|
font.c form.c \
|
2012-07-22 18:48:55 +04:00
|
|
|
html.c html_script.c html_interaction.c html_redraw.c \
|
|
|
|
html_forms.c imagemap.c layout.c list.c search.c table.c \
|
2011-08-24 16:29:30 +04:00
|
|
|
textinput.c textplain.c
|
2010-10-29 04:54:27 +04:00
|
|
|
|
2012-10-12 19:21:29 +04:00
|
|
|
S_UTILS := base64.c corestrings.c filename.c filepath.c hashtable.c \
|
|
|
|
libdom.c locale.c log.c messages.c nsurl.c talloc.c url.c \
|
|
|
|
utf8.c utils.c useragent.c
|
2010-10-29 04:54:27 +04:00
|
|
|
|
2011-07-08 12:38:17 +04:00
|
|
|
S_HTTP := challenge.c generics.c primitives.c parameter.c \
|
|
|
|
content-disposition.c content-type.c www-authenticate.c
|
|
|
|
|
2010-10-05 23:14:46 +04:00
|
|
|
S_DESKTOP := cookies.c history_global_core.c hotlist.c knockout.c \
|
2010-12-15 21:05:25 +03:00
|
|
|
mouse.c options.c plot_style.c print.c search.c searchweb.c \
|
2011-05-10 02:49:17 +04:00
|
|
|
scrollbar.c sslcert.c textarea.c thumbnail.c tree.c \
|
2011-02-20 01:17:54 +03:00
|
|
|
tree_url_node.c version.c
|
2008-10-12 17:36:08 +04:00
|
|
|
|
2012-06-11 02:17:30 +04:00
|
|
|
# Javascript sources
|
|
|
|
ifeq ($(NETSURF_USE_JS),YES)
|
2012-08-15 21:48:46 +04:00
|
|
|
S_JSAPI = window.c navigator.c console.c htmldocument.c htmlelement.c
|
2012-06-26 22:55:57 +04:00
|
|
|
S_JAVASCRIPT += content.c jsapi.c $(addprefix jsapi/,$(S_JSAPI))
|
2012-06-11 02:17:30 +04:00
|
|
|
else
|
2012-06-19 13:35:51 +04:00
|
|
|
S_JAVASCRIPT += none.c
|
2012-06-11 02:17:30 +04:00
|
|
|
endif
|
|
|
|
|
2008-10-12 17:36:08 +04:00
|
|
|
# S_COMMON are sources common to all builds
|
|
|
|
S_COMMON := $(addprefix content/,$(S_CONTENT)) \
|
2011-02-16 02:18:10 +03:00
|
|
|
$(addprefix content/fetchers/,$(S_FETCHERS)) \
|
2008-10-12 17:36:08 +04:00
|
|
|
$(addprefix css/,$(S_CSS)) \
|
|
|
|
$(addprefix render/,$(S_RENDER)) \
|
|
|
|
$(addprefix utils/,$(S_UTILS)) \
|
2011-07-08 12:38:17 +04:00
|
|
|
$(addprefix utils/http/,$(S_HTTP)) \
|
2012-06-11 02:17:30 +04:00
|
|
|
$(addprefix desktop/,$(S_DESKTOP)) \
|
|
|
|
$(addprefix javascript/,$(S_JAVASCRIPT))
|
2008-10-12 17:36:08 +04:00
|
|
|
|
|
|
|
# S_IMAGE are sources related to image management
|
2011-09-05 03:50:14 +04:00
|
|
|
S_IMAGE_YES := image.c image_cache.c
|
2011-08-28 18:29:15 +04:00
|
|
|
S_IMAGE_NO :=
|
|
|
|
S_IMAGE_$(NETSURF_USE_BMP) += bmp.c ico.c
|
|
|
|
S_IMAGE_$(NETSURF_USE_GIF) += gif.c
|
|
|
|
S_IMAGE_$(NETSURF_USE_JPEG) += jpeg.c
|
|
|
|
S_IMAGE_$(NETSURF_USE_MNG) += mng.c
|
2011-08-29 02:05:11 +04:00
|
|
|
S_IMAGE_$(NETSURF_USE_ROSPRITE) += nssprite.c
|
2011-08-28 18:29:15 +04:00
|
|
|
S_IMAGE_$(NETSURF_USE_PNG) += png.c
|
|
|
|
S_IMAGE_$(NETSURF_USE_NSSVG) += svg.c
|
|
|
|
S_IMAGE_$(NETSURF_USE_RSVG) += rsvg.c
|
|
|
|
S_IMAGE_$(NETSURF_USE_WEBP) += webp.c
|
2011-12-06 02:33:02 +04:00
|
|
|
S_IMAGE_$(NETSURF_USE_VIDEO) += video.c
|
2011-08-28 18:29:15 +04:00
|
|
|
|
|
|
|
S_IMAGE := $(addprefix image/,$(S_IMAGE_YES))
|
2008-10-12 17:36:08 +04:00
|
|
|
|
|
|
|
# S_PDF are sources of the pdf plotter + the ones for paged-printing
|
|
|
|
S_PDF := pdf_plotters.c font_haru.c
|
2009-02-17 22:29:38 +03:00
|
|
|
S_PDF := $(addprefix desktop/save_pdf/,$(S_PDF))
|
2008-10-12 17:36:08 +04:00
|
|
|
|
|
|
|
# S_BROWSER are sources related to full browsers but are common
|
|
|
|
# between RISC OS, GTK, BeOS and AmigaOS builds
|
2012-01-02 01:42:38 +04:00
|
|
|
S_BROWSER := browser.c download.c frames.c history_core.c netsurf.c \
|
2010-04-06 01:35:38 +04:00
|
|
|
save_complete.c save_text.c selection.c textinput.c
|
2012-01-02 01:42:38 +04:00
|
|
|
|
2008-10-12 17:36:08 +04:00
|
|
|
S_BROWSER := $(addprefix desktop/,$(S_BROWSER))
|
|
|
|
|
2011-03-13 14:59:20 +03:00
|
|
|
# The following files depend on the testament
|
2011-03-22 15:04:02 +03:00
|
|
|
content/fetchers/about.c: testament utils/testament.h
|
2012-10-06 21:12:57 +04:00
|
|
|
desktop/version.c: testament utils/testament.h
|
2008-10-12 17:36:08 +04:00
|
|
|
|
2009-07-24 03:05:34 +04:00
|
|
|
# Some extra rules for building the transliteration table.
|
2008-10-12 17:36:08 +04:00
|
|
|
ifeq ($(HOST),riscos)
|
|
|
|
utils/translit.c: transtab
|
|
|
|
$(VQ)echo "TRANSTAB: utils/translit.c"
|
|
|
|
$(Q)dir utils
|
|
|
|
$(Q)$(PERL) tt2code < transtab > translit.c
|
|
|
|
$(Q)dir ^
|
|
|
|
else
|
|
|
|
utils/translit.c: transtab
|
|
|
|
$(VQ)echo "TRANSTAB: utils/translit.c"
|
|
|
|
$(Q)cd utils; $(PERL) tt2code < transtab > translit.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
clean-intermediates:
|
|
|
|
$(VQ)echo " CLEAN: intermediates"
|
2009-07-24 03:05:34 +04:00
|
|
|
$(Q)$(RM) utils/translit.c
|
2008-10-12 17:36:08 +04:00
|
|
|
|
|
|
|
CLEANS += clean-intermediates
|