Skip to content

Commit 857afcc

Browse files
authored
Use ifeq instead of ifdef for user-definable build options
1 parent 5fa3051 commit 857afcc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

interface/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ifeq ($(ARCH), MIPS)
1919
SUPPORT_GEMM3M = 1
2020
endif
2121

22-
ifndef NO_FBLAS
22+
ifneq ($(NO_FBLAS), 1)
2323

2424
SBLAS1OBJS = \
2525
saxpy.$(SUFFIX) sswap.$(SUFFIX) \
@@ -146,7 +146,7 @@ ZBLAS3OBJS += zgemm3m.$(SUFFIX)
146146

147147
endif
148148

149-
ifdef EXPRECISION
149+
ifeq ($(EXPRECISION), 1)
150150

151151
QBLAS1OBJS = \
152152
qaxpy.$(SUFFIX) qswap.$(SUFFIX) \
@@ -511,11 +511,11 @@ endif
511511

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

514-
ifdef EXPRECISION
514+
ifeq ($(EXPRECISION), 1)
515515
FUNCOBJS += $(QBLASOBJS) $(XBLASOBJS)
516516
endif
517517

518-
ifdef QUAD_PRECISION
518+
ifeq ($(QUAD_PRECISION), 1)
519519
FUNCOBJS += $(QBLASOBJS) $(XBLASOBJS)
520520
endif
521521

0 commit comments

Comments
 (0)