MODULE := engines/saga

MODULE_OBJS := \
	actor.o \
	actor_path.o \
	actor_walk.o \
	animation.o \
	console.o \
	detection.o \
	events.o \
	font.o \
	font_map.o \
	gfx.o \
	image.o \
	input.o \
	interface.o \
	introproc_ite.o \
	isomap.o \
	itedata.o \
	music.o \
	objectmap.o \
	palanim.o \
	puzzle.o \
	render.o \
	resource.o \
	resource_rsc.o \
	saga.o \
	saveload.o \
	scene.o \
	script.o \
	sfuncs.o \
	sndres.o \
	sound.o \
	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_saga2.o \
	resource_hrs.o
endif

# This module can be built as a plugin
ifeq ($(ENABLE_SAGA), DYNAMIC_PLUGIN)
PLUGIN := 1
endif

# Include common rules
include $(srcdir)/rules.mk
