PageRenderTime 27ms CodeModel.GetById 19ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 2ms

/src/nuc_eos/Makefile

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