diff options
| author | Marcus Comstedt | 2004-08-22 21:47:20 +0000 |
|---|---|---|
| committer | Marcus Comstedt | 2004-08-22 21:47:20 +0000 |
| commit | 45ac190548b0b0f33c8dbc391cf14869862b1dac (patch) | |
| tree | da9142f148ae464150cd32d94655b3a259ddbc3f /backends/dc/Makefile | |
| parent | ba39d7a3dbe8cfce4293838e87c1ff6caa1a27d6 (diff) | |
| download | scummvm-rg350-45ac190548b0b0f33c8dbc391cf14869862b1dac.tar.gz scummvm-rg350-45ac190548b0b0f33c8dbc391cf14869862b1dac.tar.bz2 scummvm-rg350-45ac190548b0b0f33c8dbc391cf14869862b1dac.zip | |
Support dynamic plugins on Dreamcast.
svn-id: r14689
Diffstat (limited to 'backends/dc/Makefile')
| -rw-r--r-- | backends/dc/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/backends/dc/Makefile b/backends/dc/Makefile index 1fe5fd1a03..8c61fdead1 100644 --- a/backends/dc/Makefile +++ b/backends/dc/Makefile @@ -2,9 +2,12 @@ ronindir = /usr/local/ronin +# BUILD_PLUGINS = 1 + srcdir = ../.. VPATH = $(srcdir) +CC = sh-elf-gcc -ml -m4-single-only CXX = sh-elf-g++ -ml -m4-single-only CXXFLAGS= -O3 -Wno-multichar -funroll-loops -fschedule-insns2 -fomit-frame-pointer -fdelete-null-pointer-checks -fno-exceptions DEFINES = -D__DC__ -DNONSTANDARD_PORT @@ -12,6 +15,10 @@ LDFLAGS = -Wl,-Ttext,0x8c010000 -nostartfiles $(ronindir)/lib/crt0.o INCLUDES= -I./ -I$(srcdir) -I$(srcdir)/common -I$(ronindir)/include/ LIBS = -L$(ronindir)/lib -lronin-netcd -lz -lm EXECUTABLE = scummvm.elf +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 MKDIR = mkdir -p RM = rm -f RM_REC = rm -rf @@ -19,10 +26,17 @@ AR = sh-elf-ar cru RANLIB = sh-elf-ranlib HAVE_GCC3 = true +ifdef BUILD_PLUGINS +DEFINES += -DDYNAMIC_MODULES +endif + OBJS := dcmain.o time.o display.o audio.o input.o selector.o icon.o \ - label.o vmsave.o softkbd.o + label.o vmsave.o softkbd.o dcloader.o cache.o MODULE_DIRS += . include $(srcdir)/Makefile.common +scummvm.bin : scummvm.elf + sh-elf-objcopy -S -R .stack -O binary $< $@ + |
