makefile.mes
| r1057 | r1058 | |
| 66 | 66 | # uncomment next line to include the debugger |
| 67 | 67 | # DEBUG = 1 |
| 68 | 68 | |
| 69 | # uncomment next line to include the internal profiler |
| 70 | # PROFILER = 1 |
| 71 | |
| 69 | 72 | # uncomment next line to use DRC MIPS3 engine |
| 70 | 73 | X86_MIPS3_DRC = 1 |
| 71 | 74 | |
| r1057 | r1058 | |
| 107 | 110 | # uncomment next line to include the symbols |
| 108 | 111 | # SYMBOLS = 1 |
| 109 | 112 | |
| 110 | | # uncomment next line to include profiling information |
| 113 | # uncomment next line to include profiling information from the compiler |
| 111 | 114 | # PROFILE = 1 |
| 112 | 115 | |
| 113 | 116 | # uncomment next line to generate a link map for exception handling in windows |
| r1057 | r1058 | |
| 132 | 135 | |
| 133 | 136 | # disable DRC cores for 64-bit builds |
| 134 | 137 | ifdef PTR64 |
| 135 | | X86_MIPS3_DRC = |
| 136 | 138 | X86_PPC_DRC = |
| 137 | 139 | endif |
| 138 | 140 | |
| r1057 | r1058 | |
| 145 | 147 | endif |
| 146 | 148 | endif |
| 147 | 149 | |
| 150 | # profiler defaults to on for DEBUG builds |
| 151 | ifdef DEBUG |
| 152 | ifndef PROFILER |
| 153 | PROFILER = 1 |
| 154 | endif |
| 155 | endif |
| 148 | 156 | |
| 149 | 157 | |
| 158 | |
| 150 | 159 | #------------------------------------------------- |
| 151 | 160 | # platform-specific definitions |
| 152 | 161 | #------------------------------------------------- |
| r1057 | r1058 | |
| 172 | 181 | |
| 173 | 182 | |
| 174 | 183 | #------------------------------------------------- |
| 175 | | # form the name of the executable |
| 176 | | #------------------------------------------------- |
| 177 | | |
| 178 | | ifeq ($(OSD),msdos) |
| 179 | | PREFIX = d |
| 180 | | endif |
| 181 | | |
| 182 | | #------------------------------------------------- |
| 183 | 184 | # based on the architecture, determine suffixes |
| 184 | 185 | # and endianness |
| 185 | 186 | #------------------------------------------------- |
| r1057 | r1058 | |
| 322 | 323 | DEFS += -DNDEBUG |
| 323 | 324 | endif |
| 324 | 325 | |
| 326 | # define MAME_PROFILER if we are a profiling build |
| 327 | ifdef PROFILER |
| 328 | DEFS += -DMAME_PROFILER |
| 329 | endif |
| 330 | |
| 325 | 331 | # define VOODOO_DRC if we are building the DRC Voodoo engine |
| 326 | 332 | ifdef X86_VOODOO_DRC |
| 327 | 333 | DEFS += -DVOODOO_DRC |
| r1057 | r1058 | |
| 371 | 377 | CFLAGS += -Werror $(ARCH) -fno-strict-aliasing |
| 372 | 378 | endif |
| 373 | 379 | |
| 380 | # if symbols are on, make sure we have frame pointers |
| 381 | ifdef SYMBOLS |
| 382 | CFLAGS += -fno-omit-frame-pointer |
| 383 | endif |
| 374 | 384 | |
| 375 | 385 | |
| 376 | | |
| 377 | | |
| 378 | 386 | ifeq ($(OSD),windows) |
| 379 | 387 | |
| 380 | 388 | DEFS += -DWIN32 -DWINNT |
| r1057 | r1058 | |
| 424 | 432 | LDFLAGS = |
| 425 | 433 | LDFLAGSEMULATOR = |
| 426 | 434 | |
| 435 | # add profiling information for the linker |
| 436 | ifdef PROFILE |
| 437 | LDFLAGS += -pg |
| 438 | endif |
| 439 | |
| 427 | 440 | # strip symbols and other metadata in non-symbols and non profiling builds |
| 428 | 441 | ifndef SYMBOLS |
| 429 | 442 | ifndef PROFILE |