PageRenderTime 48ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/src/nuc_eos/Makefile

http://github.com/evanoconnor/NuLib
Makefile | 30 lines | 19 code | 11 blank | 0 comment | 0 complexity | eff51b602d0a1c210fff6ae8aeeb0ac1 MD5 | raw file
  1. include ../../make.inc
  2. SOURCES=eosmodule.F90 readtable.F90 nuc_eos.F90 bisection.F90 findtemp.F90 findrho.F90 linterp_many.F90
  3. FSOURCES=linterp.f
  4. CLEANSTUFF=rm -rf *.o *.mod *.a driver
  5. OBJECTS=$(SOURCES:.F90=.o)
  6. FOBJECTS=$(FSOURCES:.f=.o)
  7. EXTRADEPS=
  8. MODINC=$(HDF5INCS)
  9. all: nuc_eos.a driver
  10. driver: nuc_eos.a driver.F90
  11. $(F90) $(F90FLAGS) -o driver driver.F90 nuc_eos.a $(HDF5LIBS)
  12. nuc_eos.a: $(OBJECTS) $(FOBJECTS)
  13. ar r nuc_eos.a *.o
  14. $(OBJECTS): %.o: %.F90 $(EXTRADEPS)
  15. $(F90) $(F90FLAGS) $(DEFS) $(MODINC) -c $< -o $@
  16. $(FOBJECTS): %.o: %.f $(EXTRADEPS)
  17. $(F90) $(F90FLAGS) $(DEFS) $(MODINC) -c $< -o $@
  18. clean:
  19. $(CLEANSTUFF)