Previous 199869 Revisions Next

r24651 Friday 2nd August, 2013 at 09:48:25 UTC by Oliver Stöneberg
removed Visual Studio specific makefile define MAXOPT in favor of adding more generic define LTO [Oliver Stöneberg]
[/trunk]makefile
[src/osd/windows]windows.mak

trunk/makefile
r24650r24651
250250# specify the sanitizer to use or leave empty to use none
251251# SANITIZE =
252252
253# uncomment next line to enable LTO (link-time optimizations)
254# LTO = 1
255
253256# specify optimization level or leave commented to use the default
254257# (default is OPTIMIZE = 3 normally, or OPTIMIZE = 0 with symbols)
255258# OPTIMIZE = 3
r24650r24651
495498# if we are optimizing, include optimization options
496499ifneq ($(OPTIMIZE),0)
497500CCOMFLAGS += -fno-strict-aliasing $(ARCHOPTS)
501ifdef LTO
502CCOMFLAGS += -flto
498503endif
504endif
499505
500506# add a basic set of warnings
501507CCOMFLAGS += \
r24650r24651
603609endif
604610endif
605611
612ifneq ($(OPTIMIZE),0)
613ifdef LTO
614LDFLAGS += -flto
615endif
616endif
617
606618# output a map file (emulator only)
607619ifdef MAP
608620LDFLAGSEMULATOR += -Wl,-Map,$(FULLNAME).map
trunk/src/osd/windows/windows.mak
r24650r24651
129129CCOMFLAGS += /MT
130130endif
131131
132# turn on link-time codegen if the MAXOPT flag is also set
133ifdef MAXOPT
134CCOMFLAGS += /GL
135LDFLAGS += /LTCG
132# use link-time optimizations when enabled
133ifneq ($(OPTIMIZE),0)
134ifdef LTO
136135AR += /LTCG
137136endif
137endif
138138
139139# disable warnings and link against bufferoverflowu for 64-bit targets
140140ifeq ($(PTR64),1)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team