From 6b367328af8deb6d5961f107da739cca8607c265 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Thu, 5 Jul 2012 22:21:45 +0200 Subject: [PATCH] Add Javascript case to FreeMiNT Makefile.target --- atari/Makefile.target | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/atari/Makefile.target b/atari/Makefile.target index 27538817d..25f265ad5 100644 --- a/atari/Makefile.target +++ b/atari/Makefile.target @@ -2,9 +2,19 @@ # Atari target setup # ---------------------------------------------------------------------------- +# define additional CFLAGS and LDFLAGS requirements for pkg-configed libs here +NETSURF_FEATURE_JS_CFLAGS := -DWITH_JS -DJS_HAS_FILE_OBJECT=0 +NETSURF_FEATURE_MOZJS_CFLAGS := -DWITH_MOZJS -DJS_HAS_FILE_OBJECT=0 + +ifeq ($(NETSURF_USE_MOZJS),YES) +NETSURF_USE_JS:=YES +NETSURF_USE_MOZJS:=YES +endif + $(eval $(call feature_enabled,MNG,-DWITH_MNG,-lmng,PNG/MNG/JNG (libmng))) -$(eval $(call feature_enabled,GD_PLOTTER,-DWITH_GD_PLOTTER,-lgd,GD Plotter (libgd) )) -$(eval $(call feature_enabled,PNG,-DWITH_PNG,-lpng,PNG (libpng) )) +$(eval $(call feature_enabled,GD_PLOTTER,-DWITH_GD_PLOTTER,-lgd,GD Plotter (libgd))) +$(eval $(call feature_enabled,PNG,-DWITH_PNG,-lpng,PNG (libpng))) +$(eval $(call feature_enabled,MOZJS,-DWITH_MOZJS,-ljs,JavaScript (Spidermonkey))) CFLAGS += -DATARI_USE_FREETYPE $(shell freetype-config --cflags) LDFLAGS += -lcflib -lfreetype