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
nek5000
giraffe
Commits
88f22763
Commit
88f22763
authored
Oct 24, 2016
by
Ron Rahaman
Browse files
Nek5000 is built with shared-library support.
This is a hack and needs to be generalized, probably by using libtool.
parent
4cd031de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Nek5000/core/makefile.template
View file @
88f22763
BINNAME
=
nek5000
LIBNAME
=
libnek5000
.a
LIBNAME
=
libnek5000
CASENAME
=
CASEDIR
=
S
=
...
...
@@ -168,9 +168,8 @@ ifeq ($(IFMPI),false)
@
rm
-rf
$S
/mpif.h
endif
lib
:
objdir $(NOBJS)
$(AR)
cru
${LIBNAME}
$(NOBJS)
ranlib
${LIBNAME}
lib
:
objdir $(NOBJS)
$(F77)
-shared
-o
${LIBNAME}
.so
$(NOBJS)
clean
:
rm
-rf
./obj
${BINNAME}
...
...
Nek5000/core/makenek
View file @
88f22763
...
...
@@ -38,7 +38,7 @@ CC="mpicc"
# generic compiler flags
#
G="-
g
"
G
=
"-
fPIC
"
# optimization flags
#OPT_FLAGS_STD=""
...
...
Write
Preview
Markdown
is supported
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