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

include $(gagadmdir)/Makefile.def

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

subdirs = lib-imbfits lib-mrtindex lib-cal2vo lib main pro demo doc

ifeq ($(CFITSIO_PRESENT),no)
  # CFITSIO must be available
  subdirs =
endif

ifeq ($(GAG_COMPILER_FKIND),gfortran)
  ifeq ($(GAG_COMPILER_FVERSION),447)
    # Reject gfortran 4.4.7 (Scientific Linux 6.4)
    # NB: we should reject the whole 4.4 branch, and may be others
    subdirs =
  endif
  ifeq ($(GAG_COMPILER_FVERSION),453)
    # Reject gfortran 4.5.3 (Ubuntu 12.04)
    subdirs =
  endif
endif

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

include $(gagadmdir)/Makefile.struct

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