Build plugins.

svn-id: r14754
This commit is contained in:
Marcus Comstedt 2004-08-25 21:47:07 +00:00
parent d0d7e594d6
commit 65729bcff5
2 changed files with 16 additions and 2 deletions

View File

@ -14,4 +14,6 @@ common
base
backends
scummvm.elf
*.plg
scummvm.bin
SCUMMVM.BIN
*.PLG

View File

@ -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