SOBJS =  cc_sed.o biology.o advect.o sediment.o initial.o lurch.o nearshore.o printout.cdf.o reacir.ascii.o sed_main.o surfch.o weather.o pools.o bury.o hg.o


#for fastest production execution runs
FLAGS = -O2 -r8 -byteswapio
#-tp athlon -byteswapio -r8

#for debugging
#FLAGS = -g -byteswapio -r8 -I.

LFLAGS = -L/home/archer/local_pg/lib -lnetcdf
# -lfpe
#-lfastm -lfpe

#FC = f77
FC = pgf90


.SUFFIXES:	.c  .f 

cc_hg:		$(SOBJS)
		$(FC) $(FLAGS) -o cc_hg $(SOBJS) $(LFLAGS)


# make object files from .f files
.F.o:	
		$(FC) $(FLAGS) -c $(*).F

# for perfview, set compile -F, link -lperf, setenv NCPUS 1, and run