1 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 # User: Set here the F90 compiler and options
3 # Pedefined compilers: INTEL, PGF, HPUX, LAHEY
4 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13 FOPT_GNU = -cpp -O -pg -fbounds-check
15 FOPT_LAHEY = -Cpp --pca
16 #FOPT_LAHEY = -Cpp --chk a,e,s,u --pca --ap -O0 -g --trap
18 FOPT_INTEL = -cpp -O -mp -pc80 -prec_div -tpp7 -implicitnone
20 FOPT_PGF = -Mpreprocess -O -fast -pc 80 -Kieee
22 FOPT_HPUX = -O -u +Oall +check=on
24 # define FULL_ALGEBRA for non-sparse integration
25 FC = $(FC_$(COMPILER))
26 FOPT = $(FOPT_$(COMPILER)) # -DFULL_ALGEBRA
29 #LIBS = -llapack -lblas
31 # Command to create Matlab mex gateway routines
32 # Note: use $(FC) as the mex Fortran compiler
35 GENSRC = pan_Precision.f90 \
39 GENOBJ = pan_Precision.o \
43 FUNSRC = pan_Function.f90
44 FUNOBJ = pan_Function.o
46 JACSRC = pan_JacobianSP.f90 pan_Jacobian.f90
47 JACOBJ = pan_JacobianSP.o pan_Jacobian.o
49 HESSRC = pan_HessianSP.f90 pan_Hessian.f90
50 HESOBJ = pan_HessianSP.o pan_Hessian.o
52 STMSRC = pan_StoichiomSP.f90 pan_Stoichiom.f90
53 STMOBJ = pan_StoichiomSP.o pan_Stoichiom.o
55 UTLSRC = pan_Rates.f90 pan_Util.f90 pan_Monitor.f90
56 UTLOBJ = pan_Rates.o pan_Util.o pan_Monitor.o
58 LASRC = pan_LinearAlgebra.f90
59 LAOBJ = pan_LinearAlgebra.o
61 STOCHSRC = pan_Stochastic.f90
62 STOCHOBJ = pan_Stochastic.o
64 MAINSRC = pan_Main.f90 pan_Initialize.f90 pan_Integrator.f90 pan_Model.f90
65 MAINOBJ = pan_Main.o pan_Initialize.o pan_Integrator.o pan_Model.o
67 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 # User: modify the line below to include only the
69 # objects needed by your application
70 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71 ALLOBJ = $(GENOBJ) $(FUNOBJ) $(JACOBJ) $(HESOBJ) $(STMOBJ) \
74 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
75 # User: modify the line below to include only the
76 # executables needed by your application
77 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80 exe: $(ALLOBJ) $(MAINOBJ)
81 $(FC) $(FOPT) $(ALLOBJ) $(MAINOBJ) $(LIBS) -o pan.exe
83 stochastic:$(ALLOBJ) $(STOCHOBJ) $(MAINOBJ)
84 $(FC) $(FOPT) $(ALLOBJ) $(STOCHOBJ) $(MAINOBJ) $(LIBS) \
88 $(MEX) FC#$(FC) -fortran -O pan_mex_Fun.f90 $(ALLOBJ)
89 $(MEX) FC#$(FC) -fortran -O pan_mex_Jac_SP.f90 $(ALLOBJ)
90 $(MEX) FC#$(FC) -fortran -O pan_mex_Hessian.f90 $(ALLOBJ)
93 rm -f pan*.o pan*.mod \
94 pan*.dat pan.exe pan*.mexglx \
98 rm -f pan*.o pan*.mod \
99 pan*.dat pan.exe pan.map \
100 pan*.f90 pan_*.mexglx
102 pan_Precision.o: pan_Precision.f90
105 pan_Parameters.o: pan_Parameters.f90 \
109 pan_Monitor.o: pan_Monitor.f90 \
113 pan_Global.o: pan_Global.f90 \
114 pan_Parameters.o pan_Precision.o
117 pan_Initialize.o: pan_Initialize.f90 $(GENOBJ)
120 pan_Function.o: pan_Function.f90 $(GENOBJ)
123 pan_Stochastic.o: pan_Stochastic.f90 $(GENOBJ)
126 pan_JacobianSP.o: pan_JacobianSP.f90 $(GENOBJ)
129 pan_Jacobian.o: pan_Jacobian.f90 $(GENOBJ) pan_JacobianSP.o
132 pan_LinearAlgebra.o: pan_LinearAlgebra.f90 $(GENOBJ) pan_JacobianSP.o
135 pan_Rates.o: pan_Rates.f90 $(GENOBJ)
138 pan_HessianSP.o: pan_HessianSP.f90 $(GENOBJ)
141 pan_Hessian.o: pan_Hessian.f90 $(GENOBJ) pan_HessianSP.o
144 pan_StoichiomSP.o: pan_StoichiomSP.f90 $(GENOBJ)
147 pan_Stoichiom.o: pan_Stoichiom.f90 $(GENOBJ) pan_StoichiomSP.o
150 pan_Util.o: pan_Util.f90 $(GENOBJ) pan_Monitor.o
153 pan_Main.o: pan_Main.f90 $(ALLOBJ) pan_Initialize.o pan_Model.o pan_Integrator.o
156 pan_Model.o: pan_Model.f90 $(ALLOBJ) pan_Integrator.o
159 pan_Integrator.o: pan_Integrator.f90 $(ALLOBJ)