diff options
-rw-r--r-- | backends/dc/.cvsignore | 4 | ||||
-rw-r--r-- | backends/dc/Makefile | 14 |
2 files changed, 16 insertions, 2 deletions
diff --git a/backends/dc/.cvsignore b/backends/dc/.cvsignore index 124b6cc6d7..ca4ad5f0c2 100644 --- a/backends/dc/.cvsignore +++ b/backends/dc/.cvsignore @@ -14,4 +14,6 @@ common base backends scummvm.elf -*.plg +scummvm.bin +SCUMMVM.BIN +*.PLG diff --git a/backends/dc/Makefile b/backends/dc/Makefile index 8c61fdead1..1cc0018f5a 100644 --- a/backends/dc/Makefile +++ b/backends/dc/Makefile @@ -2,7 +2,7 @@ ronindir = /usr/local/ronin -# BUILD_PLUGINS = 1 +BUILD_PLUGINS = 1 srcdir = ../.. VPATH = $(srcdir) @@ -28,6 +28,8 @@ HAVE_GCC3 = true ifdef BUILD_PLUGINS DEFINES += -DDYNAMIC_MODULES +PRE_OBJS_FLAGS = -Wl,--whole-archive +POST_OBJS_FLAGS = -Wl,--no-whole-archive endif OBJS := dcmain.o time.o display.o audio.o input.o selector.o icon.o \ @@ -40,3 +42,13 @@ include $(srcdir)/Makefile.common scummvm.bin : scummvm.elf sh-elf-objcopy -S -R .stack -O binary $< $@ +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 + |