Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EELS2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Karl-Michael Schindler
EELS2
Commits
f6e89d57
Commit
f6e89d57
authored
2 years ago
by
kamischi
Browse files
Options
Downloads
Patches
Plain Diff
Update Makefile
add coverage option and cleanup
parent
9d1d011e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/f90/Makefile
+4
-16
4 additions, 16 deletions
source/f90/Makefile
with
4 additions
and
16 deletions
source/f90/Makefile
+
4
−
16
View file @
f6e89d57
.SUFFIXES
:
.c
.f90 .F90 .o
.SUFFIXES
:
.f90 .F90 .o
# fortran compiler
FC
=
gfortran
# fortran compiler options
# FFLAGS = -O3 -ff2c -gw
FFLAGS
=
-g
-gdwarf-2
-fbounds-check
-fcheck
=
all
FFLAGS
=
-g
-gdwarf-2
-fbounds-check
-fcheck
=
all
--coverage
# gfortran version 4.8 does not know -fdiagnostics-color
# safeguard for major version >= 5
GFORTAN_VERSION_GT_5
:=
$(
shell
echo
`
gcc
-dumpversion
|
cut
-f1
-d
.
`
\>
=
5 | bc
)
...
...
@@ -13,15 +13,11 @@ ifeq "$(GFORTAN_VERSION_GT_5)" "1"
FFLAGS
+=
-fdiagnostics-color
=
auto
endif
# Stuff for the python modules
# Python3 and its numpy must be installed.
PYTHON3
=
python3
# implicit rules for compiling fortran files
%.o
:
%.f90 ; $(FC) $(FFLAGS) -c $<
%_mod.mod
:
%.f90 ; $(FC) $(FFLAGS) -c $<
all
:
boson eels eels-boson
pylibs
all
:
boson eels eels-boson
bosonmods
=
sicot_mod.mod sintr_mod.mod rcffi_mod.mod
doboson.o
:
doboson.f90 $(bosonmods)
...
...
@@ -48,14 +44,6 @@ eels: eels.f90 change_working_dir.o $(eelssubs) $(eelsmods)
eels-boson
:
eels-boson.f90 change_working_dir.o $(eelssubs) $(eelsmods) $(bosonsubs) $(bosonmods)
$(
FC
)
$(
FFLAGS
)
-o
eels-boson eels-boson.f90 change_working_dir.o
$(
eelssubs
)
$(
bosonsubs
)
pylibs
:
doeels-py doboson-py
doeels-py
:
doeels.f90 quanc8.f90 surlos.f90 fint1.f90 fint2.f90 fint3.f90 queels.f90 phint.f90 qrat.f90 usurlo.f90
$(
PYTHON3
)
-m
numpy.f2py
-c
seteps.f90 doeels.f90 quanc8.f90 surlos.f90 fint1.f90 fint2.f90 fint3.f90 queels.f90 phint.f90 qrat.f90 usurlo.f90
-m
doeels
doboson-py
:
doboson.f90 sicot.f90 sintr.f90 rcffi.f90 respon.f90 o1.f90 o2.f90
$(
PYTHON3
)
-m
numpy.f2py
-c
o1.f90 o2.f90 sintr.f90 rcffi.f90 respon.f90 sicot.f90 doboson.f90
-m
doboson
clean
:
rm
-f
*
.o
rm
-rf
*
.dSYM
...
...
@@ -65,5 +53,5 @@ clean:
rm
-f
eelsf90 eelsf90.exe
rm
-f
eels-boson eels-boson.exe
.PHONY
:
all clean
pylibs
.PHONY
:
all clean
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment