forked from radiasoft/zgoubi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile_zgoubi_ifort_Owl
executable file
·38 lines (34 loc) · 1.25 KB
/
Makefile_zgoubi_ifort_Owl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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