Previous 15994 Revisions Next

r1128 Tuesday 16th October, 2007 at 21:48:20 UTC by R. Belmont
[SDLMESS] PowerMac G3 support and -resolution works in windowed mode (Tim Lindner)
[ROOT]makefile.sdl
[src/osd/sdl]sdl.mak window.c

src/osd/sdl/sdl.mak
r1127r1128
5858#-------------------------------------------------
5959
6060# disable DRC cores for PowerPC builds
61ifdef G3
62PPC = 1
63endif
64
6165ifdef G4
6266PPC = 1
6367endif
src/osd/sdl/window.c
r1127r1128
1515#include <SDL/SDL_thread.h>
1616
1717#include <time.h>
18#if defined(SDLMAME_UNIX) && !defined(SDLMAME_DARWIN)
18#if defined(SDLMAME_UNIX)
1919#include <sys/time.h>
2020#endif
2121
r1127r1128
708708   window->refresh = config->refresh;
709709   window->monitor = monitor;
710710   window->fullscreen = !video_config.windowed;
711   if (!window->fullscreen)
712   {
713      window->windowed_width = config->width;
714      window->windowed_height = config->height;
715   }
711716   window->totalColors = config->totalColors;
712717
713718   // add us to the list
makefile.sdl
r1127r1128
9191# P4 = 1
9292# PM = 1
9393# AMD64 = 1
94# G3 = 1
9495# G4 = 1
9596# G5 = 1
9697# CELL = 1
r1127r1128
129130
130131# disable DRC cores for 64-bit builds
131132ifdef PTR64
132X86_MIPS3_DRC =
133133X86_PPC_DRC =
134134endif
135135
r1127r1128
212212ARCH = -march=pentium3 -msse2
213213endif
214214
215ifdef G3
216SUFFIX = g3
217ARCH = -mtune=G3 -isysroot /Developer/SDKs/MacOSX10.3.9.sdk
218ENDIAN = big
219endif
220
215221ifdef G4
216222SUFFIX = g4
217223ARCH = -mcpu=G4
r1127r1128
333339endif
334340
335341# add a basic set of warnings
336
337342CFLAGS += \
338343   -Wall \
339344   -Wpointer-arith \
r1127r1128
345350   -Wwrite-strings \
346351   -Wno-unused-function \
347352
348# ^^^^ do not turn off Wno-unused-function, MESS compile will fail due to mame/drivers/cps1.c
349
350353# this warning is not supported on the os2 compilers
351354ifneq ($(TARGETOS),os2)
352355CFLAGS += -Wdeclaration-after-statement

Previous 15994 Revisions Next


© 1998-2018 The MESS Team