2002-02-02 15:44:27 +00:00
|
|
|
|
2002-04-18 23:24:22 +00:00
|
|
|
ronindir = /usr/local/ronin
|
2002-02-02 15:44:27 +00:00
|
|
|
|
2008-05-06 03:11:01 +00:00
|
|
|
DYNAMIC_MODULES = 1
|
2004-08-22 21:47:20 +00:00
|
|
|
|
2006-06-30 20:21:42 +00:00
|
|
|
srcdir = ../../..
|
2004-01-31 20:34:32 +00:00
|
|
|
VPATH = $(srcdir)
|
2002-02-02 15:44:27 +00:00
|
|
|
|
2004-08-22 21:47:20 +00:00
|
|
|
CC = sh-elf-gcc -ml -m4-single-only
|
2002-09-13 14:27:03 +00:00
|
|
|
CXX = sh-elf-g++ -ml -m4-single-only
|
2009-10-10 11:42:41 +00:00
|
|
|
LD = $(CXX)
|
2004-03-13 12:47:27 +00:00
|
|
|
CXXFLAGS= -O3 -Wno-multichar -funroll-loops -fschedule-insns2 -fomit-frame-pointer -fdelete-null-pointer-checks -fno-exceptions
|
2009-10-10 14:30:19 +00:00
|
|
|
DEFINES = -D__DC__ -DNONSTANDARD_PORT -DUSE_MAD -DUSE_ZLIB -DDISABLE_DEFAULT_SAVEFILEMANAGER -DDISABLE_TEXT_CONSOLE -DDISABLE_COMMAND_LINE -DUSE_RGB_COLOR
|
2011-06-01 13:15:31 +00:00
|
|
|
# For release builds:
|
2011-06-01 16:17:35 +00:00
|
|
|
#DEFINES += -DNOSERIAL
|
2004-03-13 15:19:16 +00:00
|
|
|
LDFLAGS = -Wl,-Ttext,0x8c010000 -nostartfiles $(ronindir)/lib/crt0.o
|
2008-01-03 07:49:19 +00:00
|
|
|
INCLUDES= -I./ -I$(srcdir) -I$(ronindir)/include/ -I$(srcdir)/engines
|
2005-10-15 22:28:27 +00:00
|
|
|
LIBS = -L$(ronindir)/lib -lmad -lronin -lz -lm
|
2011-06-01 13:15:31 +00:00
|
|
|
# For release builds:
|
|
|
|
#LIBS = -L$(ronindir)/lib -lmad -lronin-noserial -lz -lm
|
2004-03-13 15:19:16 +00:00
|
|
|
EXECUTABLE = scummvm.elf
|
2008-06-28 22:16:51 +00:00
|
|
|
DEPDIR = .deps
|
2009-10-10 14:31:16 +00:00
|
|
|
CXX_UPDATE_DEP_FLAG = -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP
|
2004-08-22 21:47:20 +00:00
|
|
|
PLUGIN_PREFIX =
|
|
|
|
PLUGIN_SUFFIX = .plg
|
2011-01-08 20:51:25 +00:00
|
|
|
PLUGIN_EXTRA_DEPS = plugin.x plugin.syms scummvm.elf plugin_head.o
|
|
|
|
PLUGIN_LDFLAGS = -nostartfiles -Wl,-q,-Tplugin.x,--just-symbols,scummvm.elf,--retain-symbols-file,plugin.syms -L$(ronindir)/lib plugin_head.o
|
2002-09-13 14:27:03 +00:00
|
|
|
MKDIR = mkdir -p
|
|
|
|
RM = rm -f
|
2004-02-01 16:36:47 +00:00
|
|
|
RM_REC = rm -rf
|
2002-09-13 14:27:03 +00:00
|
|
|
AR = sh-elf-ar cru
|
|
|
|
RANLIB = sh-elf-ranlib
|
2009-10-10 14:30:19 +00:00
|
|
|
USE_RGB_COLOR = true
|
2002-02-02 15:44:27 +00:00
|
|
|
|
2008-05-06 03:11:01 +00:00
|
|
|
ifdef DYNAMIC_MODULES
|
2004-08-22 21:47:20 +00:00
|
|
|
DEFINES += -DDYNAMIC_MODULES
|
2004-08-25 21:47:07 +00:00
|
|
|
PRE_OBJS_FLAGS = -Wl,--whole-archive
|
|
|
|
POST_OBJS_FLAGS = -Wl,--no-whole-archive
|
2008-07-05 22:53:17 +00:00
|
|
|
ENABLED=DYNAMIC_PLUGIN
|
|
|
|
else
|
|
|
|
ENABLED=STATIC_PLUGIN
|
2004-08-22 21:47:20 +00:00
|
|
|
endif
|
|
|
|
|
2008-07-05 22:53:17 +00:00
|
|
|
ENABLE_SCUMM = $(ENABLED)
|
2023-02-07 14:45:39 +00:00
|
|
|
# Not meaningful anymore (bug #6008)
|
|
|
|
#ENABLE_SCUMM_7_8 = $(ENABLED)
|
2008-07-05 22:53:17 +00:00
|
|
|
ENABLE_HE = $(ENABLED)
|
|
|
|
ENABLE_AGI = $(ENABLED)
|
|
|
|
ENABLE_AGOS = $(ENABLED)
|
|
|
|
ENABLE_CINE = $(ENABLED)
|
|
|
|
ENABLE_CRUISE = $(ENABLED)
|
|
|
|
ENABLE_DRASCULA = $(ENABLED)
|
|
|
|
ENABLE_GOB = $(ENABLED)
|
2009-01-11 00:02:28 +00:00
|
|
|
ENABLE_GROOVIE = $(ENABLED)
|
2009-01-10 23:09:03 +00:00
|
|
|
ENABLE_IHNM = $(ENABLED)
|
2008-07-05 22:53:17 +00:00
|
|
|
ENABLE_KYRA = $(ENABLED)
|
|
|
|
ENABLE_LURE = $(ENABLED)
|
|
|
|
ENABLE_M4 = $(ENABLED)
|
|
|
|
ENABLE_MADE = $(ENABLED)
|
|
|
|
ENABLE_PARALLACTION = $(ENABLED)
|
|
|
|
ENABLE_QUEEN = $(ENABLED)
|
|
|
|
ENABLE_SAGA = $(ENABLED)
|
|
|
|
ENABLE_SKY = $(ENABLED)
|
|
|
|
ENABLE_SWORD1 = $(ENABLED)
|
|
|
|
ENABLE_SWORD2 = $(ENABLED)
|
|
|
|
ENABLE_TOUCHE = $(ENABLED)
|
2009-01-11 00:02:28 +00:00
|
|
|
ENABLE_TUCKER = $(ENABLED)
|
2008-07-05 22:53:17 +00:00
|
|
|
|
2002-12-04 22:15:34 +00:00
|
|
|
OBJS := dcmain.o time.o display.o audio.o input.o selector.o icon.o \
|
2021-10-30 14:35:56 +00:00
|
|
|
label.o vmsave.o softkbd.o dcloader.o cache.o dc-fs.o plugins.o \
|
|
|
|
dcutils.o
|
2002-02-02 15:44:27 +00:00
|
|
|
|
2008-06-28 22:16:51 +00:00
|
|
|
MODULE_DIRS += ./
|
2004-02-01 17:09:35 +00:00
|
|
|
|
2010-07-29 13:02:14 +00:00
|
|
|
BACKEND := dc
|
|
|
|
|
2004-01-31 20:34:32 +00:00
|
|
|
include $(srcdir)/Makefile.common
|
2002-02-02 15:44:27 +00:00
|
|
|
|
2004-08-22 21:47:20 +00:00
|
|
|
scummvm.bin : scummvm.elf
|
|
|
|
sh-elf-objcopy -S -R .stack -O binary $< $@
|
|
|
|
|
2004-08-25 21:47:07 +00:00
|
|
|
SCUMMVM.BIN : scummvm.bin
|
|
|
|
scramble $< $@
|
|
|
|
|
2009-05-21 10:14:05 +00:00
|
|
|
plugin_dist : plugins
|
2009-05-21 09:56:55 +00:00
|
|
|
for p in $(PLUGINS); do \
|
2011-01-08 20:51:25 +00:00
|
|
|
t="`basename \"$$p\" | LC_CTYPE=C tr '[:lower:]' '[:upper:]'`"; \
|
|
|
|
sh-elf-strip -g -o "$$t" "$$p"; \
|
|
|
|
./check_plugin_symbols "$$t"; \
|
2004-08-25 21:47:07 +00:00
|
|
|
done
|
|
|
|
|
2009-05-21 09:56:55 +00:00
|
|
|
dist : SCUMMVM.BIN plugin_dist
|
2004-08-25 21:47:07 +00:00
|
|
|
|
2006-06-03 14:05:51 +00:00
|
|
|
spotless : distclean
|
|
|
|
$(RM) SCUMMVM.BIN scummvm.bin *.PLG
|