summaryrefslogtreecommitdiff
path: root/Makefile.sources
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-06-10 22:17:30 +0000
committerVincent Sanders <vince@netsurf-browser.org>2012-06-10 22:17:30 +0000
commit4c89c9d5df511852f2743d277cf39611b49ce7f2 (patch)
tree07185cff7b5ab26416efe12c243f0d8ee76abe4a /Makefile.sources
parentfeb37dd067e7dac56fd5076badc7f2428134ef76 (diff)
downloadnetsurf-4c89c9d5df511852f2743d277cf39611b49ce7f2.tar.gz
netsurf-4c89c9d5df511852f2743d277cf39611b49ce7f2.tar.bz2
improve javascript support
svn path=/trunk/netsurf/; revision=13962
Diffstat (limited to 'Makefile.sources')
-rw-r--r--Makefile.sources16
1 files changed, 9 insertions, 7 deletions
diff --git a/Makefile.sources b/Makefile.sources
index 39d01b6d9..8806071c1 100644
--- a/Makefile.sources
+++ b/Makefile.sources
@@ -27,6 +27,13 @@ S_DESKTOP := cookies.c history_global_core.c hotlist.c knockout.c \
scrollbar.c sslcert.c textarea.c thumbnail.c tree.c \
tree_url_node.c version.c
+# Javascript sources
+ifeq ($(NETSURF_USE_JS),YES)
+S_JAVASCRIPT += js.c global.c
+else
+S_JAVASCRIPT += nojs.c
+endif
+
# S_COMMON are sources common to all builds
S_COMMON := $(addprefix content/,$(S_CONTENT)) \
$(addprefix content/fetchers/,$(S_FETCHERS)) \
@@ -34,7 +41,8 @@ S_COMMON := $(addprefix content/,$(S_CONTENT)) \
$(addprefix render/,$(S_RENDER)) \
$(addprefix utils/,$(S_UTILS)) \
$(addprefix utils/http/,$(S_HTTP)) \
- $(addprefix desktop/,$(S_DESKTOP))
+ $(addprefix desktop/,$(S_DESKTOP)) \
+ $(addprefix javascript/,$(S_JAVASCRIPT))
# S_IMAGE are sources related to image management
S_IMAGE_YES := image.c image_cache.c
@@ -61,12 +69,6 @@ S_PDF := $(addprefix desktop/save_pdf/,$(S_PDF))
S_BROWSER := browser.c download.c frames.c history_core.c netsurf.c \
save_complete.c save_text.c selection.c textinput.c
-ifeq ($(NETSURF_USE_JS),YES)
-S_BROWSER += js.c
-else
-S_BROWSER += nojs.c
-endif
-
S_BROWSER := $(addprefix desktop/,$(S_BROWSER))
# The following files depend on the testament