Previous 199869 Revisions Next

r34864 Thursday 5th February, 2015 at 13:40:19 UTC by Oliver Stöneberg
added makefile define CPP11 to compile C++ code as C++11 [Oliver Stöneberg]
[/trunk]makefile

trunk/makefile
r243375r243376
281281# uncomment to enable OpenMP optimized code
282282# OPENMP = 1
283283
284# uncomment to compile c++ code as C++11
285# CPP11 = 1
286
284287# specify optimization level or leave commented to use the default
285288# (default is OPTIMIZE = 3 normally, or OPTIMIZE = 0 with symbols)
286289# OPTIMIZE = 3
r243375r243376
525528# we compile C-only to C89 standard with GNU extensions
526529# we compile C++ code to C++98 standard with GNU extensions
527530CONLYFLAGS += -std=gnu89
528CPPONLYFLAGS += -x c++ -std=gnu++98
531ifdef CPP11
532CPPONLYFLAGS += -x c++ -std=gnu++11
533else
534CPPONLYFLAGS += -x c++ -std=gnu++89
535endif
529536COBJFLAGS += -x objective-c++
530537
531538# this speeds it up a bit by piping between the preprocessor/compiler/assembler


Previous 199869 Revisions Next


© 1997-2024 The MAME Team