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

include $(gagadmdir)/Makefile.def

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

LIB_IDENTITY = cubeadm

TOOL_OBJECTS = tool-copy.o 

TYPE_OBJECTS = type-consistency.o type-cubeid.o type-cubeprod.o		\
type-image.o type-index.o type-directory.o				\
type-spectral-range-obsolescent.o type-spectrum.o type-subcube.o	\
type-visi.o

TYPE_MODULES = cubeadm_cubeid_types.mod cubeadm_cubeprod_types.mod	\
cubeadm_image_types.mod cubeadm_index.mod cubeadm_spectrum_types.mod	\
cubeadm_subcube_types.mod cubeadm_visi_types.mod

LIB_F_OBJECTS = $(TOOL_OBJECTS) $(TYPE_OBJECTS) clone.o command-directory.o		\
command-find.o command-flag.o command-free.o command-history.o		\
command-import.o command-list.o command-memory.o command-remove.o	\
command-snapshot.o command-undo.o command-update.o engine-types.o	\
entryloop.o get.o ioloop.o language.o library.o message.o opened.o	\
setup.o taskloop.o timing.o

# ZZZ SB: cubeadm_directory_type should not be exported out of the adm
# library. Needed as long as command EXPORT is not back here.
LIB_EXPORTS = $(TYPE_MODULES) cubeadm_clone.mod cubeadm_consistency.mod		\
cubeadm_copy_tool.mod cubeadm_directory_type.mod cubeadm_engine_types.mod	\
cubeadm_entryloop.mod cubeadm_get.mod cubeadm_import.mod			\
cubeadm_ioloop.mod cubeadm_language.mod cubeadm_library.mod			\
cubeadm_messaging.mod cubeadm_opened.mod cubeadm_setup.mod			\
cubeadm_taskloop.mod cubeadm_timing.mod cubeadm_windowing_types.mod

INTERFACES_DISABLE = yes

LIB_DEPENDS = -lcubetuple -lcubeio -lcubedag -lcubetools $(GREG_LIBS)

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

include $(gagadmdir)/Makefile.lib

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

include $(builddir)/Makefile.deps

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