2008-10-12 17:36:08 +04:00
|
|
|
#
|
|
|
|
# NetSurf source file inclusion
|
|
|
|
#
|
|
|
|
# Included by main makefile -- indicates sources
|
|
|
|
# for each build.
|
|
|
|
#
|
|
|
|
|
2010-03-28 16:56:39 +04:00
|
|
|
S_CONTENT := content.c fetch.c hlcache.c llcache.c urldb.c \
|
2008-10-12 17:36:08 +04:00
|
|
|
fetchers/fetch_curl.c fetchers/fetch_data.c
|
2009-07-24 03:05:34 +04:00
|
|
|
S_CSS := css.c dump.c internal.c select.c utils.c
|
2009-12-18 02:55:02 +03:00
|
|
|
S_RENDER := box.c box_construct.c box_normalise.c directory.c favicon.c \
|
2009-07-21 14:59:53 +04:00
|
|
|
font.c form.c html.c html_redraw.c hubbub_binding.c imagemap.c \
|
2009-07-24 03:05:34 +04:00
|
|
|
layout.c list.c table.c textplain.c
|
2010-03-28 16:56:39 +04:00
|
|
|
S_UTILS := base64.c filename.c hashtable.c http.c locale.c \
|
2009-12-18 02:55:02 +03:00
|
|
|
messages.c talloc.c url.c utf8.c utils.c useragent.c
|
|
|
|
S_DESKTOP := knockout.c options.c plot_style.c print.c search.c \
|
|
|
|
searchweb.c scroll.c textarea.c tree.c version.c
|
2008-10-12 17:36:08 +04:00
|
|
|
|
|
|
|
# S_COMMON are sources common to all builds
|
|
|
|
S_COMMON := $(addprefix content/,$(S_CONTENT)) \
|
|
|
|
$(addprefix css/,$(S_CSS)) \
|
|
|
|
$(addprefix render/,$(S_RENDER)) \
|
|
|
|
$(addprefix utils/,$(S_UTILS)) \
|
|
|
|
$(addprefix desktop/,$(S_DESKTOP))
|
|
|
|
|
|
|
|
# S_IMAGE are sources related to image management
|
|
|
|
S_IMAGE := bmp.c gif.c ico.c jpeg.c mng.c nssprite.c png.c svg.c rsvg.c
|
|
|
|
S_IMAGE := $(addprefix image/,$(S_IMAGE))
|
|
|
|
|
|
|
|
# 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
|
2010-04-06 01:35:38 +04:00
|
|
|
S_BROWSER := browser.c download.c frames.c history_core.c netsurf.c \
|
|
|
|
save_complete.c save_text.c selection.c textinput.c
|
2008-10-12 17:36:08 +04:00
|
|
|
S_BROWSER := $(addprefix desktop/,$(S_BROWSER))
|
|
|
|
|
|
|
|
# S_RISCOS are sources purely for the RISC OS build
|
|
|
|
S_RISCOS := 401login.c artworks.c assert.c awrender.s bitmap.c buffer.c \
|
|
|
|
cookies.c configure.c debugwin.c dialog.c download.c draw.c \
|
|
|
|
filetype.c font.c global_history.c gui.c help.c history.c \
|
|
|
|
hotlist.c image.c menus.c message.c palettes.c plotters.c \
|
2009-12-18 02:55:02 +03:00
|
|
|
plugin.c print.c query.c save.c save_draw.c save_pdf.c \
|
|
|
|
schedule.c search.c searchweb.c sprite.c sslcert.c \
|
|
|
|
textarea.c textselection.c theme.c theme_install.c thumbnail.c \
|
2008-10-12 17:36:08 +04:00
|
|
|
treeview.c ucstables.c uri.c url_complete.c url_protocol.c \
|
|
|
|
wimp.c wimp_event.c window.c gui/progress_bar.c \
|
|
|
|
gui/status_bar.c \
|
|
|
|
$(addprefix configure/,con_cache.c con_connect.c con_content.c \
|
|
|
|
con_fonts.c con_home.c con_image.c con_inter.c con_language.c \
|
|
|
|
con_memory.c con_secure.c con_theme.c)
|
|
|
|
S_RISCOS := $(addprefix riscos/,$(S_RISCOS))
|
|
|
|
TPL_RISCOS := de en fr nl # TODO: It'd be nice to auto-detect these
|
|
|
|
TPL_RISCOS := $(addprefix riscos/templates/,$(TPL_RISCOS))
|
|
|
|
|
|
|
|
# S_GTK are sources purely for the GTK build
|
|
|
|
S_GTK := font_pango.c gtk_bitmap.c gtk_gui.c gtk_schedule.c \
|
|
|
|
gtk_thumbnail.c gtk_plotters.c gtk_treeview.c gtk_scaffolding.c \
|
|
|
|
gtk_completion.c gtk_login.c gtk_throbber.c gtk_selection.c \
|
|
|
|
gtk_history.c gtk_window.c gtk_filetype.c gtk_download.c \
|
2009-12-18 02:55:02 +03:00
|
|
|
gtk_menu.c gtk_print.c gtk_save.c gtk_search.c gtk_tabs.c \
|
2010-04-13 21:13:52 +04:00
|
|
|
gtk_theme.c gtk_toolbar.c sexy_icon_entry.c gtk_compat.c \
|
2009-04-21 00:31:13 +04:00
|
|
|
$(addprefix dialogs/,gtk_options.c gtk_about.c gtk_source.c)
|
2009-12-18 02:55:02 +03:00
|
|
|
S_GTK := $(addprefix gtk/,$(S_GTK)) $(addprefix utils/,container.c)
|
|
|
|
# code in utils/container.ch is non-universal it seems
|
2008-10-12 17:36:08 +04:00
|
|
|
|
2010-01-31 03:36:02 +03:00
|
|
|
# S_WINDOWS are sources purely for the windows build
|
|
|
|
S_WINDOWS := about.c bitmap.c download.c filetype.c findfile.c font.c \
|
|
|
|
gui.c history.c hotlist.c localhistory.c login.c misc.c plot.c \
|
|
|
|
prefs.c schedule.c thumbnail.c tree.c
|
|
|
|
S_WINDOWS := $(addprefix windows/,$(S_WINDOWS))
|
|
|
|
|
2008-10-12 17:36:08 +04:00
|
|
|
# S_BEOS are sources purely for the BeOS build
|
2009-02-23 18:01:03 +03:00
|
|
|
S_BEOS := beos_about.cpp beos_bitmap.cpp beos_fetch_rsrc.cpp \
|
|
|
|
beos_filetype.cpp beos_font.cpp beos_gui.cpp beos_history.cpp \
|
|
|
|
beos_login.cpp beos_options.cpp beos_plotters.cpp \
|
2010-01-03 01:01:47 +03:00
|
|
|
beos_save_complete.cpp \
|
2009-12-18 02:55:02 +03:00
|
|
|
beos_scaffolding.cpp beos_search.cpp beos_schedule.cpp \
|
|
|
|
beos_thumbnail.cpp beos_treeview.cpp beos_throbber.cpp \
|
|
|
|
beos_window.cpp
|
2008-10-12 17:36:08 +04:00
|
|
|
S_BEOS := $(addprefix beos/,$(S_BEOS))
|
|
|
|
RDEF_BEOS := beos_res.rdef
|
|
|
|
RDEF_BEOS := $(addprefix beos/,$(RDEF_BEOS))
|
|
|
|
RDEP_BEOS := adblock.css beosdefault.css default.css ca-bundle.txt \
|
|
|
|
messages
|
|
|
|
RDEP_BEOS := $(addprefix beos/res/,$(RDEP_BEOS)) \
|
|
|
|
$(wildcard beos/res/throbber/throbber*.png)
|
|
|
|
|
|
|
|
# S_AMIGA are sources purely for the Amiga build
|
|
|
|
S_AMIGA := compat.c gui.c tree.c history.c hotlist.c schedule.c \
|
|
|
|
thumbnail.c misc.c bitmap.c font.c filetype.c utf8.c login.c \
|
2008-10-12 17:46:29 +04:00
|
|
|
plotters.c object.c menu.c save_pdf.c arexx.c version.c \
|
2009-02-23 18:01:03 +03:00
|
|
|
cookies.c context_menu.c clipboard.c save_complete.c \
|
2009-03-28 15:50:19 +03:00
|
|
|
fetch_file.c fetch_mailto.c search.c history_local.c \
|
2009-08-23 19:59:41 +04:00
|
|
|
download.c iff_dr2d.c sslcert.c gui_options.c print.c \
|
2010-03-24 01:27:33 +03:00
|
|
|
theme.c \
|
2009-07-23 15:23:34 +04:00
|
|
|
stringview/stringview.c stringview/urlhistory.c
|
2008-10-12 17:36:08 +04:00
|
|
|
S_AMIGA := $(addprefix amiga/,$(S_AMIGA))
|
|
|
|
|
|
|
|
# S_FRAMEBUFFER are sources purely for the framebuffer build
|
2009-06-28 22:32:47 +04:00
|
|
|
S_FRAMEBUFFER := gui.c framebuffer.c tree.c history.c hotlist.c \
|
2009-12-18 03:06:57 +03:00
|
|
|
save.c schedule.c thumbnail.c misc.c bitmap.c filetype.c \
|
|
|
|
login.c findfile.c fbtk.c
|
2008-10-12 17:36:08 +04:00
|
|
|
|
2009-06-28 22:32:47 +04:00
|
|
|
S_FRAMEBUFFER += font_$(NETSURF_FB_FONTLIB).c
|
2009-02-20 12:51:21 +03:00
|
|
|
|
|
|
|
ifeq ($(NETSURF_FB_FONTLIB),internal)
|
2010-02-07 01:32:39 +03:00
|
|
|
S_FRAMEBUFFER += nsfont_regular.c nsfont_italic.c nsfont_bold.c \
|
|
|
|
nsfont_italic_bold.c
|
2009-02-20 12:51:21 +03:00
|
|
|
endif
|
|
|
|
|
2008-10-12 17:36:08 +04:00
|
|
|
|
|
|
|
S_FRAMEBUFFER := $(addprefix framebuffer/,$(S_FRAMEBUFFER))
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# Finally select the correct set of sources for this build...
|
|
|
|
|
|
|
|
ifeq ($(TARGET),riscos)
|
2008-12-09 14:16:29 +03:00
|
|
|
SOURCES := $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_PDF) $(S_RISCOS)
|
|
|
|
EXETARGET := !NetSurf/!RunImage$(EXEEXT)
|
|
|
|
|
|
|
|
!NetSurf/!Run$(RUNEXT): riscos/scripts/Run $(EXETARGET)
|
2008-12-09 14:12:58 +03:00
|
|
|
$(VQ)echo " MAKERUN: $@"
|
|
|
|
$(Q)$(MAKERUN) $(EXETARGET) $< $@
|
|
|
|
POSTEXES += !NetSurf/!Run$(RUNEXT)
|
|
|
|
|
|
|
|
clean-run:
|
|
|
|
$(VQ)echo " CLEAN: !NetSurf/!Run$(RUNEXT)"
|
|
|
|
$(Q) $(RM) !NetSurf/!Run$(RUNEXT)
|
|
|
|
CLEANS += clean-run
|
2008-10-12 17:36:08 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TARGET),gtk)
|
|
|
|
SOURCES := $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_PDF) $(S_GTK)
|
|
|
|
EXETARGET := nsgtk
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TARGET),beos)
|
|
|
|
SOURCES := $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_BEOS)
|
|
|
|
EXETARGET := NetSurf
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TARGET),amiga)
|
|
|
|
SOURCES := $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_AMIGA) $(S_PDF)
|
|
|
|
EXETARGET := NetSurf
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TARGET),framebuffer)
|
2009-02-26 17:14:29 +03:00
|
|
|
SOURCES := $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_FRAMEBUFFER) $(S_IMAGES)
|
2008-10-12 17:36:08 +04:00
|
|
|
EXETARGET := nsfb$(SUBTARGET)
|
|
|
|
endif
|
|
|
|
|
2010-01-31 03:36:02 +03:00
|
|
|
ifeq ($(TARGET),windows)
|
|
|
|
SOURCES := $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_WINDOWS) $(S_RESOURCES)
|
|
|
|
EXETARGET := NetSurf.exe
|
|
|
|
endif
|
|
|
|
|
2008-10-12 17:36:08 +04:00
|
|
|
ifeq ($(SOURCES),)
|
|
|
|
$(error Unable to build NetSurf, could not determine set of sources to build)
|
|
|
|
endif
|