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

include $(gagadmdir)/Makefile.def

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

LIB_IDENTITY = viewer

INTERFACES_DISABLE = yes

# Creates pyviewerr.so (implicit compilation of viewer-pyimport.c)
IMPORT_FROM_PYTHON = yes

LIB_EXPORTS =

LIB_C_OBJECTS = viewer-sicimport.o 

LIB_F_OBJECTS =  \
viewer-package.o
# major_mulfre.o

LIB_DEPENDS = -limager $(GREG_LIBS)

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

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

include $(gagadmdir)/Makefile.lib

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

include $(builddir)/Makefile.deps

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