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

include $(gagadmdir)/Makefile.def

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

subdirs = lib main pro doc

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

ifeq ($(GAG_ENV_KIND),cygwin)
  # Mrtholo uses some Clic global variables. This is not portable under DLLs.
  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

ifeq ($(GAG_USE_STATICLINK),yes)
  # mrtholo does not compile in staticlink because of entry name
  # conflicts between class and clic
  subdirs =
endif

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

include $(gagadmdir)/Makefile.struct

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