From: David M. Lee Date: Thu, 31 Jan 2013 17:37:41 +0000 (+0100) Subject: Allow override of CFLAGS X-Git-Tag: fio-2.0.14~50 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=7496ea3e7fb234a1c92067301c028934c325daad;ds=sidebyside Allow override of CFLAGS If you attempt to specify your own CFLAGS on the command line (such as make CFLAGS="--whatever"), this would prevent -DFIO_VERSION from being added to CFLAGS. This patch uses the override directive to allow the flag to be appended to CFLAGS. Signed-off-by: Jens Axboe --- diff --git a/Makefile b/Makefile index a4a478d9..45b20e61 100644 --- a/Makefile +++ b/Makefile @@ -177,7 +177,7 @@ FIO-VERSION-FILE: FORCE @$(SHELL) ./FIO-VERSION-GEN -include FIO-VERSION-FILE -CFLAGS += -DFIO_VERSION='"$(FIO_VERSION)"' +override CFLAGS += -DFIO_VERSION='"$(FIO_VERSION)"' .c.o: .depend FORCE $(QUIET_CC)$(CC) -o $@ $(CFLAGS) $(CPPFLAGS) -c $<