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

include $(gagadmdir)/Makefile.def

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

LIB_IDENTITY = atm

LIB_F_OBJECTS = ase45.o asj45.o atm-interfaces.o			\
atm-interfaces-private.o atm-interfaces-public.o atm-message.o		\
atmosp_1985.o atmosp_i.o atm-package.o excess_path.o flin.o fvvw.o	\
kh2o.o ko2.o kvatm.o poli2.o pwat.o setup.o

ifeq ($(ATM2009_PRESENT),yes)
  LIB_C_OBJECTS = atm-message-c.o atmosp_2009.o
  LIB_DEPENDS = -latm2009
  ADD_LIBS = $(GAG_COMPILER_CXXLIBS)
endif

ifeq ($(ATM2016_PRESENT),yes)
  LIB_C_OBJECTS = atm-message-c.o atmosp_2016.o
  LIB_DEPENDS = -latm2016
  ADD_LIBS = $(GAG_COMPILER_CXXLIBS)
endif

LIB_EXPORTS = atm_interfaces_public.mod

LIB_DEPENDS += $(SIC_LIBS)

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

include $(gagadmdir)/Makefile.lib

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

include $(builddir)/Makefile.deps

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