Commit 88f22763 authored by Ron Rahaman's avatar 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
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}
......
......@@ -38,7 +38,7 @@ CC="mpicc"
# generic compiler flags
#G="-g"
G="-fPIC"
# optimization flags
#OPT_FLAGS_STD=""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment