- Added self-modifying code notifications for Valgrind.
Build with make VALGRIND=1 to turn them on. SVN r1025 (trunk)
This commit is contained in:
parent
000f3e0ef1
commit
e203ccda20
7 changed files with 81 additions and 0 deletions
|
|
@ -32,6 +32,11 @@ CFLAGS += -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNEED_STRUPR
|
|||
LDFLAGS += -lz -ljpeg `sdl-config --libs` `pkg-config gtk+-2.0 --libs` $(FMOD_PREFIX)/lib/libfmodex${X64}.so
|
||||
NASMFLAGS += -f elf -DM_TARGET_LINUX
|
||||
|
||||
ifdef VALGRIND
|
||||
NOSTRIP = 1
|
||||
NASMFLAGS += -DVALGRIND_AWARE
|
||||
endif
|
||||
|
||||
SRCDIRS = src/ $(addprefix src/,g_doom/ g_heretic/ g_hexen/ g_raven/ g_shared/ g_strife/ oplsynth/ sound/ sdl/ textures/ thingdef/ xlat/ timidity/)
|
||||
VPATH = $(SRCDIRS)
|
||||
INCLUDES = $(addprefix -I,$(SRCDIRS))
|
||||
|
|
@ -71,6 +76,8 @@ else
|
|||
LDFLAGS += -Wl,-Map=$(ZDOOM).map
|
||||
ifndef NOSTRIP
|
||||
LDFLAGS += -s
|
||||
else
|
||||
CFLAGS += -g
|
||||
endif
|
||||
ZDOOMBIN = $(ZDOOM)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue