1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Teemu Ikonen <tpikonen@gmail.com>
Date: Sat, 13 Oct 2018 21:24:58 +0300
Subject: makefile-fix: Prepend CPPFLAGS value to CFLAGS.
---
Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index cc65588..0213090 100644
--- a/Makefile
+++ b/Makefile
@@ -667,10 +667,11 @@ endif
#########################################################
CC = gcc
C++ = g++
+CPPFLAGS ?=
ifneq ($(CBFDEBUG),)
-CFLAGS += -g -O0 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing -DCBFDEBUG=1 $(HDF5CFLAGS)
+CFLAGS += $(CPPFLAGS) -g -O0 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing -DCBFDEBUG=1 $(HDF5CFLAGS)
else
-CFLAGS += -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing $(HDF5CFLAGS)
+CFLAGS += $(CPPFLAGS) -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing $(HDF5CFLAGS)
endif
LDFLAGS +=
F90C = gfortran
|