53
53
# and form the list of the libraries. Remember that libderiv and libr12
54
54
# depend on libint, and hence need to come first for GNU ld to work.
57
57
ifeq ($(findstring MP2R12,$(SUBDIRS)),MP2R12)
58
ifneq ($(findstring -lPSI_r12,$(INTLIBS)),-lPSI_r12)
59
INTLIBS := -lPSI_r12 $(INTLIBS)
58
ifneq ($(findstring -lr12,$(INTLIBS)),-lr12)
59
INTLIBS := -lr12 $(INTLIBS)
62
62
ifeq ($(findstring R12_Ints,$(SUBDIRS)),R12_Ints)
63
ifneq ($(findstring -lPSI_r12,$(INTLIBS)),-lPSI_r12)
64
INTLIBS := -lPSI_r12 $(INTLIBS)
63
ifneq ($(findstring -lr12,$(INTLIBS)),-lr12)
64
INTLIBS := -lr12 $(INTLIBS)
67
67
ifeq ($(findstring Default_Deriv1,$(SUBDIRS)),Default_Deriv1)
68
ifneq ($(findstring -lPSI_deriv,$(INTLIBS)),-lPSI_deriv)
69
INTLIBS := -lPSI_deriv $(INTLIBS)
68
ifneq ($(findstring -lPSI_deriv,$(INTLIBS)),-lderiv)
69
INTLIBS := -lderiv $(INTLIBS)
72
72
ifeq ($(findstring Default_Deriv2,$(SUBDIRS)),Default_Deriv2)
73
ifneq ($(findstring -lderiv,$(INTLIBS)),-lPSI_deriv)
74
INTLIBS := -lPSI_deriv $(INTLIBS)
73
ifneq ($(findstring -lderiv,$(INTLIBS)),-lderiv)
74
INTLIBS := -lderiv $(INTLIBS)