Handle erroneous user settings NOFORTRAN=0 and NO_FORTRAN
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Tue, 19 Jun 2018 18:53:19 +0000 (20:53 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Jun 2018 18:53:19 +0000 (20:53 +0200)
Makefile

index 56b4426..728567f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,15 @@ ifeq ($(BUILD_RELAPACK), 1)
 RELA = re_lapack
 endif
 
+ifeq ($(NOFORTRAN), 0)
+undefine NOFORTRAN
+endif
+
+ifeq ($(NO_FORTRAN), 1)
+undefine NO_FORTRAN
+NOFORTRAN=1
+endif
+
 LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast,$(LAPACK_FFLAGS))
 
 SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench