###########################################################################
# 
#  Makefile for LOADEST
#  --------------------
#  Version: MOD36 (September 2004)
#
#  makefile - used to create LOADEST executable under Linux
#
#                                            -- R.L. Runkel, September 2004
# 
###########################################################################
#
#  compiler setup
#
#  As set below, the default compiler is f77, with no command line options.
#  If these defaults are adequate, simply type 'make' to create the
#  executable.  If not, the defaults can be overridden on the command line.
#  For example, the LOADEST executable for distribution is created by
#  passing FORTRAN compilation flags to the makefile:
#
#    make F77=pgf77 FFLAGS="-fast -tp px -Bstatic -Mdclchk"
#
#  under Linux (Portland Group Fortran 5.2-1).
#
###########################################################################
F77 = pgf77
#
# for fortran routines
#
%.o: %.f
	pgf77 $(FFLAGS) -c $*.f -o $*.o

###########################################################################
#
#   LOADEST Object files
#
###########################################################################
OBJ = amlload.o amlload2.o amlpval.o amlreg.o amlstat.o amlstat2.o \
      calbet.o calcpi.o calibr.o center.o clines.o closef.o corr.o \
      d1mach.o dassst.o dasum.o daxpy.o dcopy.o dcsevl.o ddeflt.o ddot.o \
      ddupdu.o dgefa.o dgqtst.o dhumit.o dhumsl.o dlimit.o dlitvm.o \
      dlivmu.o dlngam.o dlogam.o dlsqrt.o dlsvmn.o dnrm2.o dparck.o \
      dscal.o dslvmu.o dswap.o dvdflt.o dvscpy.o erf.o erfc.o error1.o \
      error2.o error3.o error4.o error5.o error6.o error7.o estload.o \
      expon.o expvar.o facinv.o gammad.o getdtime.o getint.o getline.o \
      heading.o idamax.o init.o initds.o input1.o input2.o input2b.o \
      input3.o inputc.o inpute.o jknife.o l1norm.o ladload.o ladload2.o \
      ladreg.o ldainit.o load95ci.o loadsep.o loglk.o main.o matcalc.o \
      matinv.o matmlt.o mean.o mkfname.o mleload.o mleload2.o mlestat.o \
      mlevar.o mvuephi.o nortest.o openin.o outaml.o outeqn.o outeqn2.o \
      outest.o outhead.o outind.o outsumm.o outsumm2.o outsumm3.o pctl.o \
      pred.o ptile.o pvalue.o setnpar.o setupc.o setxl.o setxl2.o \
      setxl3.o sort.o square.o tac_load.o tacit_calc.o tacit_d.o \
      tacit_g.o tacit_h.o tacit_l.o tacit_loads_nc.o tacit_r.o \
      tacit_test.o transf.o update.o zscore.o
###########################################################################
#
#  LOADEST
#
###########################################################################
loadest:	$(OBJ)
		$(F77) $(FFLAGS) -o $@ $(OBJ)
		mv -f $@.exe ../$@.exe
clean:
	rm -f ../loadest.exe
	rm -f *.o
