###########################################################################
#
# Makefile system for GILDAS softwares (2003-2018).
#
# Please be careful: element order often matters in makefiles.
#
###########################################################################

include $(gagadmdir)/Makefile.def

###########################################################################

TASK_KIND = mapping

# The following order of the tasks has been choosen on purpose. It will be
# reflected into the local-task-list.hlp.
IM_TASKS = make_mosaic.exe mosaic_make.exe primary.exe 

# Here this is alphabetic ordre
UV_TASKS = uv_average.exe uv_cal.exe uv_casa.exe uv_center.exe		\
  uv_check.exe uv_checkbeam.exe uv_circle.exe uv_clip.exe		\
  uv_compress.exe uv_continuum.exe uv_ctime.exe uv_cuts.exe		\
  uv_dft.exe uv_fit.exe uv_fitc.exe uv_fit-proper.exe uv_flag.exe	\
  uv_gain.exe uv_hanning.exe uv_invert.exe uv_line2cont.exe		\
  uv_list.exe uv_merge.exe uv_mflag.exe uv_mosaic.exe uv_mult.exe	\
  uv_noise.exe uv_proper_motion.exe uv_ref_gauss.exe uv_ref_model.exe	\
  uv_ref_point.exe uv_resample.exe uv_robust.exe uv_short.exe		\
  uv_sort.exe uv_splitpolar.exe uv_subtract.exe uv_template.exe		\
  uv_trim.exe uv_update_fields.exe uv_vla_patchif.exe			\
  uv_vla_reorder.exe uv_zero.exe map_refine.exe

TASKS = $(UV_TASKS) $(IM_TASKS)

LOAD_LIBS = -lmaptasks -lmapping $(GAG_LIBS) $(LEGACY_LIBS)
# $(GREG_LIBS)
# LOAD_LIBS = -lmapping $(GREG_LIBS)

# ADD_LIBS += $(GREG_SYS_LIBS)

LOCAL_FFLAGS = -Ilib

###########################################################################

include $(gagadmdir)/Makefile.tasks

###########################################################################
