/src/nuc_eos/Makefile
Makefile | 30 lines | 19 code | 11 blank | 0 comment | 0 complexity | eff51b602d0a1c210fff6ae8aeeb0ac1 MD5 | raw file
- include ../../make.inc
- SOURCES=eosmodule.F90 readtable.F90 nuc_eos.F90 bisection.F90 findtemp.F90 findrho.F90 linterp_many.F90
- FSOURCES=linterp.f
- CLEANSTUFF=rm -rf *.o *.mod *.a driver
- OBJECTS=$(SOURCES:.F90=.o)
- FOBJECTS=$(FSOURCES:.f=.o)
- EXTRADEPS=
- MODINC=$(HDF5INCS)
- all: nuc_eos.a driver
- driver: nuc_eos.a driver.F90
- $(F90) $(F90FLAGS) -o driver driver.F90 nuc_eos.a $(HDF5LIBS)
- nuc_eos.a: $(OBJECTS) $(FOBJECTS)
- ar r nuc_eos.a *.o
- $(OBJECTS): %.o: %.F90 $(EXTRADEPS)
- $(F90) $(F90FLAGS) $(DEFS) $(MODINC) -c $< -o $@
- $(FOBJECTS): %.o: %.f $(EXTRADEPS)
- $(F90) $(F90FLAGS) $(DEFS) $(MODINC) -c $< -o $@
- clean:
- $(CLEANSTUFF)