#FC=ifort
FC=pgf77
FCARGS=-O3 -Mextend -mcmodel=medium -Bdynamic
#FCARGS=-O2 -w -m64 -Bdynamic -assume byterecl -parallel -shared-intel -mcmodel=medium -132

SMEIIPSTDFILES=adjustjdcar.f aips_wtf.f arrayloc2.f arri4constant.f arri4copy.f arri4zero.f\
 arrr4bad.f arrr4constant.f arrr4copy2.f arrr4copy.f arrr4getminmax.f arrr4mask.f arrr4setminmax.f\
 arrr4timesconstant.f arrr4zero.f arrr8copy.f askchar.f aski4.f asklimit.f askr4.f askr8.f\
 askwhatentry.f askwhat.f askwhatprmpt.f askyn.f badi4.f badr4.f badr8.f baskchar.f bgetlun.f\
 bhosname.f bopenfile.f bstr2dbl.f bstr2flt.f cflt2str.f chidelogical.f cint2str.f convertg2d.f\
 copyvtovdn.f ctime2system.f cvswap.f d2c.f date_doy.f dbl2str.f deneq3.f earth8.f earth.f\
 ecliptic_equator8.f ecliptic_equator.f ecliptic_heliographic8.f ecliptic_heliographic.f\
 eqkepler.f extractdn_intel.f fileselection.f fillmapl.f fillmapols.f fillmaptn.f fillwholet.f\
 fixmodeltdn.f flint8.f flint.f flipflop.f flt2str.f fncwz.f foreignarg.f foreignfile.f\
 gausslookup.f get2dval.f get3dtval.f get4dval.f get_compiler.f goniod.f gridfill.f\
 gridfillweight.f gridsphere2d.f gridsphere3d.f gtoden.f hlngearth.f hosinquire.f hosorbit.f\
 iarrr4valuepresent.f iaskchar.f iaskwhatentry.f icheckdirectory.f iclean0.f icleannan.f\
 icompress.f idir2file.f ifile2dir.f ifilepath.f ifltarr.f ifullfragment.f igetlun.f igridscan.f\
 ihidelogical.f ilastfragment.f int2str.f iopen_linux.f iosgunzip.f iparentfragment.f ipsfuncq.f\
 iputfilespec.f ireadproxymapn.f isearch_linux.f isetfilespec.f itopfragment.f itrim.f\
 iuniquename.f iwriteproxymapn.f julian8.f julian.f keplerorbit.f local2ut.f locfirst.f\
 locfirstlen.f loclast.f logmod_linux.f lowercase.f mapgrid.f map_tzero.f mk_base.f mk_d2vn.f\
 mkdhmodeltd.f mkdmaptdn0n.f mkgmodeltdn.f mklosweights.f mkpostd.f mkshiftdn0.f mkshiftdn0n.f\
 mktimes.f mktimes_hr.f mkveltd_check.f mkvmaptdn0n.f mkvmodeltd.f mkvobstd.f n_carrington.f\
 nrzbrent.f osgetdateandtime.f os_linux.f parserepair.f planetorbit.f point_on_los.f read_smei8.f\
 readvips8.f rotated.f rotate.f say.f simpson.f smei_orbit_info2.f smei_orbit_time2.f smeiread.f\
 sphereweight.f extractpositionn8.f stereoaorbit.f stereoborbit.f stereoorbit.f messengerorbit.f\
 stop_here.f stopwatch.f stopwatchsub.f\
 str2flt_checknext.f str2flt.f str2flt_fmtnumbers.f str2str.f sunnewcomb8.f\
 sunnewcomb.f t3d_get_grid.f t3d_marker.f t3d_marker_num.f t3d_write_nv.f thom_wtf.f time1to2.f\
 time2add.f time2carrington.f time2changeunits.f time2convertunits.f time2day8.f time2day.f\
 time2delta.f time2dow.f time2eclipticheliographic.f time2getorigin.f time2hms.f time2jepoch.f\
 time2local2ut.f time2month.f time2monthstr.f time2round.f time2split.f time2standardize.f\
 time2standardorigin.f time2str.f time2sunnewcomb.f time2system.f time2template.f time2to1.f\
 time2twothousand.f time2units.f time2ydoy.f time2ymd.f timelapsed.f timeout.f timesmooth.f\
 ulyssesorbit.f uppercase.f veleq3.f wr2darr.f write3d_infotd3dM.f write3d_infotd3dM_HR.f\
 writegoodsourceb.f writegoodsourcev.f writelosmapvg.f writem_scomp8.f xcvarformat.f\
 xmap_obs_pos.f xmap_sc_pos8.f xmap_sc_pos.f 

smeiipstd0n_intel: $(SMEIIPSTDFILES)
	$(FC) $(FCARGS) $(SMEIIPSTDFILES) smeiipstd0n_intel.f -o smeiipstd0n_intel

clean:
	rm *.o smeiipstd0n_intel

smeiipstd0n_hr: $(SMEIIPSTDFILES)
	$(FC) $(FCARGS) $(SMEIIPSTDFILES) smeiipstd0n_hr.f -o smeiipstd0n_hr

clean:
	rm *.o smeiipstd0n_hr

smeiipstd0n_intel2: $(SMEIIPSTDFILES)
	$(FC) $(FCARGS) $(SMEIIPSTDFILES) smeiipstd0n_intel2.f -o smeiipstd0n_intel2

clean:
	rm *.o smeiipstd0n_intel2

smeiipstd0n_intel3: $(SMEIIPSTDFILES)
	$(FC) $(FCARGS) $(SMEIIPSTDFILES) smeiipstd0n_intel3.f -o smeiipstd0n_intel3

clean:
	rm *.o smeiipstd0n_intel3

smeiipstd0n_intel2_full: $(SMEIIPSTDFILES)
	$(FC) $(FCARGS) $(SMEIIPSTDFILES)  smeiipstd0n_intel2_full.f -o smeiipstd0n_intel2_full

clean:
	rm *.o smeiipstd0n_intel2_full

smeiipstd0n_hra: $(SMEIIPSTDFILES)
	$(FC) $(FCARGS) $(SMEIIPSTDFILES)  smeiipstd0n_hra.f -o smeiipstd0n_hra

clean:
	rm *.o smeiipstd0n_hra

