From d5b6996c4521d4d02b2caae3802f5b120c632783 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 2 Jan 2009 16:52:38 +0000 Subject: - Split the IHNM script functions into a different file - Added two new defines, ENABLE_IHNM and ENABLE_SAGA2 (enabled by default), which can be used to remove the parts of the SAGA engine which are specific to IHNM and SAGA 2 games. Hopefully, this will reduce the size of the engine even more for platforms with little memory (e.g. the Nintendo DS) svn-id: r35672 --- engines/saga/module.mk | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'engines/saga/module.mk') diff --git a/engines/saga/module.mk b/engines/saga/module.mk index 24ebc40a4e..0c9c219621 100644 --- a/engines/saga/module.mk +++ b/engines/saga/module.mk @@ -14,9 +14,7 @@ MODULE_OBJS := \ image.o \ input.o \ interface.o \ - introproc_ihnm.o \ introproc_ite.o \ - introproc_fta2.o \ isomap.o \ itedata.o \ music.o \ @@ -25,8 +23,6 @@ MODULE_OBJS := \ puzzle.o \ render.o \ resource.o \ - resource_hrs.o \ - resource_res.o \ resource_rsc.o \ saga.o \ saveload.o \ @@ -38,6 +34,19 @@ MODULE_OBJS := \ sprite.o \ sthread.o +ifdef ENABLE_IHNM +MODULE_OBJS += \ + introproc_ihnm.o \ + resource_res.o \ + sfuncs_ihnm.o +endif + +ifdef ENABLE_SAGA2 +MODULE_OBJS += \ + introproc_fta2.o \ + resource_hrs.o +endif + # This module can be built as a plugin ifeq ($(ENABLE_SAGA), DYNAMIC_PLUGIN) PLUGIN := 1 -- cgit v1.2.3