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 27
|
From: Teemu Ikonen <tpikonen@gmail.com>
Date: Thu, 11 Oct 2018 10:50:23 +0300
Subject: makefile-fix: Pick up CFLAGS and LDFLAGS from the environment.
---
Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 4bfa95c..cc65588 100644
--- a/Makefile
+++ b/Makefile
@@ -668,11 +668,11 @@ endif
CC = gcc
C++ = g++
ifneq ($(CBFDEBUG),)
-CFLAGS = -g -O0 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing -DCBFDEBUG=1 $(HDF5CFLAGS)
+CFLAGS += -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 += -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing $(HDF5CFLAGS)
endif
-LDFLAGS =
+LDFLAGS +=
F90C = gfortran
F90FLAGS = -g -fno-range-check -fallow-invalid-boz
F90LDFLAGS =
|