aboutsummaryrefslogtreecommitdiff
path: root/backends/gp32
AgeCommit message (Collapse)Author
2006-02-13Whew. It seems that I made a mistake last time. :(Won Star
Fix sound timer frequency for the GP32 port. svn-id: r20668
2006-02-13CC := arm-elf-gccWon Star
CXX := arm-elf-g++ LD := arm-elf-g++ AS := arm-elf-as AR := arm-elf-ar cru RANLIB := arm-elf-ranlib RM := rm -f MKDIR := mkdir -p ECHO := echo -n CAT := cat RM := rm -f # recursive version of RM RM_REC := $(RM) -r ZIP := zip -q CP := cp OBJCOPY := arm-elf-objcopy FXETOOL := b2fxec ####################################################################### # Default compilation parameters. Normally don't edit these # ####################################################################### CXXFLAGS:= -g -O DEFINES := LDFLAGS := INCLUDES:= -I. -Icommon LIBS := OBJS := # Turn on useful warnings CXXFLAGS+= -Wall -pedantic -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion CXXFLAGS+= -Wshadow -Wuninitialized -Wimplicit -Wundef CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder CXXFLAGS+= -Wwrite-strings -fcheck-new -Wctor-dtor-privacy -Wnon-virtual-dtor # GPSDK (SDK, Includes and Startup Files) base dir GPSDK = /usr/compat/gp32/share/sdk # Outputs EXEEXT = .elf MAPFILE = scummvm.map BIN = scummvm.gxb FXE = scummvm.fxe # Stripped Build? (Smaller ELF, Minimal debug symbol information). # You MUST comment this out with a # if you wish to debug your code. # STRIP_DEBUG = -Wl,--strip-debug # Plugins hack srcdir = ./ # GP32 Direct Execute Tool (i.e. pclink -e on Windows, gplink run on Linux) EXECUTE_TOOL = pclink -e # # -ffast-math \ # -fshort-double \ # # # #-Wno-multichar \ # Remove the below from the above flags for Debug. CFLAGS = -marm -march=armv4t -mtune=arm920 -mapcs \ -finline-functions \ -fshort-enums \ -mstructure-size-boundary=32 \ -mno-thumb-interwork \ -I$(GPSDK)/include \ -g \ -O2 \ -fomit-frame-pointer CPPFLAGS = $(CFLAGS) DEFINES = -D__GP32__ DEFINES += -DNONSTANDARD_PORT # Support Vorbis Tremor Patches. #DEFINES += -DVORBIS_TREMOR # Support LIBMAD Patches. #DEFINES += -DGP32_MADMP3 # Support for 8:3 save files names (The GP32 uses FAT12/16 (no vFAT) for the file system). DEFINES += -DSHORT_SAVENAMES # Support for the unsigned sound mixer. DEFINES += -DOUTPUT_UNSIGNED_AUDIO # Support for the GP32 (fmOPL derived) MIDI engine. # - NOT fully implemented yet. DEFINES += -DUSE_GP32_FMOPL LDSPECS = -specs=gp32_gpsdk.specs LDFLAGS = $(STRIP_DEBUG) \ -Wl,-Map,$(MAPFILE) \ $(LDSPECS) -Wl,--no-warn-mismatch LIBS += -L$(GPSDK)/lib \ -lgpmem -lgpos -lgpstdio -lgpstdlib -lgpsound -lgpgraphic -lgpfont \ -lm -lc -lgcc INCLUDES += -Ibackends/gp32 -Iengines -I$(GPSDK)/include MODULES += backends/gp32 #GP32 Debug - Remove from Release builds # This builds in the GP32 GDB USB Stub. Don't use it unless you know what your doing. # You also need to remove ANY optemisation from the compiler flags. #DEFINES += -DGP32_GDB #OBJS += backends/gp32/debug-gdbstub-usb.o # Standard librarys and optimization modules OBJS += backends/gp32/startup.o \ backends/gp32/memcpy.o \ backends/gp32/gp_asmlib.o \ backends/gp32/gp_clipped.o \ backends/gp32/fontdata.o # Custom GP32 std library OBJS += backends/gp32/gp32std.o \ backends/gp32/gp32std_grap.o \ backends/gp32/gp32std_input.o \ backends/gp32/gp32std_sound.o \ #backends/gp32/dmaaudio_asm.o \ #backends/gp32/dmaaudio.o \ #Main ScummVM for the GP32 Backend OBJS += backends/gp32/gp32_main.o \ backends/gp32/gp32_launcher.o \ backends/gp32/gp32_osys.o \ backends/gp32/gp-fs.o #install: all #$(EXECUTE_TOOL) $(BIN) $(FXE): $(BIN) $(FXETOOL) -f -a "The ScummVM Team" -t "ScummVM for the GP32" $< $@ # $(FXETOOL) -f -a "The ScummVM Team" -t "ScummVM for the GP32" -b scummvm.bmp $< $@ $(BIN): scummvm$(EXEEXT) $(OBJCOPY) -O binary $< $@ ####################################################################### # Compile options - you can modify these to tweak ScummVM compilation # ####################################################################### # Uncomment this to activate the MAD lib for compressed sound files # DEFINES += -DUSE_MAD # LIBS += -lmad # Uncomment this to activate the Ogg Vorbis lib for compressed sound files # You MUST use Tremor for Ogg Vorbis support on the GP32 port. # DEFINES += -DUSE_VORBIS # LIBS += -lvorbisfile -lvorbis # Uncomment this to activate the ALSA lib for midi # DEFINES += -DUSE_ALSA # LIBS += -lasound # Uncomment this to cause warnings to be treated as errors # CXXFLAGS+= -Werror # Uncomment this to use GCC 3.x specific dependency tracking (recommended) HAVE_GCC3 = 1 ####################################################################### # Control which modules are built - uncomment any to disable module # ####################################################################### DISABLE_SCALERS = 1 DISABLE_HQ_SCALERS = 1 #DISABLE_SCUMM = 1 #DISABLE_SCUMM_7_8 = 1 DISABLE_HE = 1 DISABLE_SIMON = 1 DISABLE_SKY = 1 DISABLE_QUEEN = 1 # The engines below are not supported on the GP32 port so there is # no point compiling support into the binary. DISABLE_SWORD1 = 1 DISABLE_SWORD2 = 1 # In-development engines below. # Disable for ALL release builds. DISABLE_SAGA = 1 DISABLE_KYRA = 1 DISABLE_GOB = 1 ####################################################################### # Misc stuff - you should normally never have to edit this # ####################################################################### EXECUTABLE := scummvm$(EXEEXT) include Makefile.common dist: $(RM) $(ZIPFILE) $(ZIP) $(ZIPFILE) $(DISTFILES) install: $(FXE) $(EXECUTE_TOOL) $(BIN) svn-id: r20664
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20535
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2006-01-06OopsWon Star
svn-id: r19930
2006-01-06* Accurate / fast gamma correction using LUTWon Star
* Enable changing FM quality and sample rate * Saves launcher setting to SMC * Etc. svn-id: r19929
2005-12-18More key mappings. Now we can play monkey2 :)Won Star
svn-id: r19803
2005-12-17Proper code formattingEugene Sandulenko
svn-id: r19801
2005-12-17Some tweaks on the GP32 sound code.Won Star
svn-id: r19800
2005-12-08Fixed possible OOB access.Won Star
svn-id: r19760
2005-12-04Remove obsolete files.Won Star
svn-id: r19742
2005-12-04FSF adress updatesLars Persson
svn-id: r19741
2005-11-27Patch #1341626: "New GP32 port"Eugene Sandulenko
svn-id: r19710
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-08-10Don't explicity check for tremor and vorbis everywhere andJonathan Gray
require both USE_TREMOR and USE_VORBIS to be defined when using tremor. svn-id: r18642
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-06-24When including files from common/, explicitly use the common/ prefixMax Horn
svn-id: r18444
2005-04-09Remove usage of vsprintf in favour of vsnprintf and makeJonathan Gray
more use of STRINGBUFLEN. Some ports may need a new stub for this, discussed with Chrilith. svn-id: r17463
2005-03-09Patch #1013937 "OSystem layer with bigger resolution". Now you will alwaysEugene Sandulenko
get at least 640x400 window. And finally we have means of implementing nice looking GUI. Also updated all backends. If your backend has ability to run with 640x400 or 640x480 resolution then read patch tracker item to find out details. Other port maintainers shouldn't worry, as this patch doesn't affect them, they still get their 320x200. svn-id: r17055
2005-03-09WIP of GP32 port. Now it is more correct port and compiles with currentEugene Sandulenko
CVS. Though it has some issues unresolved, one of them is that it crashes right after splash screen without showing anything. Work in progress :) svn-id: r17054
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-12-05Clean up OSystem::EventMax Horn
svn-id: r15990
2004-09-28Rename remaining OSystem methods to match our coding guidelinesMax Horn
svn-id: r15332
2004-09-04Got rid of OSystem::move_screenMax Horn
svn-id: r14882
2004-05-06Removed default value for keycolor in the OSystem implementationsMax Horn
svn-id: r13796
2004-05-05Extend setMouseCursor with additional keycolor parameter. Lets saga use 255Eugene Sandulenko
as white color. Made this function more safe by copying cursor data to newly created buffer. svn-id: r13777
2004-03-28Renamed more OSystem methodsMax Horn
svn-id: r13410
2004-03-15Renamed OSystem::set_timer() to setTimerCallback(); more OSystem Doxygen changesMax Horn
svn-id: r13289
2004-03-15Added OSystem::getDefaultGraphicsMode(); renamed OSystem::get_height() and ↵Max Horn
get_width() to getHeight and getWidth(); augmented some doxygen comments in common/system.h svn-id: r13284
2004-02-28renamed more OSystem methods to follow our naming scheme; renamed ↵Max Horn
NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend svn-id: r13087
2004-02-24the OSystem changes we discussed on the ML (note: renaming of the existing ↵Max Horn
OSystem API is not yet finished); porters will have to fix their ports to get them to compile again svn-id: r13036
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2003-11-07spelling fixesJonathan Gray
svn-id: r11181
2003-11-04added PROP_GET_GFX_MODE; removed PROP_SHOW_DEFAULT_CURSORMax Horn
svn-id: r11132
2003-10-02renamed namespace ScummVM to CommonMax Horn
svn-id: r10544
2003-09-27OSystem changes: removed create_thread() method (not needed anymore; 'pure' ↵Max Horn
threads aren't very portable anyway, better we only use timers); introduced OSystem::TimerProc type svn-id: r10430
2003-09-21added HQ3x filterMax Horn
svn-id: r10346
2003-09-18moved engine.* to base; this fixes some linking issues when building a ↵Max Horn
barebone ScummVM (or maybe I just want to increase our CVS stats? <g>) svn-id: r10287
2003-08-02removed OSystem::set_mouse_pos (I hope I didn't break any backends, but if I ↵Max Horn
did it should be trivial to get them working again) svn-id: r9391
2003-07-31added new header file backends/intern.h; removed some stuff from ↵Max Horn
common/system.h which is either only of interest to backends or code instantiating a backend (->backends/intern.h); also removed fmopl specific enums (->sound/fmopl.h) svn-id: r9327
2003-07-22adjusted to play_cdrom parameter name change in common/system.hMax Horn
svn-id: r9132
2003-07-21update, fix compilationJoost Peters
svn-id: r9104
2003-07-05updated backends to use type MutexRefMax Horn
svn-id: r8776
2003-05-29more OSystem docs & cleanupMax Horn
svn-id: r8118
2003-05-29added some doxygen comments to common/system.h; cleaned up the OSystem ↵Max Horn
interface a bit svn-id: r8116
2003-05-25changed scaler proc signature so that srcPtr is const (this can help ↵Max Horn
optimizer by simplifying aliasing detection; thanks to Bertrand Augereau for pointing this out) svn-id: r7939
2003-04-10fixed GP32 portJoost Peters
svn-id: r6958
2002-12-17New savefile backend system (bye bye NONSTANDARD_SAVE...)Marcus Comstedt
svn-id: r6007
2002-12-09change CFLAGS to CXXFLAGSMax Horn
svn-id: r5896
2002-12-02*** empty log message ***Peter Moraliyski
svn-id: r5815