gitrev.mk: CFLAGS => CPPFLAGS

This commit is contained in:
Thomas Bernard 2020-04-29 01:49:06 +02:00
parent 7800de9429
commit 2a8368a2de
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# (c) 2019 Thomas Bernard
# (c) 2019-2020 Thomas Bernard
# For GNU Make
ISGITREPO := $(shell git rev-parse --is-inside-work-tree)
ifeq ($(ISGITREPO),true)
GITREF := $(shell git rev-parse --short HEAD)
GITBRANCH := $(shell git rev-parse --abbrev-ref HEAD)
CFLAGS += -DMINIUPNPD_GIT_REF=\"$(GITBRANCH)-$(GITREF)\"
CPPFLAGS += -DMINIUPNPD_GIT_REF=\"$(GITBRANCH)-$(GITREF)\"
endif