Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Compiling code and using MPI - lecture
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCITAS
Courses
Compiling code and using MPI
Compiling code and using MPI - lecture
Commits
95333cfb
Commit
95333cfb
authored
3 years ago
by
Emmanuel Lanti
Browse files
Options
Downloads
Patches
Plain Diff
Change tabulation in Makefile
parent
c8706f3c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/compilationWithMakefile/Makefile
+9
-7
9 additions, 7 deletions
examples/compilationWithMakefile/Makefile
with
9 additions
and
7 deletions
examples/compilationWithMakefile/Makefile
+
9
−
7
View file @
95333cfb
FC
=
gfortran
# set Fortran compiler
FC
=
gfortran
# Fortran compiler
EXEC
=
my_exec
# set executable name
EXEC
=
my_exec
# Executable name
FFLAGS
=
# Fortran flags
FFLAGS
=
# Fortran compilation flags
.PHONY
:
clean
,
mrproper
all
:
$(EXEC)
all
:
$(EXEC)
my_exec
:
saxpy.o main.o
my_exec
:
saxpy.o main.o
$(
FC
)
-o
$(
EXEC
)
saxpy.o main.o
$(
FC
)
-o
$(
EXEC
)
saxpy.o main.o
saxpy.o
:
saxpy.F90
saxpy.o
:
saxpy.F90
$(
FC
)
-c
saxpy.F90
$(
FC
)
-c
saxpy.F90
main.o
:
main.F90
main.o
:
main.F90
$(
FC
)
-c
main.F90
$(
FC
)
-c
main.F90
clean
:
clean
:
rm
-f
*
.o
*
~
*
.mod
rm
-f
*
.o
*
~
*
.mod
mrproper
:
clean
mrproper
:
clean
rm
-f
$(
EXEC
)
rm
-f
$(
EXEC
)
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