| 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 |
| r1127 | r1128 | |
|---|---|---|
| 58 | 58 | #------------------------------------------------- |
| 59 | 59 | |
| 60 | 60 | # disable DRC cores for PowerPC builds |
| 61 | ifdef G3 | |
| 62 | PPC = 1 | |
| 63 | endif | |
| 64 | ||
| 61 | 65 | ifdef G4 |
| 62 | 66 | PPC = 1 |
| 63 | 67 | endif |
| r1127 | r1128 | |
|---|---|---|
| 15 | 15 | #include <SDL/SDL_thread.h> |
| 16 | 16 | |
| 17 | 17 | #include <time.h> |
| 18 | #if defined(SDLMAME_UNIX) | |
| 18 | #if defined(SDLMAME_UNIX) | |
| 19 | 19 | #include <sys/time.h> |
| 20 | 20 | #endif |
| 21 | 21 | |
| r1127 | r1128 | |
| 708 | 708 | window->refresh = config->refresh; |
| 709 | 709 | window->monitor = monitor; |
| 710 | 710 | window->fullscreen = !video_config.windowed; |
| 711 | if (!window->fullscreen) | |
| 712 | { | |
| 713 | window->windowed_width = config->width; | |
| 714 | window->windowed_height = config->height; | |
| 715 | } | |
| 711 | 716 | window->totalColors = config->totalColors; |
| 712 | 717 | |
| 713 | 718 | // add us to the list |
| r1127 | r1128 | |
|---|---|---|
| 91 | 91 | # P4 = 1 |
| 92 | 92 | # PM = 1 |
| 93 | 93 | # AMD64 = 1 |
| 94 | # G3 = 1 | |
| 94 | 95 | # G4 = 1 |
| 95 | 96 | # G5 = 1 |
| 96 | 97 | # CELL = 1 |
| r1127 | r1128 | |
| 129 | 130 | |
| 130 | 131 | # disable DRC cores for 64-bit builds |
| 131 | 132 | ifdef PTR64 |
| 132 | X86_MIPS3_DRC = | |
| 133 | 133 | X86_PPC_DRC = |
| 134 | 134 | endif |
| 135 | 135 | |
| r1127 | r1128 | |
| 212 | 212 | ARCH = -march=pentium3 -msse2 |
| 213 | 213 | endif |
| 214 | 214 | |
| 215 | ifdef G3 | |
| 216 | SUFFIX = g3 | |
| 217 | ARCH = -mtune=G3 -isysroot /Developer/SDKs/MacOSX10.3.9.sdk | |
| 218 | ENDIAN = big | |
| 219 | endif | |
| 220 | ||
| 215 | 221 | ifdef G4 |
| 216 | 222 | SUFFIX = g4 |
| 217 | 223 | ARCH = -mcpu=G4 |
| r1127 | r1128 | |
| 333 | 339 | endif |
| 334 | 340 | |
| 335 | 341 | # add a basic set of warnings |
| 336 | ||
| 337 | 342 | CFLAGS += \ |
| 338 | 343 | -Wall \ |
| 339 | 344 | -Wpointer-arith \ |
| r1127 | r1128 | |
| 345 | 350 | -Wwrite-strings \ |
| 346 | 351 | -Wno-unused-function \ |
| 347 | 352 | |
| 348 | # ^^^^ do not turn off Wno-unused-function, MESS compile will fail due to mame/drivers/cps1.c | |
| 349 | ||
| 350 | 353 | # this warning is not supported on the os2 compilers |
| 351 | 354 | ifneq ($(TARGETOS),os2) |
| 352 | 355 | CFLAGS += -Wdeclaration-after-statement |
| Previous | 15994 Revisions | Next |