Previous 15994 Revisions Next

r1058 Sunday 30th September, 2007 at 14:40:17 UTC by Firewave
brought in line with the offical MAME makefile
[ROOT]makefile.mes

makefile.mes
r1057r1058
6666# uncomment next line to include the debugger
6767# DEBUG = 1
6868
69# uncomment next line to include the internal profiler
70# PROFILER = 1
71
6972# uncomment next line to use DRC MIPS3 engine
7073X86_MIPS3_DRC = 1
7174
r1057r1058
107110# uncomment next line to include the symbols
108111# SYMBOLS = 1
109112
110# uncomment next line to include profiling information
113# uncomment next line to include profiling information from the compiler
111114# PROFILE = 1
112115
113116# uncomment next line to generate a link map for exception handling in windows
r1057r1058
132135
133136# disable DRC cores for 64-bit builds
134137ifdef PTR64
135X86_MIPS3_DRC =
136138X86_PPC_DRC =
137139endif
138140
r1057r1058
145147endif
146148endif
147149
150# profiler defaults to on for DEBUG builds
151ifdef DEBUG
152ifndef PROFILER
153PROFILER = 1
154endif
155endif
148156
149157
158
150159#-------------------------------------------------
151160# platform-specific definitions
152161#-------------------------------------------------
r1057r1058
172181
173182
174183#-------------------------------------------------
175# form the name of the executable
176#-------------------------------------------------
177
178ifeq ($(OSD),msdos)
179PREFIX = d
180endif
181
182#-------------------------------------------------
183184# based on the architecture, determine suffixes
184185# and endianness
185186#-------------------------------------------------
r1057r1058
322323DEFS += -DNDEBUG
323324endif
324325
326# define MAME_PROFILER if we are a profiling build
327ifdef PROFILER
328DEFS += -DMAME_PROFILER
329endif
330
325331# define VOODOO_DRC if we are building the DRC Voodoo engine
326332ifdef X86_VOODOO_DRC
327333DEFS += -DVOODOO_DRC
r1057r1058
371377CFLAGS += -Werror $(ARCH) -fno-strict-aliasing
372378endif
373379
380# if symbols are on, make sure we have frame pointers
381ifdef SYMBOLS
382CFLAGS += -fno-omit-frame-pointer
383endif
374384
375385
376
377
378386ifeq ($(OSD),windows)
379387
380388DEFS += -DWIN32 -DWINNT
r1057r1058
424432LDFLAGS =
425433LDFLAGSEMULATOR =
426434
435# add profiling information for the linker
436ifdef PROFILE
437LDFLAGS += -pg
438endif
439
427440# strip symbols and other metadata in non-symbols and non profiling builds
428441ifndef SYMBOLS
429442ifndef PROFILE

Previous 15994 Revisions Next


© 1998-2018 The MESS Team