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

include $(gagadmdir)/Makefile.def

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

TASK_KIND = millimeter-simulation

# The following order of the tasks has been choosen on purpose. It will be
# reflected into the local-task-list.hlp.
TASKS = array_layout.exe array_project.exe azimuth_average.exe		\
image_sampling.exe short_model.exe phase_screen.exe sort_clean.exe	\
uv_table.exe uv_model.exe uv_fmodel.exe uv_ccmodel.exe uv_cct.exe	\
uv_track_phase.exe uv_observe.exe uv_observe_new.exe uv_pointing.exe	\
uv_pointing_new.exe uv_splitfield.exe uv_applyphase.exe			\
uv_sinusphase.exe uv_timeaverage.exe uv_timebase.exe uv_hybrid.exe	\
uv_fidelity.exe uv_plugc.exe uv_fcct.exe uv_close_phase.exe		\
uv_addnoise.exe

LOAD_LIBS = $(GREG_LIBS)

ifneq ($(GAG_COMPILER_FKIND),gfortran)
  # UV_SOLVE has more dependencies:
  TASKS += uv_solve.exe
  LOAD_LIBS = -lclic -lclassic $(ASTRO_LIBS) $(GREG_LIBS)
  ADD_LIBS += $(GREG_SYS_LIBS)
endif

ifeq ($(GAG_COMPILER_FKIND),gfortran)
  ifeq ($(GAG_COMPILER_FVERSION_GE_10),yes)
    LOCAL_FFLAGS = -fallow-argument-mismatch
  endif
endif

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

include $(gagadmdir)/Makefile.tasks

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