Commit 71a863f7 authored by Thomas Planche's avatar Thomas Planche
Browse files

added makefiles

parent e002965d
CFLAGS=-g -DGFORTRAN4
FC=gfortran
#FFLAGS=-O -g -fno-automatic -pg
FFLAGS=-O9 -Wall -fno-automatic -pedantic -cpp
#FFLAGS=-O9 -Wall -fno-automatic -pedantic -mtune=native
#FFLAGS=-O4 -Wall -fno-automatic -pedantic -fbacktrace -cpp
#FFLAGS=-Og -O4 -Wall -fno-automatic -pedantic -cpp
#FFLAGS=-O4 -Wall -pedantic
.POSIX:
all :
cd modules ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
cd common ; rm libzg.a || true ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
cd zgoubi ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
cd zpop ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
# cd guide ; make
clean :
$(RM) *~
cd modules ; make clean
cd common ; make clean
cd zgoubi/coupling ; rm libcoupl.a ; make clean
cd zgoubi/svd ; rm libsvd.a ; make clean
cd zgoubi ; make clean
cd zpop/liblns ; $(MAKE) clean
cd zpop ; $(MAKE) clean
# cd guide ; $(MAKE) clean
# Comments :
# -fno-automatic Treat each program unit (except those marked as RECURSIVE) as if the SAVE statement were specified for every local variable and array referenced in it. Does not affect common blocks. (Some Fortran compilers provide this option under the name -static or -save.) The default, which is -fautomatic, uses the stack for local variables smaller than the value given by -fmax-stack-var-size.
CFLAGS = -g -DGFORTRAN4
#
# Case of gfortran compiler, next two lines
#FC=gfortran
#FFLAGS=-O4 -Wall -fno-automatic -pedantic -cpp
#
########
# Case of ifort compiler, next two lines
FC=ifort
### check : check array boundary errors
##########################################FFLAGS= -xHOST -O9 -ip -traceback -check -static -save -cpp
#FFLAGS= -xHOST -O9 -ip -traceback -check -save -cpp
#FFLAGS= -xHOST -O9 -ip -traceback -static -save -cpp
FFLAGS= -xHOST -O9 -ip -static -save -cpp
#FFLAGS= -xHOST -O9 -ip -traceback -static -save -cpp
######## case OWL :
# Note : the -static option includes local libs (-lm etc.) into executable. Pb with that on cscomputers
#FC=/opt/intel/bin/ifort
#FFLAGS= -xHOST -O4 -ip -save -cpp
#FFLAGS= -xHOST -O4 -ip -traceback -save -cpp
#FFLAGS= -xHOST -O4 -ip -traceback -check -save -cpp
.POSIX:
all :
cd modules ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
cd common ; rm libzg.a || true ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
cd zgoubi ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
cd zpop ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
cd guide ; make
clean :
$(RM) *~
cd modules ; make clean
cd common ; make clean
cd zgoubi/coupling ; make clean
cd zgoubi ; make clean
cd zpop/liblns ; $(MAKE) clean
cd zpop ; $(MAKE) clean
cd guide ; $(MAKE) clean
# Comments :
# -fno-automatic Treat each program unit (except those marked as RECURSIVE) as if the SAVE statement were specified for every local variable and array referenced in it. Does not affect common blocks. (Some Fortran compilers provide this option under the name -static or -save.) The default, which is -fautomatic, uses the stack for local variables smaller than the value given by -fmax-stack-var-size.
\ No newline at end of file
CFLAGS = -g -DGFORTRAN4
#
# Case of gfortran compiler, next two lines
#FC=gfortran
#FFLAGS=-O4 -Wall -fno-automatic -pedantic -cpp
#
########
# Case of ifort compiler, next two lines
#FC=ifort
### check : check array boundary errors
##########################################FFLAGS= -xHOST -O3 -ip -traceback -check -static -save -cpp
#FFLAGS= -xHOST -O3 -ip -traceback -check -save -cpp
#FFLAGS= -xHOST -O3 -ip -traceback -static -save -cpp
#FFLAGS= -xHOST -O3 -ip -static -save -cpp
#FFLAGS= -xHOST -O3 -ip -traceback -static -save -cpp
######## case OWL :
# Note : the -static option includes local libs (-lm etc.) into executable. Pb with that on cscomputers
FC=/opt/intel/bin/ifort
FFLAGS= -xHOST -O4 -ip -save -cpp
#FFLAGS= -xHOST -O4 -ip -traceback -save -cpp
#FFLAGS= -xHOST -O4 -ip -traceback -check -save -cpp
.POSIX:
all :
cd modules ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
cd common ; rm libzg.a || true ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
cd zgoubi ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
cd guide ; make
clean :
$(RM) *~
cd modules ; make clean
cd common ; make clean
cd zgoubi/coupling ; make clean
cd zgoubi ; make clean
cd guide ; $(MAKE) clean
\ No newline at end of file
CFLAGS=-g -DGFORTRAN4
FC=gfortran
FFLAGS=-O4 -Wall -fno-automatic -pedantic -cpp
.POSIX:
all :
cd common ; rm libzg.a ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
cd zpop ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
CFLAGS=-g -DGFORTRAN4
#FC=/usr/local/intel/composer_xe_2011_sp1.11.339/bin/ifort
FC=/opt/intel/bin/ifort
FFLAGS= -xHOST -O3 -ip -traceback -check -save -cpp
.POSIX:
all :
cd common ; rm libzg.a ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
cd zpop ; make CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment