Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Roy Fabrice
pFoF
Commits
1250ef5d
Commit
1250ef5d
authored
May 19, 2022
by
Roy Fabrice
Browse files
build: try new makefile layout WIP
parent
cdbdb71d
Changes
1
Hide whitespace changes
Inline
Side-by-side
make.defs.mak
0 → 100644
View file @
1250ef5d
# make.defs.mak
FC
=
h5pfc
COMPILER
=
intel
PREFIX
=
/opt/pfof/2.0/fhi/1.0/hdf5/1.12.0/intelmpi/21.5.1/intel/22.0.2
FHIDIR
=
/opt/fhi/1.0/hdf5/1.12.0/intelmpi/21.5.1/intel/22.0.2
FHIMOD
=
$(FHIDIR)
/include
FHILIB
=
$(FHIDIR)
/lib
# Intel release flags
FCFLAGS
=
-O3
-g
-I
$(FHIMOD)
-DINTEL
FCFLAGS
+=
-DNPRE
=
8
##FCFLAGS+= -DLONGINT
## FCFLAGS+= -DOPTI
## FCFLAGS+= -convert big_endian
## FCFLAGS+= -qopenmp
# Intel debug flags
DEBUGFLAGS
=
-O0
-g
-I
$(FHIMOD)
-warn
all
-check
all,noarg_temp_created
-traceback
-DINTEL
-diag-error-limit
=
10
DEBUGFLAGS
+=
-DDEBUG
DEBUGFLAGS
+=
-DNPRE
=
8
##DEBUGFLAGS+= -DLONGINT
## DEBUGFLAGS+= -DOPTI
## DEBUGFLAGS+=-convert big_endian
LDFLAGS
=
-g
-L
$(FHILIB)
-lfortran-hdf5-interface-mpi
.SUFFIXES
:
# compilation rule for F90 source files
%.debug.o
:
%.F90
@
echo
"--------------------------------"
@
echo
building
$*
.debug.o with parameters
\
FC
=
$(FC)
,
FCFLAGS
=
$(FCFLAGS)
$(FC)
-c
$(FCFLAGS)
$<
-o
$@
%.mod
:
%.F90
@
echo
"--------------------------------"
@
echo
building
$*
.mod with parameters
\
FC
=
$(FC)
,
FCFLAGS
=
$(FCFLAGS)
$(FC)
-c
$(FCFLAGS)
$<
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment