Révision 4 src/Makefile

Makefile (revision 4)
5 5
# You might also have to edit the location of
6 6
# some libraries (like mkl for ifort)
7 7

  
8
Machine=gfortran
8
Machine=arqg
9 9

  
10 10
###########################################
11 11
#                                         #
......
32 32

  
33 33
ifeq ($(Machine),gfortran)
34 34
# Flags for gfortran
35
COMP=gfortran -g  -Wall -fbounds-check
35
COMP=gfortran  -fbounds-check -pedantic -std=gnu 
36 36
#COMP=g95  -fbounds-check -g -ftrace=full -ftrace=frame  -save-temps
37 37
F90=${COMP}
38 38
F77=${COMP}
......
136 136
# Flags for arq Ifort
137 137
COMP=ifort
138 138
F90=${COMP}   -g -check bounds  -check format -check uninit  -traceback
139
#F90=${COMP}   -g -check all  -traceback
139 140
F77=${F90}
140 141
#F90=${COMP}  
141 142
LINK=${COMP} -lguide -lpthread   -L/usr/lib/ \
......
147 148

  
148 149
ifeq ($(Machine),arqg)
149 150
# Flags for arq GFortran
150
COMP=gfortran
151
COMP=gfortran -fbacktrace -fbounds-check -pedantic -std=gnu
151 152
F90=${COMP}  
152 153
F77=${F90}
153 154
#F90=${COMP}  
......
253 254
      Hupdate_MS.f90 \
254 255
      Hupdate_Bofill.f90 \
255 256
      Hinvup_BFGS.f90 \
257
      Hinvup_DFP.f90 \
256 258
      CalcTangent.f90 \
257 259
      Step_RFO_all.f90 \
258 260
      Step_GEDIIS.f90  \
......
348 350
all: path utils
349 351

  
350 352
install: 
351
	mkdir ${PWD}/../exe
353
	mkdir -p ${PWD}/../exe
352 354
	ln -s ${PWD}/Path.exe ../exe/.
353 355
	ln -s ${PWD}/../utils/xyz2scan ../exe/.
354 356
	ln -s ${PWD}/../utils/xyz2path ../exe/.
......
369 371
	@echo "Utilities have been created."
370 372
	@echo "Make sure that they are in your PATH environment"
371 373

  
372
xyz2scan: ../utils/Xyz2Scan.f
373
	${F90} -o ../utils/xyz2scan ../utils/Xyz2Scan.f
374
xyz2scan: ../utils/Xyz2Scan.f90
375
	${F90} -o ../utils/xyz2scan ../utils/Xyz2Scan.f90
374 376

  
375
xyz2path: ../utils/Xyz2Path.f ../utils/Xyz2Path.param 
376
	${F90} -o ../utils/xyz2path ../utils/Xyz2Path.f
377
xyz2path: ../utils/Xyz2Path.f90 ../utils/Xyz2Path.param 
378
	${F90} -o ../utils/xyz2path ../utils/Xyz2Path.f90
377 379

  
378 380
tgz:  ${SRC0} ${SRC} Makefile ${EXAMPLES} ${MODSRC} ${SRCLAPACKD} ${SRCLAPACKU} ${SRCBLAS} 
379
	tar -cvf Path_${Version}.tar ${SRC0} ${SRC} Makefile ${EXAMPLES} ${MODSRC}
380
	gzip Path_${Version}.tar 
381
	mv  Path_${Version}.tar.gz Path_${Version}.tgz
382
	@echo "Path_${Version}.tgz  has been created."
381
	tar -cvf OpenPath_${Version}.tar ${SRC0} ${SRC} Makefile ${EXAMPLES} ${MODSRC}
382
	gzip OpenPath_${Version}.tar 
383
	mv  OpenPath_${Version}.tar.gz OpenPath_${Version}.tgz
384
	@echo "OpenPath_${Version}.tgz  has been created."
383 385

  
384 386
lapack: ${OBJLAPACK} 
385 387
	ar rcs ./lapack/lapack.a ${OBJLAPACK}

Formats disponibles : Unified diff