From 4c89c9d5df511852f2743d277cf39611b49ce7f2 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 10 Jun 2012 22:17:30 +0000 Subject: improve javascript support svn path=/trunk/netsurf/; revision=13962 --- Makefile.sources | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Makefile.sources') 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 -- cgit v1.2.3