2002-02-02 15:44:27 +00:00
|
|
|
# $Header$
|
|
|
|
|
2002-04-18 23:24:22 +00:00
|
|
|
ronindir = /usr/local/ronin
|
2002-02-02 15:44:27 +00:00
|
|
|
|
2004-08-25 21:47:07 +00:00
|
|
|
BUILD_PLUGINS = 1
|
2004-08-22 21:47:20 +00:00
|
|
|
|
2004-01-31 20:15:37 +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
|
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
|
2002-12-17 01:15:13 +00:00
|
|
|
DEFINES = -D__DC__ -DNONSTANDARD_PORT
|
2004-03-13 15:19:16 +00:00
|
|
|
LDFLAGS = -Wl,-Ttext,0x8c010000 -nostartfiles $(ronindir)/lib/crt0.o
|
|
|
|
INCLUDES= -I./ -I$(srcdir) -I$(srcdir)/common -I$(ronindir)/include/
|
2004-03-14 22:16:22 +00:00
|
|
|
LIBS = -L$(ronindir)/lib -lronin-netcd -lz -lm
|
2004-03-13 15:19:16 +00:00
|
|
|
EXECUTABLE = scummvm.elf
|
2004-08-22 21:47:20 +00:00
|
|
|
PLUGIN_PREFIX =
|
|
|
|
PLUGIN_SUFFIX = .plg
|
|
|
|
PLUGIN_EXTRA_DEPS = plugin.x plugin.syms scummvm.elf
|
|
|
|
PLUGIN_LDFLAGS = -nostartfiles -Wl,-q,-Tplugin.x,--just-symbols,scummvm.elf,--retain-symbols-file,plugin.syms -L$(ronindir)/lib
|
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
|
2004-02-01 16:43:46 +00:00
|
|
|
HAVE_GCC3 = true
|
2004-08-26 21:01:54 +00:00
|
|
|
DISABLE_SCALERS = true
|
2002-02-02 15:44:27 +00:00
|
|
|
|
2004-08-22 21:47:20 +00:00
|
|
|
ifdef BUILD_PLUGINS
|
|
|
|
DEFINES += -DDYNAMIC_MODULES
|
2004-08-25 21:47:07 +00:00
|
|
|
PRE_OBJS_FLAGS = -Wl,--whole-archive
|
|
|
|
POST_OBJS_FLAGS = -Wl,--no-whole-archive
|
2004-08-22 21:47:20 +00:00
|
|
|
endif
|
|
|
|
|
2002-12-04 22:15:34 +00:00
|
|
|
OBJS := dcmain.o time.o display.o audio.o input.o selector.o icon.o \
|
2004-08-22 21:47:20 +00:00
|
|
|
label.o vmsave.o softkbd.o dcloader.o cache.o
|
2002-02-02 15:44:27 +00:00
|
|
|
|
2004-02-01 17:09:35 +00:00
|
|
|
MODULE_DIRS += .
|
|
|
|
|
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 $< $@
|
|
|
|
|
|
|
|
plugin_dist :
|
|
|
|
find . -name '*.plg' | while read p; do \
|
|
|
|
sh-elf-strip -g -o "`basename \"$$p\" | tr '[:lower:]' '[:upper:]'`" "$$p"; \
|
|
|
|
done
|
|
|
|
|
|
|
|
dist : SCUMMVM.BIN plugins plugin_dist
|
|
|
|
|