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

include $(gagadmdir)/Makefile.def

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

LIB_IDENTITY = cubemain

TOOL_OBJECTS = engine-fft.o engine-header.o engine-histogram.o	\
engine-merging.o engine-statistics.o engine-stack-spatial.o	\
engine-stack-spectral.o message.o tool-chebyshev.o tool-svd.o	\
tool-interpolate-image.o tool-interpolate-spectrum.o tool-spectrum-moment.o

TYPE_OBJECTS = type-ancillary-cube.o type-ancillary-mask.o			\
type-auxiliary.o type-extrema.o type-identifier.o type-kernel.o			\
type-pang.o type-spatial-ellipse.o type-spectral-range-obsolescent.o		\
type-spectrum-real.o type-spectrum-blanking.o type-spectrum-interpolate.o	\
type-spectrum-operations.o type-spectrum-resample.o

COMMAND_OBJECTS = command-aperture.o command-average.o command-baseline.o	\
command-circle.o command-compare.o command-consistency.o command-convert.o	\
command-detect.o command-export.o command-extract.o command-extrema.o		\
command-feather.o command-fill.o command-header.o command-histo1d.o		\
command-histo2d.o command-luminosity.o command-modify.o command-moments.o	\
command-noise.o command-polar.o command-poly2mask.o command-replace.o		\
command-reproject.o command-resample.o command-rotate.o command-segment.o	\
command-shuffle.o command-slice.o command-smooth.o command-snr.o		\
command-sort.o command-stack.o command-stitch.o command-sum.o			\
command-window.o

LIB_F_OBJECTS = $(TOOL_OBJECTS) $(TYPE_OBJECTS) $(COMMAND_OBJECTS) language.o

LIB_EXPORTS = cubemain_ancillary_cube_types.mod					\
cubemain_ancillary_mask_types.mod cubemain_auxiliary.mod			\
cubemain_extrema_types.mod cubemain_header_tools.mod				\
cubemain_identifier.mod cubemain_fft_utils.mod					\
cubemain_interpolate_image_tool.mod cubemain_interpolate_spectrum_tool.mod	\
cubemain_language.mod cubemain_messaging.mod cubemain_range.mod			\
cubemain_spectrum_blanking.mod cubemain_spectrum_real.mod \
cubemain_windowing.mod

LIB_DEPENDS = -lcubetemplate -lcubeadm -lcubetuple -lcubeio -lcubedag	\
-lcubetools $(GREG_LIBS)

INTERFACES_DISABLE = yes

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

include $(gagadmdir)/Makefile.lib

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

include $(builddir)/Makefile.deps

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