#FC=ifort
FC=/zshare/intel_fce_100/bin/ifort

FCARGS=-O2 -w -m64 -Bdynamic -assume byterecl -parallel -shared-intel -mcmodel=medium -132 -lcfitsio
#FCARGS=-O2 -g -traceback -m64 -Bdynamic -assume byterecl -parallel -shared-intel -mcmodel=medium -132 -lcfitsio
#FCARGS=-O2 -w -traceback -m64 -Bdynamic -assume byterecl -parallel -shared-intel -mcmodel=medium -132

FCARGS_STATIC=-O2 -w -m64 -Bdynamic -assume byterecl -parallel -i-static -shared-intel -mcmodel=medium -132

IPSTDFILES=read_ashi_track.f readimagetimes.f julian8.f sidereal.f sidereal_t.f date_doy.f uppercase.f interpolate_latlon.f\
read_image_t_x_y.f find_min_max.f read_stellar_centroids.f read_centxy.f\
print_distcdiff.f print_cent_rot.f print_max_determine.f nsew_max.f print_lat_lon.f\
print_star_pole_xy_rot.f print_star_pole_cen_xy_rot.f pr_star_pole_cen_xy_dist_st_rot.f\
pr_t_lat_lon_2rot_delt.f pr_t_lat_lon_2rot_delt_rm.f pr_star_pole_cen_xy_rm.f\
read_grd_image.f read_rot_rm_matc.f read_cen_rm_bvjc.f rot_image_2pole.f rot_image_2ra_dec.f factor.f\
sunnewcomb8.f ecliptic_equator8.f ecliptic_heliographic8.f rotate.f say.f pixelcon.f\
ashi_img.f write_image_grd.f gridsphere2d.f gridsphere3d.f ashi_img_rmv.f\
badr4.f iarrr4valuepresent.f arrr4copy.f gridfill.f gausslookup.f\
arrayloc2.f arrr4mask.f igridscan.f arrr4getminmax.f int2str.f str2str.f gridfillweight.f flint.f\
icompress.f itrim.f arri4copy.f write_image_grd_hp.f\
badi4.f\

ashi_hr_maker: $(IPSTDFILES)
	$(FC) $(FCARGS) -o ashi_hr_maker_intel $(IPSTDFILES) ashi_hr_maker.f

ashi_ratio: $(IPSTDFILES)
	$(FC) $(FCARGS) -o ashi_ratio_intel $(IPSTDFILES) ashi_ratio.f

ashi_flat_field: $(IPSTDFILES)
	$(FC) $(FCARGS) -o ashi_flat_field_intel $(IPSTDFILES) ashi_flat_field.f
	
ashi_img_present: $(IPSTDFILES)
	$(FC) $(FCARGS) -o ashi_img_present_intel $(IPSTDFILES) ashi_img_present.f

ashi_mag: $(IPSTDFILES)
	$(FC) $(FCARGS) -o ashi_mag_intel $(IPSTDFILES) ashi_mag.f
	
ashi_img_comb: $(IPSTDFILES)
	$(FC) $(FCARGS) -o ashi_img_comb_intel $(IPSTDFILES) ashi_img_comb.f
	
ashi_img_comb2: $(IPSTDFILES)
	$(FC) $(FCARGS) -o ashi_img_comb2_intel $(IPSTDFILES) ashi_img_comb2.f
