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

include $(gagadmdir)/Makefile.def

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

LIB_IDENTITY = cubetopology

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

SPATIAL_OBJECTS = tool-spatial-coord.o type-spatial-diameter.o		\
type-spatial-ellipse.o type-spatial-position.o type-spatial-range.o	\
type-spatial-sampling.o type-spatial-size.o

SPATIAL_EXPORTS = cubetopology_spadiam_types.mod			\
cubetopology_spaelli_types.mod cubetopology_spapos_types.mod		\
cubetopology_sparange_types.mod cubetopology_spasamp_types.mod		\
cubetopology_spasize_types.mod cubetopology_spatial_coordinates.mod

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

SPECTRAL_OBJECTS = type-spectral-channel.o type-spectral-line.o		\
type-spectral-range.o type-spectral-range-set.o type-spectral-vsys.o

SPECTRAL_EXPORTS = cubetopology_spechannel_types.mod	\
cubetopology_speline_types.mod cubetopology_sperange_types.mod	\
cubetopology_sperange_set_types.mod cubetopology_spevsys_types.mod

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

OTHER_OBJECTS = tool-topology-obsolescent.o type-cuberegion.o	\
type-firstlaststride.o type-range.o

OTHER_EXPORTS = cubetopology_cuberegion_types.mod			\
cubetopology_firstlaststride_types.mod cubetopology_range_types.mod	\
cubetopology_tool.mod

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

LIB_F_OBJECTS = $(SPATIAL_OBJECTS) $(SPECTRAL_OBJECTS) $(OTHER_OBJECTS)	\
message.o

LIB_EXPORTS = $(SPATIAL_EXPORTS) $(SPECTRAL_EXPORTS) $(OTHER_EXPORTS)	\
cubetopology_messaging.mod

LIB_DEPENDS = -lcubeformats $(CUBE_CORE_LIBS) $(SIC_LIBS)

INTERFACES_DISABLE = yes

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

include $(gagadmdir)/Makefile.lib

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

include $(builddir)/Makefile.deps

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