mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 15:48:48 +00:00
dc6fa53bad
svn-id: r42825
35 lines
865 B
Makefile
35 lines
865 B
Makefile
# $URL$
|
|
# $Id$
|
|
|
|
ronindir = /usr/local/ronin
|
|
|
|
CC := $(CXX)
|
|
ASFLAGS := $(CXXFLAGS)
|
|
|
|
dist : SCUMMVM.BIN IP.BIN plugin_dist
|
|
|
|
plugin_dist : plugins
|
|
@[ -z "$(PLUGINS)" ] || for p in $(or $(PLUGINS),none); do \
|
|
t="`basename \"$$p\" | LC_CTYPE=C tr '[:lower:]' '[:upper:]'`"; \
|
|
if /usr/bin/test "$$p" -ot "$$t"; then :; else \
|
|
echo sh-elf-strip -g -o "$$t" "$$p"; \
|
|
sh-elf-strip -g -o "$$t" "$$p"; \
|
|
fi;\
|
|
done
|
|
|
|
SCUMMVM.BIN : scummvm.bin
|
|
scramble $< $@
|
|
|
|
scummvm.bin : scummvm.elf
|
|
sh-elf-objcopy -S -R .stack -O binary $< $@
|
|
|
|
IP.BIN : ip.txt
|
|
makeip $< $@
|
|
|
|
ip.txt : $(srcdir)/backends/platform/dc/ip.txt.in
|
|
if [ x"$(VER_EXTRA)" = xsvn ]; then \
|
|
if [ -z "$(VER_SVNREV)" ]; then ver="SVN"; else ver="r$(VER_SVNREV)"; fi; \
|
|
else ver="V$(VERSION)"; fi; \
|
|
sed -e 's/[@]VERSION[@]/'"$$ver"/ -e 's/[@]DATE[@]/$(shell date '+%Y%m%d')/' < $< > $@
|
|
|