Adapt to having only a subset of variable types supported
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sun, 11 Oct 2020 12:40:51 +0000 (14:40 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Oct 2020 12:40:51 +0000 (14:40 +0200)
lapack/potrf/Makefile

index 21efa55..feefd04 100644 (file)
@@ -17,6 +17,20 @@ ZBLASOBJS += zpotrf_U_parallel.$(SUFFIX) zpotrf_L_parallel.$(SUFFIX)
 XBLASOBJS += xpotrf_U_parallel.$(SUFFIX) xpotrf_L_parallel.$(SUFFIX)
 endif
 
+ifeq "$(or $(BUILD_SINGLE),$(BUILD_DOUBLE))" ""
+SBLASOBJS=
+endif
+ifneq ($(BUILD_DOUBLE),1)
+DBLASOBJS=
+endif
+ifeq "$(or $(BUILD_COMPLEX),$(BUILD_COMPLEX16))" ""
+CBLASOBJS=
+endif
+ifneq ($(BUILD_COMPLEX16),1)
+ZBLASOBJS=
+endif
+
+
 spotrf_U_single.$(SUFFIX) : potrf_U_single.c
        $(CC) -c $(CFLAGS) -UCOMPLEX -UDOUBLE $< -o $(@F)