-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.inc_release
131 lines (112 loc) · 3.95 KB
/
Makefile.inc_release
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#================================================================
# ELSES version 0.06
# Copyright (C) ELSES. 2007-2015 all rights reserved
#================================================================
TOPDIR ?= .
# Common settings
MOD_OPT=-I
#XML_SELFTEST = './elses-xml-selftest'
# For cross compiler systems,
XML_SELFTEST = echo './elses-xml-selftest'
%.o:%.mod
XML-DIR = xmlf90-1.2g-elses
BINDIR=$(TOPDIR)/bin
SRCDIR=$(TOPDIR)/src
FFLAGS-NRL =$(MOD_OPT)$(TOPDIR)/src/Nrl
FFLAGS-XML =\
$(MOD_OPT)$(TOPDIR)/$(XML-DIR)/strings\
$(MOD_OPT)$(TOPDIR)/$(XML-DIR)/sax\
$(MOD_OPT)$(TOPDIR)/$(XML-DIR)/dom\
$(MOD_OPT)$(SRCDIR)
LIBS-XML = -L$(TOPDIR)/$(XML-DIR)/macros/lib -lflib
OBJS-XML = $(SRCDIR)/elses-xml-config.o $(SRCDIR)/elses-config.o\
$(SRCDIR)/elses-xml-misc.o $(SRCDIR)/elses-xml-sax-counter.o\
$(SRCDIR)/elses-xml-sax-handler.o $(SRCDIR)/elses-xml-sax-parser.o
# Dummy setting for LIBS-EXT
LIBS-EXT =
## for GNU Fortran compiler (gfortran)
FC = gfortran
FFLAGS = -O2 -fopenmp
#FFLAGS = -O0 -fopenmp -g
LDFLAGS = -fopenmp
LIBS = -L/usr/lib64 -llapack -lblas
## for Intel Fortran compiler (ifort)
#FC = ifort
#FFLAGS = -O -openmp
#LDFLAGS = $(FFLAGS)
#LIBS = -L /opt/intel/mkl/10.0.3.020/lib/em64t -lmkl_lapack -lmkl -lguide -lpthread
#LIBS = -L/opt/intel/mkl/10.0.3.020/lib/32 -lmkl_lapack -lmkl -lguide -lpthread
#LIBS = /opt/acml3.6.0/ifort64/lib/libacml.a
## for PGI Fortran compiler (pgf90)
#FC = pgf90
#FFLAGS = -O2 -g -mp
#LDFLAGS = -mp
#LIBS = -lacml
## for GNU G95 Fortran compiler (g95)
#FC = g95 -mno-cygwin
#FC = g95
#FFLAGS = -g -ftrace=full
#LDFLAGS =
#LIBS = -llapack -lblas
#LIBS = -L /opt/acml3.6.0/gnu64/lib -lacml -lacml_mv -lg2c
## for GNU Fortran compiler (gfortran on MacOS-X with Xcode)
#FC = gfortran
#FC = openmpif90
#FFLAGS = -O2 -fopenmp
#FFLAGS = -Wall -pedantic -fbounds-check -fbacktrace -O -Wuninitialized -ffpe-trap=invalid,zero,overflow
#FFLAGS = -Wall -pedantic -fbounds-check -fbacktrace -O -Wuninitialized -ffpe-trap=invalid,zero,overflow -std=f95
#LDFLAGS = -fopenmp
#LIBS = -framework vecLib
## for IBM pSeries p5-570 System
#F90 = xlf90
#F77 = xlf
#FFLAGS = -O2 -q64
#LDFLAGS =
#LIBS = -L/usr/local/lib -llapack -lessl
## for NEC SX, SUPER-UX
#FC = sxf90
#FFLAGS = -C vopt -P openmp
#LDFLAGS = -P openmp
#LIBS = -L/lib -llapack -lblas
## Solaris
#FC = sunf95
#FFLAGS = -g -C
#LIBS = -L/opt/SunStudioExpress/lib -lsunperf
#MOD_OPT=-M
## Fujitsu FX10
#FC = mpifrtpx
#FFLAGS = -Kfast,openmp,SPARC64IXfx
#LDFLAGS = $(FFLAGS)
#LIBS = -SSL2
###############################################################
## For Developer; Intel Fortran compiler (ifort)
#FC = ifort
#FC = mpif90
#FC = ifort -lmpi
#FFLAGS = -O2 -openmp-stubs
#FFLAGS = -g -O2 -openmp -mcmodel=medium
#FFLAGS = -O2 -assume nobuffered_io
#FFLAGS = -g -assume nobuffered_io -check all -traceback -ftrapuv
#FFLAGS = -g -assume nobuffered_io -check all -traceback -ftrapuv -implicitnone
#FFLAGS = -g -assume nobuffered_io -warn nodeclarations -check all -traceback
#LDFLAGS = $(FFLAGS)
#LIBS = /opt/acml4.4.0/ifort64/lib/libacml.a
#LIBS = /opt/acml4.4.0/ifort64_mp/lib/libacml_mp.a /opt/acml4.4.0/ifort64_mp/lib/libacml_mv.a -lguide -lpthread
#LIBS = -L/opt/intel/mkl/10.0/lib/32 -lmkl_lapack -lguide -lmkl_ia32
#LIBS = -L /opt/intel/mkl/10.0.3.020/lib/em64t -lmkl_lapack -lmkl -lguide -lpthread
#LIBS = -mkl=sequential
# For ifort 11.1.0.038
# LIBS = -L /opt/intel/Compiler/11.1/038/mkl/lib/em64t -lmkl_lapack \
# -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread
# For intel composer 2013.3.163
# LIBS = -L /opt/intel/composer_xe_2013.3.163/mkl/lib/intel64
# -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread
# For gfortran with Eigen Engine
#FC = mpif90
#FC = gfortran
#FFLAGS = -O2 -fopenmp
#LDFLAGS = -fopenmp
#LIBS-EXT = -L$(TOPDIR)/ext-lib -lEigenTest
#INCLUDE = -I/usr/local/include/EigenExa-2.2a -I/usr/local/include/ELPA
#LIBS = $(INCLUDE) -L/usr/local/lib64 -lelpa_openmp -lEigenExa-2.2a -lscalapack \
#-L/usr/lib64 -llapack -lblas -lgomp