Previous 199869 Revisions Next

r22662 Saturday 4th May, 2013 at 09:48:04 UTC by Oliver Stöneberg
added makefile define SANITIZE to specify the sanitizer to use (supported by latest GCC and clang versions) / added additional library necessary to link with clang on linux (nw)
[/trunk]makefile

trunk/makefile
r22661r22662
247247# uncomment next line to generate verbose build information
248248# VERBOSE = 1
249249
250# specify the sanitizer to use or leave empty to use none
251# SANITIZE =
252
250253# specify optimization level or leave commented to use the default
251254# (default is OPTIMIZE = 3 normally, or OPTIMIZE = 0 with symbols)
252255# OPTIMIZE = 3
r22661r22662
528531   -Wno-self-assign-field
529532endif
530533
534ifdef SANITIZE
535CCOMFLAGS += -fsanitize=$(SANITIZE)
536endif
531537
532538#-------------------------------------------------
533539# include paths
r22661r22662
594600LDFLAGSEMULATOR += -Wl,-Map,$(FULLNAME).map
595601endif
596602
603ifdef SANITIZE
604LDFLAGS += -fsanitize=$(SANITIZE)
605endif
597606
598607
599608#-------------------------------------------------
r22661r22662
684693MIDI_LIB =
685694endif
686695
696ifneq (,$(findstring clang,$(CC)))
697LIBS += -lstdc++ -lpthread
698endif
699
687700#-------------------------------------------------
688701# 'default' target needs to go here, before the
689702# include files which define additional targets

Previous 199869 Revisions Next


© 1997-2024 The MAME Team