summaryrefslogtreecommitdiff
path: root/Makefile.sources
blob: 8689e89618a311ee3fc23d9e2191cbe6cf22896f (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
#
# NetSurf source file inclusion
#
# Included by main makefile -- indicates generic sources for every build.
#

S_CONTENT := content.c content_factory.c dirlist.c fetch.c hlcache.c	\
	llcache.c mimesniff.c urldb.c

S_FETCHERS := curl.c data.c file.c about.c resource.c

S_CSS := css.c dump.c internal.c select.c utils.c

S_RENDER := box.c box_construct.c box_normalise.c			\
	font.c form.c html.c html_interaction.c html_redraw.c		\
	hubbub_binding.c imagemap.c layout.c list.c search.c table.c	\
	textinput.c textplain.c

S_UTILS := base64.c filename.c hashtable.c locale.c messages.c 		\
	talloc.c url.c utf8.c utils.c useragent.c filepath.c log.c

S_HTTP := challenge.c generics.c primitives.c parameter.c		\
	content-disposition.c content-type.c www-authenticate.c

S_DESKTOP := cookies.c history_global_core.c hotlist.c knockout.c	\
	mouse.c options.c plot_style.c print.c search.c searchweb.c	\
	scrollbar.c sslcert.c textarea.c thumbnail.c tree.c		\
	tree_url_node.c version.c

# S_COMMON are sources common to all builds
S_COMMON := $(addprefix content/,$(S_CONTENT))				\
	$(addprefix content/fetchers/,$(S_FETCHERS))			\
	$(addprefix css/,$(S_CSS))					\
	$(addprefix render/,$(S_RENDER))				\
	$(addprefix utils/,$(S_UTILS))					\
	$(addprefix utils/http/,$(S_HTTP))				\
	$(addprefix desktop/,$(S_DESKTOP))

# S_IMAGE are sources related to image management
S_IMAGE_YES := image.c
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
S_IMAGE_$(NETSURF_USE_ROSPRITE) += nssprite.c
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

S_IMAGE := $(addprefix image/,$(S_IMAGE_YES))

# S_PDF are sources of the pdf plotter + the ones for paged-printing
S_PDF := pdf_plotters.c font_haru.c
S_PDF := $(addprefix desktop/save_pdf/,$(S_PDF))

# S_BROWSER are sources related to full browsers but are common
# between RISC OS, GTK, BeOS and AmigaOS builds
S_BROWSER := browser.c download.c frames.c history_core.c netsurf.c	\
	save_complete.c save_text.c selection.c textinput.c
S_BROWSER := $(addprefix desktop/,$(S_BROWSER))

# The following files depend on the testament
content/fetchers/about.c: testament utils/testament.h

# Some extra rules for building the transliteration table.
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"
	$(Q)$(RM) utils/translit.c

CLEANS += clean-intermediates