pqatsi

Astrophysics 2e Online Resources - Makefile for codes

Jun 25th, 2013
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.63 KB | None | 0 0
  1. --- /dev/null   2013-06-20 15:42:50.318655051 -0300
  2. +++ ./Appendix K TwoStars/Makefile  2013-06-26 00:30:08.668563497 -0300
  3. @@ -0,0 +1,7 @@
  4. +.PHONY: clean twostars
  5. +
  6. +twostars:
  7. +   gfortran -I../Appendix\ I\ Constants/ TwoStars.f90 -o TwoStars
  8. +
  9. +clean:
  10. +   \rm -f TwoStars
  11. --- /dev/null   2013-06-20 15:42:50.318655051 -0300
  12. +++ ./Appendix I Constants/Makefile 2013-06-26 00:21:46.896555019 -0300
  13. @@ -0,0 +1,7 @@
  14. +.PHONY: clean constants
  15. +
  16. +constants:
  17. +   gfortran -c Constants.F90 -o Constants.o
  18. +
  19. +clean:
  20. +   \rm -f Constants.o
  21. --- /dev/null   2013-06-20 15:42:50.318655051 -0300
  22. +++ ./Makefile  2013-06-26 01:18:34.032612592 -0300
  23. @@ -0,0 +1,21 @@
  24. +.PHONY: clean all
  25. +
  26. +all: constants orbit twostars statstar
  27. +
  28. +constants:
  29. +   make -C Appendix\ I\ Constants/
  30. +
  31. +orbit:
  32. +   make -C Appendix\ J\ Orbit/
  33. +
  34. +twostars: constants
  35. +   make -C Appendix\ K\ TwoStars/
  36. +
  37. +statstar: constants
  38. +   make -C Appendix\ L\ StatStar/
  39. +
  40. +clean:
  41. +   make -C Appendix\ I\ Constants/ clean
  42. +   make -C Appendix\ J\ Orbit/ clean
  43. +   make -C Appendix\ K\ TwoStars/ clean
  44. +   make -C Appendix\ L\ StatStar/ clean
  45. --- /dev/null   2013-06-20 15:42:50.318655051 -0300
  46. +++ ./Appendix L StatStar/Makefile  2013-06-26 01:32:09.716626375 -0300
  47. @@ -0,0 +1,31 @@
  48. +.PHONY: clean statstar
  49. +
  50. +F95FLAGS=-I../Appendix\ I\ Constants/
  51. +
  52. +statstar: user_io boundary_conditions ODE_Integrator
  53. +   gfortran $(F95FLAGS) -o StatStar.o -c StatStar.f90
  54. +   gfortran $(F95FLAGS) -o StatStar StatStar.o ODE\ Integrator.o Stellar\ Structure\ Equations.o Zone\ Quantities.o Boundary\ Conditions.o Composition.o User\ IO.o Physics.o
  55. +
  56. +ODE_Integrator:
  57. +   gfortran $(F95FLAGS) -o ODE\ Integrator.o -c ODE\ Integrator.f90
  58. +
  59. +stellar_structure_equations: Physics
  60. +   gfortran $(F95FLAGS) -o Stellar\ Structure\ Equations.o -c Stellar\ Structure\ Equations.f90 Physics.o
  61. +
  62. +zone_quantities:
  63. +   gfortran $(F95FLAGS) -o Zone\ Quantities.o -c Zone\ Quantities.f90
  64. +
  65. +Physics: zone_quantities
  66. +   gfortran $(F95FLAGS) -o Physics.o -c Physics.f90 Zone\ Quantities.o
  67. +
  68. +boundary_conditions: Physics stellar_structure_equations
  69. +   gfortran $(F95FLAGS) -o Boundary\ Conditions.o -c Boundary\ Conditions.f90 Stellar\ Structure\ Equations.o Physics.o
  70. +
  71. +composition:
  72. +   gfortran $(F95FLAGS) -o Composition.o -c Composition.f90
  73. +
  74. +user_io: composition
  75. +   gfortran $(F95FLAGS) -o User\ IO.o -c User\ IO.f90 Composition.o
  76. +
  77. +clean:
  78. +   \rm -f StatStar *.o *.mod
  79. --- /dev/null   2013-06-20 15:42:50.318655051 -0300
  80. +++ ./Appendix J Orbit/Makefile 2013-06-26 00:23:25.884556691 -0300
  81. @@ -0,0 +1,7 @@
  82. +.PHONY: clean orbit
  83. +
  84. +orbit:
  85. +   gfortran -I../Appendix\ I\ Constants/ Orbit.f90 -o Orbit
  86. +
  87. +clean:
  88. +   \rm -f Orbit
Advertisement
Add Comment
Please, Sign In to add comment