Skip to content

Commit

Permalink
Use ifeq instead of ifdef for user-definable build options
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg committed Nov 22, 2020
1 parent 5fa3051 commit 857afcc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions interface/Makefile
Expand Up @@ -19,7 +19,7 @@ ifeq ($(ARCH), MIPS)
SUPPORT_GEMM3M = 1
endif

ifndef NO_FBLAS
ifneq ($(NO_FBLAS), 1)

SBLAS1OBJS = \
saxpy.$(SUFFIX) sswap.$(SUFFIX) \
Expand Down Expand Up @@ -146,7 +146,7 @@ ZBLAS3OBJS += zgemm3m.$(SUFFIX)

endif

ifdef EXPRECISION
ifeq ($(EXPRECISION), 1)

QBLAS1OBJS = \
qaxpy.$(SUFFIX) qswap.$(SUFFIX) \
Expand Down Expand Up @@ -511,11 +511,11 @@ endif

FUNCOBJS = $(SBEXTOBJS) $(CXERBLAOBJS) $(SBBLASOBJS) $(SBLASOBJS) $(DBLASOBJS) $(CBLASOBJS) $(ZBLASOBJS)

ifdef EXPRECISION
ifeq ($(EXPRECISION), 1)
FUNCOBJS += $(QBLASOBJS) $(XBLASOBJS)
endif

ifdef QUAD_PRECISION
ifeq ($(QUAD_PRECISION), 1)
FUNCOBJS += $(QBLASOBJS) $(XBLASOBJS)
endif

Expand Down

0 comments on commit 857afcc

Please sign in to comment.