aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMarcus Comstedt2004-08-25 21:47:07 +0000
committerMarcus Comstedt2004-08-25 21:47:07 +0000
commit65729bcff5340774a45bc20661d759ffd09f5de8 (patch)
treed27b954bc27a0743d866055cc8efb82f052a4d60 /backends
parentd0d7e594d62a407907a264827085fef5951576a9 (diff)
downloadscummvm-rg350-65729bcff5340774a45bc20661d759ffd09f5de8.tar.gz
scummvm-rg350-65729bcff5340774a45bc20661d759ffd09f5de8.tar.bz2
scummvm-rg350-65729bcff5340774a45bc20661d759ffd09f5de8.zip
Build plugins.
svn-id: r14754
Diffstat (limited to 'backends')
-rw-r--r--backends/dc/.cvsignore4
-rw-r--r--backends/dc/Makefile14
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
+