buildsys: use CC, CPPFLAGS and CFLAGS

pvemailforward is a tiny oneliner, but for the sake of best
practices, let's use the build tools from the environment.
For example, with dpkg-buildpackage this will make us use
-D_FORTIFY_SOURCE=2 etc.
This commit is contained in:
Wolfgang Bumiller 2017-07-19 08:49:58 +02:00
parent db3395bb83
commit 103ddb8868

View File

@ -66,7 +66,7 @@ pvereport.1.pod: pvereport
mv $@.tmp $@
pvemailforward: pvemailforward.c
gcc $< -o $@ -g -O2 -Wall -ldl -lc
$(CC) $(CPPFLAGS) $(CFLAGS) -Wall -g -O2 $< -o $@
.PHONY: install
install: ${SCRIPTS} ${CLI_MANS} ${SERVICE_MANS} pvemailforward $(addsuffix .service-bash-completion, ${SERVICES}) $(addsuffix .bash-completion, ${CLITOOLS})