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

index 5946ad9..f485700 100644 (file)
@@ -8,6 +8,19 @@ CBLASOBJS = cpotf2_U.$(SUFFIX) cpotf2_L.$(SUFFIX)
 ZBLASOBJS = zpotf2_U.$(SUFFIX) zpotf2_L.$(SUFFIX)
 XBLASOBJS = xpotf2_U.$(SUFFIX) xpotf2_L.$(SUFFIX)
 
+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
+
 spotf2_U.$(SUFFIX) : potf2_U.c
        $(CC) -c $(CFLAGS) -UCOMPLEX -UDOUBLE $< -o $(@F)