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

include $(gagadmdir)/Makefile.def

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

LIB_IDENTITY = cubemain

TOOL_OBJECTS = engine-copy.o engine-fft.o engine-header.o		\
engine-histogram.o engine-spatial-coord.o engine-statistics.o		\
engine-stack-spatial.o engine-stack-spectral.o engine-topology.o	\
message.o tool-interpolate-image.o tool-spectrum-moment.o

TYPE_OBJECTS = type-auxiliary.o type-chebyshev-svd.o type-extrema.o	\
type-identifier.o type-image-real.o type-image-cplx.o type-kernel.o	\
type-pang.o type-spatial-ellipse.o type-spatial-position.o		\
type-spatial-range.o type-spatial-sampling.o type-spatial-size.o	\
type-spectral-channel.o type-spectral-line.o type-spectral-range.o	\
type-spectral-range-ori.o type-spectral-vsys.o type-spectrum-real.o	\
type-spectrum-cplx.o type-spectrum-blanking.o				\
type-spectrum-interpolate.o type-spectrum-operations.o			\
type-spectrum-resample.o type-subcube-real.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-fft.o command-header.o command-histo1d.o	\
command-histo2d.o command-hyperdetect.o command-label.o			\
command-luminosity.o command-merge.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-shuffle.o command-slice.o command-smooth.o	\
command-snr.o command-sort.o command-stack.o command-stitch.o		\
command-window.o

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

LIB_EXPORTS = cubemain_auxiliary.mod cubemain_copy.mod			\
cubemain_extrema_types.mod cubemain_header_tools.mod			\
cubemain_identifier.mod cubemain_image_cplx.mod				\
cubemain_image_real.mod cubemain_fft_utils.mod				\
cubemain_interpolate_image_tool.mod cubemain_language.mod		\
cubemain_messaging.mod cubemain_range.mod cubemain_spapos_types.mod	\
cubemain_spasamp_types.mod cubemain_sparange_types.mod			\
cubemain_spasize_types.mod cubemain_spectrum_blanking.mod		\
cubemain_spectrum_cplx.mod cubemain_spectrum_real.mod			\
cubemain_spechannel_types.mod cubemain_speline_types.mod		\
cubemain_sperange_types.mod cubemain_spevsys_types.mod			\
cubemain_subcube_real.mod cubemain_topology.mod				\
cubemain_windowing.mod

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

INTERFACES_DISABLE = yes

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

include $(gagadmdir)/Makefile.lib

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

include $(builddir)/Makefile.deps

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