-# Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization
+# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
# dedicated to making software imaging solutions freely available.
#
# You may not use this file except in compliance with the License. You may
coders_cals_la_SOURCES = coders/cals.c
coders_cals_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS)
coders_cals_la_LDFLAGS = $(MODULECOMMONFLAGS)
-coders_cals_la_LIBADD = $(MAGICKCORE_LIBS)
+coders_cals_la_LIBADD = $(MAGICKCORE_LIBS) $(MATH_LIBS)
# CAPTION coder module
coders_caption_la_SOURCES = coders/caption.c
coders_caption_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS)
coders_caption_la_LDFLAGS = $(MODULECOMMONFLAGS)
-coders_caption_la_LIBADD = $(MAGICKCORE_LIBS)
+coders_caption_la_LIBADD = $(MAGICKCORE_LIBS) $(MATH_LIBS)
# CINEON coder module
coders_cin_la_SOURCES = coders/cin.c
coders_dcm_la_SOURCES = coders/dcm.c
coders_dcm_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS)
coders_dcm_la_LDFLAGS = $(MODULECOMMONFLAGS)
-coders_dcm_la_LIBADD = $(MAGICKCORE_LIBS)
+coders_dcm_la_LIBADD = $(MAGICKCORE_LIBS) $(MATH_LIBS)
# DDS coder module
coders_dds_la_SOURCES = coders/dds.c
coders_djvu_la_SOURCES = coders/djvu.c
coders_djvu_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS)
coders_djvu_la_LDFLAGS = $(MODULECOMMONFLAGS)
-coders_djvu_la_LIBADD = $(MAGICKCORE_LIBS) $(DJVU_LIBS) $(JPEG_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS)
+coders_djvu_la_LIBADD = $(MAGICKCORE_LIBS) $(DJVU_LIBS) $(JPEG_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(MATH_LIBS)
# DNG coder module
coders_dng_la_SOURCES = coders/dng.c
coders_exr_la_SOURCES = coders/exr.c
coders_exr_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS) $(OPENEXR_CFLAGS)
coders_exr_la_LDFLAGS = $(MODULECOMMONFLAGS)
-coders_exr_la_LIBADD = $(MAGICKCORE_LIBS) $(MATH_LIBS) $(OPENEXR_LIBS)
+coders_exr_la_LIBADD = $(MAGICKCORE_LIBS) $(OPENEXR_LIBS) $(MATH_LIBS)
# FAX coder module
coders_fax_la_SOURCES = coders/fax.c
coders_histogram_la_SOURCES = coders/histogram.c
coders_histogram_la_CPPFLAGS= $(MODULE_EXTRA_CPPFLAGS)
coders_histogram_la_LDFLAGS = $(MODULECOMMONFLAGS)
-coders_histogram_la_LIBADD = $(MAGICKCORE_LIBS)
+coders_histogram_la_LIBADD = $(MAGICKCORE_LIBS) $(MATH_LIBS)
# HALD coder module
coders_hald_la_SOURCES = coders/hald.c
coders_hdr_la_SOURCES = coders/hdr.c
coders_hdr_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS)
coders_hdr_la_LDFLAGS = $(MODULECOMMONFLAGS)
-coders_hdr_la_LIBADD = $(MAGICKCORE_LIBS) $(GOMP_LIBS)
+coders_hdr_la_LIBADD = $(MAGICKCORE_LIBS) $(GOMP_LIBS) $(MATH_LIBS)
# HRZ coder module
coders_hrz_la_SOURCES = coders/hrz.c
coders_jpeg_la_SOURCES = coders/jpeg.c
coders_jpeg_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS)
coders_jpeg_la_LDFLAGS = $(MODULECOMMONFLAGS)
-coders_jpeg_la_LIBADD = $(MAGICKCORE_LIBS) $(JPEG_LIBS)
-
+coders_jpeg_la_LIBADD = $(MAGICKCORE_LIBS) $(JPEG_LIBS) $(MATH_LIBS)
+
# JPEG 2000 coder module
coders_jp2_la_SOURCES = coders/jp2.c
coders_jp2_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS)
# LABEL coder module
coders_label_la_SOURCES = coders/label.c
coders_label_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS)
-coders_label_la_LDFLAGS = $(MODULECOMMONFLAGS) $(MATH_LIBS)
-coders_label_la_LIBADD = $(MAGICKCORE_LIBS)
+coders_label_la_LDFLAGS = $(MODULECOMMONFLAGS)
+coders_label_la_LIBADD = $(MAGICKCORE_LIBS) $(MATH_LIBS)
# MAC coder module
coders_mac_la_SOURCES = coders/mac.c
coders_mvg_la_SOURCES = coders/mvg.c
coders_mvg_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS)
coders_mvg_la_LDFLAGS = $(MODULECOMMONFLAGS)
-coders_mvg_la_LIBADD = $(MAGICKCORE_LIBS)
+coders_mvg_la_LIBADD = $(MAGICKCORE_LIBS) $(MATH_LIBS)
# NULL coder module
coders_null_la_SOURCES = coders/null.c
coders_pcl_la_SOURCES = coders/pcl.c
coders_pcl_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS)
coders_pcl_la_LDFLAGS = $(MODULECOMMONFLAGS)
-coders_pcl_la_LIBADD = $(MAGICKCORE_LIBS)
+coders_pcl_la_LIBADD = $(MAGICKCORE_LIBS) $(MATH_LIBS)
# PCX coder module
coders_pcx_la_SOURCES = coders/pcx.c
coders_tiff_la_SOURCES = coders/tiff.c
coders_tiff_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS)
coders_tiff_la_LDFLAGS = $(MODULECOMMONFLAGS)
-coders_tiff_la_LIBADD = $(MAGICKCORE_LIBS) $(TIFF_LIBS) $(JBIG_LIBS) $(JPEG_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS)
+coders_tiff_la_LIBADD = $(MAGICKCORE_LIBS) $(TIFF_LIBS) $(JBIG_LIBS) $(JPEG_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(MATH_LIBS)
# TILE coder module
coders_tile_la_SOURCES = coders/tile.c
coders_xps_la_SOURCES = coders/xps.c
coders_xps_la_CPPFLAGS = $(MODULE_EXTRA_CPPFLAGS)
coders_xps_la_LDFLAGS = $(MODULECOMMONFLAGS)
-coders_xps_la_LIBADD = $(MAGICKCORE_LIBS)
+coders_xps_la_LIBADD = $(MAGICKCORE_LIBS) $(MATH_LIBS)
# XWD coder module
coders_xwd_la_SOURCES = coders/xwd.c