Use ifeq instead of ifdef for user-definable options
@@ -7,7 +7,7 @@ COMMONOBJS = memory.$(SUFFIX) xerbla.$(SUFFIX) c_abs.$(SUFFIX) z_abs.$(SUFFIX)
ifdef SMP
COMMONOBJS += blas_server.$(SUFFIX) divtable.$(SUFFIX) blasL1thread.$(SUFFIX)
-ifndef NO_AFFINITY
+ifneq ($(NO_AFFINITY), 1)
COMMONOBJS += init.$(SUFFIX)
endif
endif
@@ -32,11 +32,11 @@ else
COMMONOBJS += parameter.$(SUFFIX)
endif
-ifdef EXPRECISION
+ifeq ($(EXPRECISION), 1)
COMMONOBJS += x_abs.$(SUFFIX) qlamch.$(SUFFIX) qlamc3.$(SUFFIX)
endif
-ifdef QUAD_PRECISION
+ifeq ($(QUAD_PRECISION), 1)
COMMONOBJS += addx.$(SUFFIX) mulx.$(SUFFIX)
endif
@@ -46,11 +46,9 @@ ifeq ($(C_COMPILER), PGI)
endif
endif
-ifdef USE_CUDA
ifeq ($(USE_CUDA), 1)
COMMONOBJS += cuda_init.$(SUFFIX)
endif
-endif
ifdef FUNCTION_PROFILE
COMMONOBJS += profile.$(SUFFIX)
