Skip to content

Commit 4d386c5

Browse files
committed
Change library order
1 parent 21ed7e3 commit 4d386c5

File tree

6 files changed

+19
-15
lines changed

6 files changed

+19
-15
lines changed

Ext_Lib/Save_AD_dnSVM-3.1.zip

-86.3 KB
Binary file not shown.

Ext_Lib/Save_AD_dnSVM-3.2.zip

86.3 KB
Binary file not shown.
Binary file not shown.

Ext_Lib/get_QDUtilLib.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ EXTLIB_TYPE=$1
55
echo "In get_QDUtilLib.sh"
66
pwd
77

8-
SAVE_version=Save_QDUtilLib-0.6
8+
SAVE_version=Save_QDUtilLib-0.7
99
LOC_version=QDUtilLib
1010

1111
rm -rf QDUtilLib* #always remove the link
1212

1313

1414
#latest release
15-
version=https://github.com/lauvergn/QDUtilLib/archive/refs/tags/v0.6.zip
15+
version=https://github.com/lauvergn/QDUtilLib/archive/refs/tags/v0.7.zip
1616
#latest HEAD version
1717
#version=https://github.com/lauvergn/QDUtilLib/archive/refs/heads/main.zip
1818

Ext_Lib/get_dnSVM.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ echo "In get_dnSVM.sh"
66
pwd
77

88

9-
SAVE_version=Save_AD_dnSVM-3.1
9+
SAVE_version=Save_AD_dnSVM-3.2
1010
LOC_version=AD_dnSVM
1111

1212

@@ -15,7 +15,7 @@ rm -rf AD_dnSVM* #always remove the link
1515

1616
#latest release
1717
#latest HEAD version (dev version)
18-
version=https://github.com/lauvergn/AD_dnSVM/archive/refs/tags/v3.1.zip
18+
version=https://github.com/lauvergn/AD_dnSVM/archive/refs/tags/v3.2.zip
1919

2020

2121
test -z $EXTLIB_TYPE && curl -LJ $version --output $LOC_version.zip

makefile

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ADMOD_DIR = $(AD_DIR)/OBJ/obj$(ext_obj)
8282
ADLIBA = $(AD_DIR)/libAD_dnSVM$(ext_obj).a
8383

8484
EXTMOD_DIR = $(QDMOD_DIR) $(ADMOD_DIR)
85-
EXTLib = $(QDLIBA) $(ADLIBA)
85+
EXTLib = $(ADLIBA) $(QDLIBA)
8686
#===============================================================================
8787
#=================================================================================
8888
#=================================================================================
@@ -103,19 +103,24 @@ ifeq ($(FFC),gfortran)
103103
endif
104104
FFLAGS0 := $(FFLAGS)
105105

106+
# where to store the .mod files
106107
FFLAGS +=-J$(MOD_DIR)
107108

109+
# where to look the .mod files
110+
FFLAGS += -I$(QDMOD_DIR) -I$(ADMOD_DIR)
111+
108112
# some cpreprocessing
109113
FFLAGS += -cpp $(CPPSHELL_QML)
110114

115+
FLIB = $(EXTLib)
111116
# OS management
112117
ifeq ($(LLAPACK),1)
113118
ifeq ($(OS),Darwin) # OSX
114119
# OSX libs (included lapack+blas)
115-
FLIB = -framework Accelerate
120+
FLIB += -framework Accelerate
116121
else # Linux
117122
# linux libs
118-
FLIB = -llapack -lblas
123+
FLIB += -llapack -lblas
119124
#
120125
# linux libs with mkl and with openmp
121126
#FLIB = -L$(MKLROOT)/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_gnu_thread
@@ -126,9 +131,6 @@ ifeq ($(FFC),gfortran)
126131

127132
FC_VER = $(shell $(FFC) --version | head -1 )
128133

129-
FFLAGS += -I$(QDMOD_DIR) -I$(ADMOD_DIR)
130-
FLIB += $(EXTLib)
131-
132134
endif
133135
#=================================================================================
134136
#=================================================================================
@@ -197,10 +199,10 @@ all: $(QMLIBA) $(MAIN).x $(TESTS).x
197199
#============= Main executable and tests ======
198200
#===============================================
199201
$(MAIN).x: $(OBJ_DIR)/$(MAIN).o $(QMLIBA)
200-
$(FFC) $(FFLAGS) -o $(MAIN).x $(OBJ_DIR)/$(MAIN).o $(FLIB) $(QMLIBA)
202+
$(FFC) $(FFLAGS) -o $(MAIN).x $(OBJ_DIR)/$(MAIN).o $(QMLIBA) $(FLIB)
201203

202204
$(TESTS).x: $(OBJ_DIR)/$(TESTS).o $(QMLIBA)
203-
$(FFC) $(FFLAGS) -o $(TESTS).x $(OBJ_DIR)/$(TESTS).o $(FLIB) $(QMLIBA)
205+
$(FFC) $(FFLAGS) -o $(TESTS).x $(OBJ_DIR)/$(TESTS).o $(QMLIBA) $(FLIB)
204206
#===============================================
205207
#============= Library: libQD.a ===============
206208
#===============================================
@@ -338,16 +340,18 @@ ifeq ($(FFC),ifort)
338340
FFLAGS += -qopenmp
339341
endif
340342

341-
# lapack management with cpreprocessing
342-
FFLAGS += -cpp -D__LAPACK="$(LLAPACK)"
343+
# some cpreprocessing
344+
FFLAGS += -cpp $(CPPSHELL_QML)
345+
346+
# where to look the .mod files
343347
FFLAGS += -I$(QDMOD_DIR) -I$(ADMOD_DIR)
344348

349+
FLIB = $(EXTLib)
345350
ifeq ($(LLAPACK),1)
346351
FLIB += -mkl -lpthread
347352
else
348353
FLIB += -lpthread
349354
endif
350-
FLIB += $(EXTLib)
351355

352356
FC_VER = $(shell $(F90) --version | head -1 )
353357

0 commit comments

Comments
 (0)