Skip to content

Commit

Permalink
adopt sensible library names
Browse files Browse the repository at this point in the history
libwannier90 -> serial compilation
libwannier90_mpi -> parallel case
  • Loading branch information
Jerome Jackson committed Jan 15, 2025
1 parent cc6e73d commit 501a655
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ clean:
cd $(ROOTDIR)/test-suite && ./clean_tests

veryclean: clean
cd $(ROOTDIR) && rm -f wannier90.x postw90.x w90chk2chk.x w90spn2spn.x libwannier90_{mpi,serial}.{a,so.4}
cd $(ROOTDIR) && rm -f wannier90.x postw90.x w90chk2chk.x w90spn2spn.x libwannier90.{a,so.4} libwannier90_mpi.{a,so.4}
cd $(ROOTDIR)/test-suite && ./clean_tests -i

thedoc:
Expand Down
10 changes: 5 additions & 5 deletions src/Makefile.header
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ SHAREDLIBFLAGS ?=-shared -Wl,-soname,libwannier90.so.4 -fPIC

## Define the filename
ifdef USEMPI
LIBSUFFIX=mpi
LIBSUFFIX=_mpi
else
LIBSUFFIX=serial
LIBSUFFIX=
endif

DYNLIBBASE = wannier90_$(LIBSUFFIX)
LIBRARYV2 = ../../libwannier90_$(LIBSUFFIX).a
DYNLIBRARY = libwannier90_$(LIBSUFFIX).so.4
DYNLIBBASE = wannier90$(LIBSUFFIX)
LIBRARYV2 = ../../libwannier90$(LIBSUFFIX).a
DYNLIBRARY = libwannier90$(LIBSUFFIX).so.4
6 changes: 3 additions & 3 deletions test-suite/libv2-demo2/makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include ../../make.inc
.cc.o:
$(CXX) -g -I ../../src -c $< -fpermissive
wannier_c.x : wannier.o ../../libwan2.a
$(CXX) -g wannier.o ../../libwan2.a $(LIBS) -lgfortran -o $@ -fpermissive
$(CXX) $(FCOPTS) -g -I ../../src -c $< -fpermissive
wannier_c.x : wannier.o ../../libwannier90.a
$(CXX) $(LDOPTS) -g wannier.o ../../libwannier90.a $(LIBS) -lgfortran -o $@ -fpermissive
clean:
@rm wannier.o wannier_c.x

0 comments on commit 501a655

Please sign in to comment.