Advertisement
Guest User

siesta-mpi-makefile

a guest
Sep 12th, 2016
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.57 KB | None | 0 0
  1. #
  2. # Copyright (C) 1996-2016       The SIESTA group
  3. #  This file is distributed under the terms of the
  4. #  GNU General Public License: see COPYING in the top directory
  5. #  or http://www.gnu.org/copyleft/gpl.txt.
  6. # See Docs/Contributors.txt for a list of contributors.
  7. #
  8. .SUFFIXES:
  9. .SUFFIXES: .o .F90 .f90 .F .f .a
  10. #
  11. default: module_built
  12. #
  13. # This makefile can also be used "remotely", so we allow
  14. # for an external specification of the (relative) location
  15. # of the arch.make file.
  16. #
  17. ARCH_MAKE_DEFAULT=../arch.make
  18. ARCH_MAKE?=$(ARCH_MAKE_DEFAULT)
  19. include $(ARCH_MAKE)
  20. #
  21. #
  22. TEMPLATES= mpi__type_s.f90 mpi__type_sv.f90 mpi__type_v.f90 mpi__type_vs.f90
  23. #
  24. INCFLAGS=-I$(MPI_INCLUDE)
  25. #
  26. Interfaces.f90 V_S.uses VS.uses: $(TEMPLATES)
  27.         if [ -z "$(KINDS)" ] ; then  $(MAKE) kind_explorer ; fi
  28.         @echo "The kind numbers for single and double precision reals follow"
  29.         sh ${<D}/generate.sh "$(KINDS)"
  30. #
  31. kind_explorer: kind_explorer.o
  32.         $(FC) -o kind_explorer $(LDFLAGS) kind_explorer.o
  33. #
  34. mpi.o: mpi__include.o Interfaces.o V_S.uses VS.uses
  35. #
  36. module_built: libmpi_f90.a
  37.         @cp libmpi_f90.a ..
  38.         @cp *.mod ..
  39.         @touch module_built
  40. #
  41. libmpi_f90.a: mpi.o mpi__include.o Interfaces.o mpi_siesta.o timer_mpi.o
  42.         @$(AR) $(ARFLAGS_EXTRA) cru libmpi_f90.a mpi.o mpi_siesta.o mpi__include.o Interfaces.o timer_mpi.o
  43.         -$(RANLIB) libmpi_f90.a
  44. #
  45. clean:
  46.         @rm -f Interfaces.f90 *.o *.mod
  47.         @rm -f module_built *.uses kind_explorer
  48.         @rm -f libmpi_f90.a
  49.  
  50. mpi_siesta.o: timer_mpi.o
  51. Interfaces.o: timer_mpi.o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement