mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Some testing for valgrind in the makefile
This commit is contained in:
parent
89893f9a24
commit
d5d38e94ef
2 changed files with 11 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
.include "include.mk"
|
.include "include.mk"
|
||||||
|
|
||||||
GITTEST != git describe --always 2>/dev/null
|
GITTEST != git describe --always 2>/dev/null
|
||||||
|
VALTEST != valgrind --version 2>/dev/null
|
||||||
GITINFO :=
|
GITINFO :=
|
||||||
|
|
||||||
.if $(GITTEST)
|
.if $(GITTEST)
|
||||||
|
@ -34,6 +35,11 @@ CFLAGS += -Wall -Wextra -Werror -Wstrict-aliasing
|
||||||
. endif
|
. endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if !$(VALTEST)
|
||||||
|
CFLAGS += -DNVALGRIND
|
||||||
|
.endif
|
||||||
|
|
||||||
|
|
||||||
CFLAGS += -DGMQCC_GITINFO=\"$(GITINFO)\" $(OPTIONAL)
|
CFLAGS += -DGMQCC_GITINFO=\"$(GITINFO)\" $(OPTIONAL)
|
||||||
DEPS != for i in $(OBJ_C) $(OBJ_P) $(OBJ_T) $(OBJ_X); do echo $$i; done | sort | uniq
|
DEPS != for i in $(OBJ_C) $(OBJ_P) $(OBJ_T) $(OBJ_X); do echo $$i; done | sort | uniq
|
||||||
|
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -34,6 +34,10 @@ ifneq ($(shell git describe --always 2>/dev/null),)
|
||||||
CFLAGS += -DGMQCC_GITINFO="\"$(shell git describe --always)\""
|
CFLAGS += -DGMQCC_GITINFO="\"$(shell git describe --always)\""
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(shell valgrind --version 2>/dev/null),)
|
||||||
|
CFLAGS += -DNVALGRIND
|
||||||
|
endif
|
||||||
|
|
||||||
# do this last otherwise there is whitespace in the command output and
|
# do this last otherwise there is whitespace in the command output and
|
||||||
# it makes my OCD act up
|
# it makes my OCD act up
|
||||||
CFLAGS += $(OPTIONAL)
|
CFLAGS += $(OPTIONAL)
|
||||||
|
|
Loading…
Reference in a new issue