1#  Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
2#  dedicated to making software imaging solutions freely available.
3#
4#  You may not use this file except in compliance with the License.  You may
5#  obtain a copy of the License at
6#
7#    https://imagemagick.org/script/license.php
8#
9#  Unless required by applicable law or agreed to in writing, software
10#  distributed under the License is distributed on an "AS IS" BASIS,
11#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12#  See the License for the specific language governing permissions and
13#  limitations under the License.
14#
15#  Makefile for building ImageMagick Coder library.
16
17# Where coder modules get installed
18codersdir = $(CODER_PATH)
19
20if DPS_DELEGATE
21MAGICKCORE_DPS_MODULES = coders/dps.la
22MAGICKCORE_DPS_SRCS = coders/dps.c
23endif
24
25if DJVU_DELEGATE
26MAGICKCORE_DJVU_MODULES = coders/djvu.la
27MAGICKCORE_DJVU_SRCS = coders/djvu.c
28endif
29
30if OPENEXR_DELEGATE
31MAGICKCORE_EXR_MODULES = coders/exr.la
32MAGICKCORE_EXR_SRCS = coders/exr.c
33endif
34
35if FLIF_DELEGATE
36MAGICKCORE_FLIF_MODULES = coders/flif.la
37MAGICKCORE_FLIF_SRCS = coders/flif.c
38endif
39
40if FPX_DELEGATE
41MAGICKCORE_FPX_MODULES = coders/fpx.la
42MAGICKCORE_FPX_SRCS = coders/fpx.c
43endif
44
45if HEIC_DELEGATE
46MAGICKCORE_HEIC_MODULES = coders/heic.la
47MAGICKCORE_HEIC_SRCS = coders/heic.c
48endif
49
50if JBIG_DELEGATE
51MAGICKCORE_JBIG_MODULES = coders/jbig.la
52MAGICKCORE_JBIG_SRCS = coders/jbig.c
53endif
54
55if JPEG_DELEGATE
56MAGICKCORE_JPEG_MODULES = coders/jpeg.la
57MAGICKCORE_JPEG_SRCS = coders/jpeg.c
58endif
59
60if JXL_DELEGATE
61MAGICKCORE_JXL_MODULES = coders/jxl.la
62MAGICKCORE_JXL_SRCS = coders/jxl.c
63endif
64
65if LIBOPENJP2_DELEGATE
66MAGICKCORE_JP2_MODULES = coders/jp2.la
67MAGICKCORE_JP2_SRCS = coders/jp2.c
68endif
69
70if PNG_DELEGATE
71MAGICKCORE_PNG_MODULES = coders/png.la
72MAGICKCORE_PNG_SRCS = coders/png.c
73endif
74
75if TIFF_DELEGATE
76MAGICKCORE_TIFF_MODULES = coders/ept.la coders/tiff.la
77MAGICKCORE_TIFF_SRCS = coders/ept.c coders/tiff.c
78endif
79
80if WEBP_DELEGATE
81MAGICKCORE_WEBP_MODULES = coders/webp.la
82MAGICKCORE_WEBP_SRCS = coders/webp.c
83endif
84
85if WINGDI32_DELEGATE
86MAGICKCORE_GDI32_MODULES = coders/clipboard.la coders/emf.la
87MAGICKCORE_GDI32_SRCS = coders/clipboard.c coders/emf.c
88endif
89
90if WMF_DELEGATE
91MAGICKCORE_WMF_MODULES = coders/wmf.la
92MAGICKCORE_WMF_SRCS = coders/wmf.c
93endif
94
95if X11_DELEGATE
96MAGICKCORE_X11_MODULES = coders/x.la coders/xwd.la
97MAGICKCORE_X11_SRCS = coders/x.c coders/xwd.c
98endif
99
100MAGICK_CODER_CPPFLAGS = \
101	$(MODULECOMMONCPPFLAGS) \
102	$(MODULE_EXTRA_CPPFLAGS)
103
104MAGICKCORE_CODER_SRCS = \
105	coders/aai.c \
106	coders/aai.h \
107	coders/art.c \
108	coders/art.h \
109	coders/ashlar.c \
110	coders/ashlar.h \
111	coders/avs.c \
112	coders/avs.h \
113	coders/bgr.c \
114	coders/bgr.h \
115	coders/bmp.c \
116	coders/bmp.h \
117	coders/braille.c \
118	coders/braille.h \
119	coders/bytebuffer-private.h \
120	coders/cals.c \
121	coders/cals.h \
122	coders/caption.c \
123	coders/caption.h \
124	coders/cin.c \
125	coders/cin.h \
126	coders/cip.c \
127	coders/cip.h \
128	coders/clipboard.h \
129	coders/clip.c \
130	coders/clip.h \
131	coders/cmyk.c \
132	coders/cmyk.h \
133	coders/coders.h \
134	coders/coders-list.h \
135	coders/coders-private.h \
136	coders/cube.c \
137	coders/cube.h \
138	coders/cut.c \
139	coders/cut.h \
140	coders/dcm.c \
141	coders/dcm.h \
142	coders/dds.c \
143	coders/dds.h \
144	coders/debug.c \
145	coders/debug.h \
146	coders/dib.c \
147	coders/dib.h \
148	coders/djvu.h \
149	coders/dng.c \
150	coders/dng.h \
151	coders/dot.c \
152	coders/dot.h \
153	coders/dps.h \
154	coders/dpx.c \
155	coders/dpx.h \
156	coders/emf.h \
157	coders/ept.h \
158	coders/exr.h \
159	coders/farbfeld.c \
160	coders/farbfeld.h \
161	coders/fax.c \
162	coders/fax.h \
163	coders/fits.c \
164	coders/fits.h \
165	coders/fl32.c \
166	coders/fl32.h \
167	coders/flif.h \
168	coders/fpx.h \
169	coders/ghostscript-private.h \
170	coders/gif.c \
171	coders/gif.h \
172	coders/gradient.c \
173	coders/gradient.h \
174	coders/gray.c \
175	coders/gray.h \
176	coders/hald.c \
177	coders/hald.h \
178	coders/hdr.c \
179	coders/hdr.h \
180	coders/heic.h \
181	coders/histogram.c \
182	coders/histogram.h \
183	coders/hrz.c \
184	coders/hrz.h \
185	coders/html.c \
186	coders/html.h \
187	coders/icon.c \
188	coders/icon.h \
189	coders/info.c \
190	coders/info.h \
191	coders/inline.c \
192	coders/inline.h \
193	coders/ipl.c \
194	coders/ipl.h \
195	coders/jbig.h \
196	coders/jnx.c \
197	coders/jnx.h \
198	coders/jp2.h \
199	coders/jpeg.h \
200	coders/json.c \
201	coders/json.h \
202	coders/jxl.h \
203	coders/kernel.c \
204	coders/kernel.h \
205	coders/label.c \
206	coders/label.h \
207	coders/mac.c \
208	coders/mac.h \
209	coders/magick.c \
210	coders/magick.h \
211	coders/map.c \
212	coders/map.h \
213	coders/mask.c \
214	coders/mask.h \
215	coders/mat.c \
216	coders/mat.h \
217	coders/matte.c \
218	coders/matte.h \
219	coders/meta.c \
220	coders/meta.h \
221	coders/miff.c \
222	coders/miff.h \
223	coders/mono.c \
224	coders/mono.h \
225	coders/mpc.c \
226	coders/mpc.h \
227	coders/mpr.c \
228	coders/mpr.h \
229	coders/msl.c \
230	coders/msl.h \
231	coders/mtv.c \
232	coders/mtv.h \
233	coders/mvg.c \
234	coders/mvg.h \
235	coders/null.c \
236	coders/null.h \
237	coders/ora.c \
238	coders/ora.h \
239	coders/otb.c \
240	coders/otb.h \
241	coders/palm.c \
242	coders/palm.h \
243	coders/pango.c \
244	coders/pango.h \
245	coders/pattern.c \
246	coders/pattern.h \
247	coders/pcd.c \
248	coders/pcd.h \
249	coders/pcl.c \
250	coders/pcl.h \
251	coders/pcx.c \
252	coders/pcx.h \
253	coders/pdb.c \
254	coders/pdb.h \
255	coders/pdf.c \
256	coders/pdf.h \
257	coders/pes.c \
258	coders/pes.h \
259	coders/pgx.c \
260	coders/pgx.h \
261	coders/pict.c \
262	coders/pict.h \
263	coders/pix.c \
264	coders/pix.h \
265	coders/plasma.c \
266	coders/plasma.h \
267	coders/png.h \
268	coders/pnm.c \
269	coders/pnm.h \
270	coders/ps2.c \
271	coders/ps2.h \
272	coders/ps3.c \
273	coders/ps3.h \
274	coders/ps.c \
275	coders/psd.c \
276	coders/psd.h \
277	coders/psd-private.h \
278	coders/psd-private.h \
279	coders/ps.h \
280	coders/pwp.c \
281	coders/pwp.h \
282	coders/raw.c \
283	coders/raw.h \
284	coders/rgb.c \
285	coders/rgb.h \
286	coders/rgf.c \
287	coders/rgf.h \
288	coders/rla.c \
289	coders/rla.h \
290	coders/rle.c \
291	coders/rle.h \
292	coders/scr.c \
293	coders/screenshot.c \
294	coders/screenshot.h \
295	coders/scr.h \
296	coders/sct.c \
297	coders/sct.h \
298	coders/sfw.c \
299	coders/sfw.h \
300	coders/sgi.c \
301	coders/sgi.h \
302	coders/sixel.c \
303	coders/sixel.h \
304	coders/stegano.c \
305	coders/stegano.h \
306	coders/sun.c \
307	coders/sun.h \
308	coders/svg.c \
309	coders/svg.h \
310	coders/tga.c \
311	coders/tga.h \
312	coders/thumbnail.c \
313	coders/thumbnail.h \
314	coders/tiff.h \
315	coders/tile.c \
316	coders/tile.h \
317	coders/tim2.c \
318	coders/tim2.h \
319	coders/tim.c \
320	coders/tim.h \
321	coders/ttf.c \
322	coders/ttf.h \
323	coders/txt.c \
324	coders/txt.h \
325	coders/uil.c \
326	coders/uil.h \
327	coders/url.c \
328	coders/url.h \
329	coders/uyvy.c \
330	coders/uyvy.h \
331	coders/vicar.c \
332	coders/vicar.h \
333	coders/vid.c \
334	coders/vid.h \
335	coders/video.c \
336	coders/video.h \
337	coders/viff.c \
338	coders/viff.h \
339	coders/vips.c \
340	coders/vips.h \
341	coders/wbmp.c \
342	coders/wbmp.h \
343	coders/webp.h \
344	coders/wmf.h \
345	coders/wpg.c \
346	coders/wpg.h \
347	coders/xbm.c \
348	coders/xbm.h \
349	coders/xc.c \
350	coders/xcf.c \
351	coders/xcf.h \
352	coders/xc.h \
353	coders/x.h \
354	coders/xpm.c \
355	coders/xpm.h \
356	coders/xps.c \
357	coders/xps.h \
358	coders/xtrn.c \
359	coders/xtrn.h \
360	coders/xwd.h \
361	coders/yaml.c \
362	coders/yaml.h \
363	coders/ycbcr.c \
364	coders/ycbcr.h \
365	coders/yuv.c \
366	coders/yuv.h \
367	$(MAGICKCORE_DPS_SRCS) \
368	$(MAGICKCORE_DJVU_SRCS) \
369	$(MAGICKCORE_EXR_SRCS) \
370	$(MAGICKCORE_FLIF_SRCS) \
371	$(MAGICKCORE_FPX_SRCS) \
372	$(MAGICKCORE_GDI32_SRCS) \
373	$(MAGICKCORE_HEIC_SRCS) \
374	$(MAGICKCORE_JBIG_SRCS) \
375	$(MAGICKCORE_JPEG_SRCS) \
376	$(MAGICKCORE_JP2_SRCS) \
377	$(MAGICKCORE_JXL_SRCS) \
378	$(MAGICKCORE_PNG_SRCS) \
379	$(MAGICKCORE_TIFF_SRCS) \
380	$(MAGICKCORE_WEBP_SRCS) \
381	$(MAGICKCORE_WMF_SRCS) \
382	$(MAGICKCORE_X11_SRCS)
383
384CODERS_NOINST_HDRS = \
385	coders/aai.h \
386	coders/art.h \
387	coders/ashlar.h \
388	coders/avs.h \
389	coders/bgr.h \
390	coders/bmp.h \
391	coders/braille.h \
392	coders/bytebuffer-private.h \
393	coders/cals.h \
394	coders/caption.h \
395	coders/cin.h \
396	coders/cip.h \
397	coders/clipboard.h \
398	coders/clip.h \
399	coders/cmyk.h \
400	coders/coders.h \
401	coders/coders-list.h \
402	coders/coders-private.h \
403	coders/cube.h \
404	coders/cut.h \
405	coders/dcm.h \
406	coders/dds.h \
407	coders/debug.h \
408	coders/dib.h \
409	coders/djvu.h \
410	coders/dng.h \
411	coders/dot.h \
412	coders/dps.h \
413	coders/dpx.h \
414	coders/emf.h \
415	coders/ept.h \
416	coders/exr.h \
417	coders/farbfeld.h \
418	coders/fax.h \
419	coders/fits.h \
420	coders/fl32.h \
421	coders/flif.h \
422	coders/fpx.h \
423	coders/ghostscript-private.h \
424	coders/gif.h \
425	coders/gradient.h \
426	coders/gray.h \
427	coders/hald.h \
428	coders/hdr.h \
429	coders/heic.h \
430	coders/histogram.h \
431	coders/hrz.h \
432	coders/html.h \
433	coders/icon.h \
434	coders/info.h \
435	coders/inline.h \
436	coders/ipl.h \
437	coders/jbig.h \
438	coders/jnx.h \
439	coders/jp2.h \
440	coders/jpeg.h \
441	coders/json.h \
442	coders/jxl.h \
443	coders/kernel.h \
444	coders/label.h \
445	coders/mac.h \
446	coders/magick.h \
447	coders/map.h \
448	coders/mask.h \
449	coders/mat.h \
450	coders/matte.h \
451	coders/meta.h \
452	coders/miff.h \
453	coders/mono.h \
454	coders/mpc.h \
455	coders/mpr.h \
456	coders/msl.h \
457	coders/mtv.h \
458	coders/mvg.h \
459	coders/null.h \
460	coders/ora.h \
461	coders/otb.h \
462	coders/palm.h \
463	coders/pango.h \
464	coders/pattern.h \
465	coders/pcd.h \
466	coders/pcl.h \
467	coders/pcx.h \
468	coders/pdb.h \
469	coders/pdf.h \
470	coders/pes.h \
471	coders/pgx.h \
472	coders/pict.h \
473	coders/pix.h \
474	coders/plasma.h \
475	coders/png.h \
476	coders/pnm.h \
477	coders/ps2.h \
478	coders/ps3.h \
479	coders/psd.h \
480	coders/psd-private.h \
481	coders/ps.h \
482	coders/pwp.h \
483	coders/raw.h \
484	coders/rgb.h \
485	coders/rgf.h \
486	coders/rla.h \
487	coders/rle.h \
488	coders/screenshot.h \
489	coders/scr.h \
490	coders/sct.h \
491	coders/sfw.h \
492	coders/sgi.h \
493	coders/sixel.h \
494	coders/stegano.h \
495	coders/sun.h \
496	coders/svg.h \
497	coders/tga.h \
498	coders/thumbnail.h \
499	coders/tiff.h \
500	coders/tile.h \
501	coders/tim.h \
502	coders/tim2.h \
503	coders/ttf.h \
504	coders/txt.h \
505	coders/uil.h \
506	coders/url.h \
507	coders/uyvy.h \
508	coders/vicar.h \
509	coders/vid.h \
510	coders/video.h \
511	coders/viff.h \
512	coders/vips.h \
513	coders/wbmp.h \
514	coders/webp.h \
515	coders/wmf.h \
516	coders/wpg.h \
517	coders/xbm.h \
518	coders/xcf.h \
519	coders/xc.h \
520	coders/x.h \
521	coders/xpm.h \
522	coders/xps.h \
523	coders/xtrn.h \
524	coders/xwd.h \
525	coders/yaml.h \
526	coders/ycbcr.h \
527	coders/yuv.h
528
529if WITH_MODULES
530coders_LTLIBRARIES = \
531	coders/aai.la \
532	coders/art.la \
533	coders/ashlar.la \
534	coders/avs.la \
535	coders/bgr.la \
536	coders/bmp.la \
537	coders/braille.la \
538	coders/cals.la \
539	coders/caption.la \
540	coders/cin.la \
541	coders/cip.la \
542	coders/clip.la \
543	coders/cmyk.la \
544	coders/cube.la \
545	coders/cut.la \
546	coders/dcm.la \
547	coders/dds.la \
548	coders/debug.la \
549	coders/dib.la \
550	coders/dng.la \
551	coders/dot.la \
552	coders/dpx.la \
553	coders/farbfeld.la \
554	coders/fax.la \
555	coders/fits.la \
556	coders/fl32.la \
557	coders/gif.la \
558	coders/gradient.la \
559	coders/gray.la \
560	coders/hald.la \
561	coders/hdr.la \
562	coders/histogram.la \
563	coders/hrz.la \
564	coders/html.la \
565	coders/icon.la \
566	coders/info.la \
567	coders/inline.la \
568	coders/ipl.la \
569	coders/jnx.la \
570	coders/json.la \
571	coders/kernel.la \
572	coders/label.la \
573	coders/mac.la \
574	coders/magick.la \
575	coders/map.la \
576	coders/mask.la \
577	coders/mat.la \
578	coders/matte.la \
579	coders/meta.la \
580	coders/miff.la \
581	coders/mono.la \
582	coders/mpc.la \
583	coders/mpr.la \
584	coders/msl.la \
585	coders/mtv.la \
586	coders/mvg.la \
587	coders/null.la \
588	coders/ora.la \
589	coders/otb.la \
590	coders/palm.la \
591	coders/pango.la \
592	coders/pattern.la \
593	coders/pcd.la \
594	coders/pcl.la \
595	coders/pcx.la \
596	coders/pdb.la \
597	coders/pdf.la \
598	coders/pes.la \
599	coders/pgx.la \
600	coders/pict.la \
601	coders/pix.la \
602	coders/plasma.la \
603	coders/pnm.la \
604	coders/ps.la \
605	coders/ps2.la \
606	coders/ps3.la \
607	coders/psd.la \
608	coders/pwp.la \
609	coders/raw.la \
610	coders/rgb.la \
611	coders/rgf.la \
612	coders/rla.la \
613	coders/rle.la \
614	coders/scr.la \
615	coders/sct.la \
616	coders/sfw.la \
617	coders/sgi.la \
618	coders/sixel.la \
619	coders/stegano.la \
620	coders/sun.la \
621	coders/svg.la \
622	coders/tga.la \
623	coders/thumbnail.la \
624	coders/tile.la \
625	coders/tim.la \
626	coders/tim2.la \
627	coders/ttf.la \
628	coders/txt.la \
629	coders/uil.la \
630	coders/url.la \
631	coders/uyvy.la \
632	coders/vicar.la \
633	coders/vid.la \
634	coders/video.la \
635	coders/viff.la \
636	coders/vips.la \
637	coders/wbmp.la \
638	coders/wpg.la \
639	coders/xbm.la \
640	coders/xc.la \
641	coders/xcf.la \
642	coders/xpm.la \
643	coders/xps.la \
644	coders/xtrn.la \
645	coders/yaml.la \
646	coders/ycbcr.la \
647	coders/yuv.la \
648	$(MAGICKCORE_DPS_MODULES) \
649	$(MAGICKCORE_DJVU_MODULES) \
650	$(MAGICKCORE_EXR_MODULES) \
651	$(MAGICKCORE_FLIF_MODULES) \
652	$(MAGICKCORE_FPX_MODULES) \
653	$(MAGICKCORE_GDI32_MODULES)  \
654	$(MAGICKCORE_HEIC_MODULES)  \
655	$(MAGICKCORE_JBIG_MODULES) \
656	$(MAGICKCORE_JPEG_MODULES) \
657	$(MAGICKCORE_JP2_MODULES) \
658	$(MAGICKCORE_JXL_MODULES) \
659	$(MAGICKCORE_PNG_MODULES) \
660	$(MAGICKCORE_TIFF_MODULES) \
661	$(MAGICKCORE_WEBP_MODULES) \
662	$(MAGICKCORE_WMF_MODULES) \
663	$(MAGICKCORE_X11_MODULES)
664else
665coders_LTLIBRARIES =
666endif # WITH_MODULES
667
668# AAI coder module
669coders_aai_la_SOURCES      = coders/aai.c
670coders_aai_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
671coders_aai_la_LDFLAGS      = $(MODULECOMMONFLAGS)
672coders_aai_la_LIBADD       = $(MAGICKCORE_LIBS)
673
674# ART coder module
675coders_art_la_SOURCES      = coders/art.c
676coders_art_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
677coders_art_la_LDFLAGS      = $(MODULECOMMONFLAGS)
678coders_art_la_LIBADD       = $(MAGICKCORE_LIBS)
679
680# ASHLAR coder module
681coders_ashlar_la_SOURCES   = coders/ashlar.c
682coders_ashlar_la_CPPFLAGS  = $(MAGICK_CODER_CPPFLAGS)
683coders_ashlar_la_LDFLAGS   = $(MODULECOMMONFLAGS)
684coders_ashlar_la_LIBADD    = $(MAGICKCORE_LIBS)
685
686# AVS coder module
687coders_avs_la_SOURCES      = coders/avs.c
688coders_avs_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
689coders_avs_la_LDFLAGS      = $(MODULECOMMONFLAGS)
690coders_avs_la_LIBADD       = $(MAGICKCORE_LIBS)
691
692# BRG coder module
693coders_bgr_la_SOURCES      = coders/bgr.c
694coders_bgr_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
695coders_bgr_la_LDFLAGS      = $(MODULECOMMONFLAGS)
696coders_bgr_la_LIBADD       = $(MAGICKCORE_LIBS)
697
698# BMP coder module
699coders_bmp_la_SOURCES      = coders/bmp.c
700coders_bmp_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
701coders_bmp_la_LDFLAGS      = $(MODULECOMMONFLAGS)
702coders_bmp_la_LIBADD       = $(MAGICKCORE_LIBS)
703
704# BRAILLE coder module
705coders_braille_la_SOURCES  = coders/braille.c
706coders_braille_la_CPPFLAGS = $(MAGICK_CODER_CPPFLAGS)
707coders_braille_la_LDFLAGS  = $(MODULECOMMONFLAGS)
708coders_braille_la_LIBADD   = $(MAGICKCORE_LIBS)
709
710# CALS coder module
711coders_cals_la_SOURCES     = coders/cals.c
712coders_cals_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
713coders_cals_la_LDFLAGS     = $(MODULECOMMONFLAGS)
714coders_cals_la_LIBADD      = $(MAGICKCORE_LIBS) $(MATH_LIBS)
715
716# CAPTION coder module
717coders_caption_la_SOURCES  = coders/caption.c
718coders_caption_la_CPPFLAGS = $(MAGICK_CODER_CPPFLAGS)
719coders_caption_la_LDFLAGS  = $(MODULECOMMONFLAGS)
720coders_caption_la_LIBADD   = $(MAGICKCORE_LIBS) $(MATH_LIBS)
721
722# CINEON coder module
723coders_cin_la_SOURCES      = coders/cin.c
724coders_cin_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
725coders_cin_la_LDFLAGS      = $(MODULECOMMONFLAGS)
726coders_cin_la_LIBADD       = $(MAGICKCORE_LIBS)
727
728# CIP coder module
729coders_cip_la_SOURCES      = coders/cip.c
730coders_cip_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
731coders_cip_la_LDFLAGS      = $(MODULECOMMONFLAGS)
732coders_cip_la_LIBADD       = $(MAGICKCORE_LIBS)
733
734# CLIP coder module
735coders_clip_la_SOURCES     = coders/clip.c
736coders_clip_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
737coders_clip_la_LDFLAGS     = $(MODULECOMMONFLAGS)
738coders_clip_la_LIBADD      = $(MAGICKCORE_LIBS)
739
740# CLIPBOARD coder module
741coders_clipboard_la_SOURCES= coders/clipboard.c
742coders_clipboard_la_CPPFLAGS= $(MAGICK_CODER_CPPFLAGS)
743coders_clipboard_la_LDFLAGS= $(MODULECOMMONFLAGS)
744coders_clipboard_la_LIBADD = $(MAGICKCORE_LIBS) $(GDI32_LIBS)
745
746# CMYK coder module
747coders_cmyk_la_SOURCES     = coders/cmyk.c
748coders_cmyk_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
749coders_cmyk_la_LDFLAGS     = $(MODULECOMMONFLAGS)
750coders_cmyk_la_LIBADD      = $(MAGICKCORE_LIBS)
751
752# CUBE coder module
753coders_cube_la_SOURCES     = coders/cube.c
754coders_cube_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
755coders_cube_la_LDFLAGS     = $(MODULECOMMONFLAGS)
756coders_cube_la_LIBADD      = $(MAGICKCORE_LIBS) $(GOMP_LIBS)
757
758# CUT coder module
759coders_cut_la_SOURCES      = coders/cut.c
760coders_cut_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
761coders_cut_la_LDFLAGS      = $(MODULECOMMONFLAGS)
762coders_cut_la_LIBADD       = $(MAGICKCORE_LIBS)
763
764# DCM coder module
765coders_dcm_la_SOURCES      = coders/dcm.c
766coders_dcm_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
767coders_dcm_la_LDFLAGS      = $(MODULECOMMONFLAGS)
768coders_dcm_la_LIBADD       = $(MAGICKCORE_LIBS) $(MATH_LIBS)
769
770# DDS coder module
771coders_dds_la_SOURCES      = coders/dds.c
772coders_dds_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
773coders_dds_la_LDFLAGS      = $(MODULECOMMONFLAGS)
774coders_dds_la_LIBADD       = $(MAGICKCORE_LIBS)
775
776# DEBUG coder module
777coders_debug_la_SOURCES    = coders/debug.c
778coders_debug_la_CPPFLAGS   = $(MAGICK_CODER_CPPFLAGS)
779coders_debug_la_LDFLAGS    = $(MODULECOMMONFLAGS)
780coders_debug_la_LIBADD     = $(MAGICKCORE_LIBS)
781
782# DIB coder module
783coders_dib_la_SOURCES      = coders/dib.c
784coders_dib_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
785coders_dib_la_LDFLAGS      = $(MODULECOMMONFLAGS)
786coders_dib_la_LIBADD       = $(MAGICKCORE_LIBS)
787
788# DJVU coder module
789coders_djvu_la_SOURCES     = coders/djvu.c
790coders_djvu_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
791coders_djvu_la_LDFLAGS     = $(MODULECOMMONFLAGS)
792coders_djvu_la_LIBADD      = $(MAGICKCORE_LIBS) $(DJVU_LIBS) $(JPEG_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(MATH_LIBS)
793
794# DNG coder module
795coders_dng_la_SOURCES      = coders/dng.c
796coders_dng_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
797coders_dng_la_LDFLAGS      = $(MODULECOMMONFLAGS)
798coders_dng_la_LIBADD       = $(MAGICKCORE_LIBS) $(RAW_R_LIBS) $(GOMP_LIBS)
799
800# DPS coder module
801coders_dps_la_SOURCES      = coders/dps.c
802coders_dps_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
803coders_dps_la_LDFLAGS      = $(MODULECOMMONFLAGS)
804coders_dps_la_LIBADD       = $(MAGICKCORE_LIBS) $(DPS_LIBS) $(XEXT_LIBS) $(X11_LIBS)
805
806# DPX coder module
807coders_dpx_la_SOURCES      = coders/dpx.c
808coders_dpx_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
809coders_dpx_la_LDFLAGS      = $(MODULECOMMONFLAGS)
810coders_dpx_la_LIBADD       = $(MAGICKCORE_LIBS) $(GOMP_LIBS)
811
812# DOT coder module
813coders_dot_la_SOURCES      = coders/dot.c
814coders_dot_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS) $(GVC_CFLAGS)
815coders_dot_la_LDFLAGS      = $(MODULECOMMONFLAGS)
816coders_dot_la_LIBADD       = $(MAGICKCORE_LIBS) $(GVC_LIBS)
817
818# EMF coder module
819coders_emf_la_SOURCES      = coders/emf.c
820coders_emf_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
821coders_emf_la_LDFLAGS      = $(MODULECOMMONFLAGS)
822coders_emf_la_LIBADD       = $(MAGICKCORE_LIBS) $(GDI32_LIBS)
823
824# EPT coder module
825coders_ept_la_SOURCES      = coders/ept.c
826coders_ept_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
827coders_ept_la_LDFLAGS      = $(MODULECOMMONFLAGS)
828coders_ept_la_LIBADD       = $(MAGICKCORE_LIBS) $(MATH_LIBS)
829
830# EXR coder module
831coders_exr_la_SOURCES      = coders/exr.c
832coders_exr_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS) $(OPENEXR_CFLAGS)
833coders_exr_la_LDFLAGS      = $(MODULECOMMONFLAGS)
834coders_exr_la_LIBADD       = $(MAGICKCORE_LIBS) $(OPENEXR_LIBS) $(MATH_LIBS)
835
836# FARBFELD coder module
837coders_farbfeld_la_SOURCES     = coders/farbfeld.c
838coders_farbfeld_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
839coders_farbfeld_la_LDFLAGS     = $(MODULECOMMONFLAGS)
840coders_farbfeld_la_LIBADD      = $(MAGICKCORE_LIBS) $(MATH_LIBS)
841
842# FAX coder module
843coders_fax_la_SOURCES      = coders/fax.c
844coders_fax_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
845coders_fax_la_LDFLAGS      = $(MODULECOMMONFLAGS)
846coders_fax_la_LIBADD       = $(MAGICKCORE_LIBS)
847
848# FITS coder module
849coders_fits_la_SOURCES     = coders/fits.c
850coders_fits_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
851coders_fits_la_LDFLAGS     = $(MODULECOMMONFLAGS)
852coders_fits_la_LIBADD      = $(MAGICKCORE_LIBS) $(MATH_LIBS)
853
854# FL32 coder module
855coders_fl32_la_SOURCES     = coders/fl32.c
856coders_fl32_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
857coders_fl32_la_LDFLAGS     = $(MODULECOMMONFLAGS)
858coders_fl32_la_LIBADD      = $(MAGICKCORE_LIBS) $(MATH_LIBS)
859
860# FLIF coder module
861coders_flif_la_SOURCES      = coders/flif.c
862coders_flif_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
863coders_flif_la_LDFLAGS      = $(MODULECOMMONFLAGS)
864coders_flif_la_LIBADD       = $(MAGICKCORE_LIBS) $(FLIF_LIBS)
865
866# FPX coder module
867coders_fpx_la_SOURCES      = coders/fpx.c
868coders_fpx_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
869coders_fpx_la_LDFLAGS      = $(MODULECOMMONFLAGS)
870coders_fpx_la_LIBADD       = $(MAGICKCORE_LIBS) $(FPX_LIBS) $(MATH_LIBS) -lstdc++
871
872# GIF coder module
873coders_gif_la_SOURCES      = coders/gif.c
874coders_gif_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
875coders_gif_la_LDFLAGS      = $(MODULECOMMONFLAGS)
876coders_gif_la_LIBADD       = $(MAGICKCORE_LIBS)
877
878# GRAY coder module
879coders_gray_la_SOURCES     = coders/gray.c
880coders_gray_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
881coders_gray_la_LDFLAGS     = $(MODULECOMMONFLAGS)
882coders_gray_la_LIBADD      = $(MAGICKCORE_LIBS)
883
884# GRADIENT coder module
885coders_gradient_la_SOURCES = coders/gradient.c
886coders_gradient_la_CPPFLAGS= $(MAGICK_CODER_CPPFLAGS)
887coders_gradient_la_LDFLAGS = $(MODULECOMMONFLAGS)
888coders_gradient_la_LIBADD  = $(MAGICKCORE_LIBS)
889
890# HISTOGRAM coder module
891coders_histogram_la_SOURCES = coders/histogram.c
892coders_histogram_la_CPPFLAGS= $(MAGICK_CODER_CPPFLAGS)
893coders_histogram_la_LDFLAGS = $(MODULECOMMONFLAGS)
894coders_histogram_la_LIBADD  = $(MAGICKCORE_LIBS) $(MATH_LIBS)
895
896# HALD coder module
897coders_hald_la_SOURCES     = coders/hald.c
898coders_hald_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
899coders_hald_la_LDFLAGS     = $(MODULECOMMONFLAGS)
900coders_hald_la_LIBADD      = $(MAGICKCORE_LIBS) $(GOMP_LIBS)
901
902# HDR coder module
903coders_hdr_la_SOURCES      = coders/hdr.c
904coders_hdr_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
905coders_hdr_la_LDFLAGS      = $(MODULECOMMONFLAGS)
906coders_hdr_la_LIBADD       = $(MAGICKCORE_LIBS) $(GOMP_LIBS) $(MATH_LIBS)
907
908# HEIC coder module
909coders_heic_la_SOURCES     = coders/heic.c
910coders_heic_la_CPPFLAGS    = $(MODULE_CODER_CPPFLAGS)
911coders_heic_la_LDFLAGS     = $(MODULECOMMONFLAGS)
912coders_heic_la_LIBADD      = $(MAGICKCORE_LIBS) $(HEIF_LIBS)
913
914# HRZ coder module
915coders_hrz_la_SOURCES      = coders/hrz.c
916coders_hrz_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
917coders_hrz_la_LDFLAGS      = $(MODULECOMMONFLAGS)
918coders_hrz_la_LIBADD       = $(MAGICKCORE_LIBS)
919
920# HTML coder module
921coders_html_la_SOURCES     = coders/html.c
922coders_html_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
923coders_html_la_LDFLAGS     = $(MODULECOMMONFLAGS)
924coders_html_la_LIBADD      = $(MAGICKCORE_LIBS)
925
926# ICON coder module
927coders_icon_la_SOURCES     = coders/icon.c
928coders_icon_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
929coders_icon_la_LDFLAGS     = $(MODULECOMMONFLAGS)
930coders_icon_la_LIBADD      = $(MAGICKCORE_LIBS)
931
932# INFO coder module
933coders_info_la_SOURCES     = coders/info.c
934coders_info_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
935coders_info_la_LDFLAGS     = $(MODULECOMMONFLAGS)
936coders_info_la_LIBADD      = $(MAGICKCORE_LIBS)
937
938# INLINE coder module
939coders_inline_la_SOURCES   = coders/inline.c
940coders_inline_la_CPPFLAGS  = $(MAGICK_CODER_CPPFLAGS)
941coders_inline_la_LDFLAGS   = $(MODULECOMMONFLAGS)
942coders_inline_la_LIBADD    = $(MAGICKCORE_LIBS)
943
944# IPL coder module
945coders_ipl_la_SOURCES      = coders/ipl.c
946coders_ipl_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
947coders_ipl_la_LDFLAGS      = $(MODULECOMMONFLAGS)
948coders_ipl_la_LIBADD       = $(MAGICKCORE_LIBS)
949
950# JBIG coder module
951coders_jbig_la_SOURCES     = coders/jbig.c
952coders_jbig_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
953coders_jbig_la_LDFLAGS     = $(MODULECOMMONFLAGS)
954coders_jbig_la_LIBADD      = $(MAGICKCORE_LIBS) $(JBIG_LIBS) $(MATH_LIBS)
955
956# JPEG coder module
957coders_jpeg_la_SOURCES     = coders/jpeg.c
958coders_jpeg_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
959coders_jpeg_la_LDFLAGS     = $(MODULECOMMONFLAGS)
960coders_jpeg_la_LIBADD      = $(MAGICKCORE_LIBS) $(JPEG_LIBS) $(MATH_LIBS)
961
962# JPEG 2000 coder module
963coders_jp2_la_SOURCES      = coders/jp2.c
964coders_jp2_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS) $(LIBOPENJP2_CFLAGS)
965coders_jp2_la_LDFLAGS      = $(MODULECOMMONFLAGS)
966coders_jp2_la_LIBADD       = $(MAGICKCORE_LIBS) $(LIBOPENJP2_LIBS) $(MATH_LIBS)
967
968# JNX coder module
969coders_jnx_la_SOURCES      = coders/jnx.c
970coders_jnx_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
971coders_jnx_la_LDFLAGS      = $(MODULECOMMONFLAGS)
972coders_jnx_la_LIBADD       = $(MAGICKCORE_LIBS)
973
974# JSON coder module
975coders_json_la_SOURCES     = coders/json.c
976coders_json_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
977coders_json_la_LDFLAGS     = $(MODULECOMMONFLAGS)
978coders_json_la_LIBADD      = $(MAGICKCORE_LIBS)
979
980# JXL coder module
981coders_jxl_la_SOURCES      = coders/jxl.c
982coders_jxl_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
983coders_jxl_la_LDFLAGS      = $(MODULECOMMONFLAGS)
984coders_jxl_la_LIBADD       = $(MAGICKCORE_LIBS) $(JXL_LIBS)
985
986# KERNEL coder module
987coders_kernel_la_SOURCES   = coders/kernel.c
988coders_kernel_la_CPPFLAGS  = $(MAGICK_CODER_CPPFLAGS)
989coders_kernel_la_LDFLAGS   = $(MODULECOMMONFLAGS)
990coders_kernel_la_LIBADD    = $(MAGICKCORE_LIBS)
991
992# LABEL coder module
993coders_label_la_SOURCES    = coders/label.c
994coders_label_la_CPPFLAGS   = $(MAGICK_CODER_CPPFLAGS)
995coders_label_la_LDFLAGS    = $(MODULECOMMONFLAGS)
996coders_label_la_LIBADD     = $(MAGICKCORE_LIBS) $(MATH_LIBS)
997
998# MAC coder module
999coders_mac_la_SOURCES      = coders/mac.c
1000coders_mac_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1001coders_mac_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1002coders_mac_la_LIBADD       = $(MAGICKCORE_LIBS)
1003
1004# MAGICK coder module
1005coders_magick_la_SOURCES   = coders/magick.c
1006coders_magick_la_CPPFLAGS  = $(MAGICK_CODER_CPPFLAGS)
1007coders_magick_la_LDFLAGS   = $(MODULECOMMONFLAGS)
1008coders_magick_la_LIBADD    = $(MAGICKCORE_LIBS)
1009
1010# MAP coder module
1011coders_map_la_SOURCES      = coders/map.c
1012coders_map_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1013coders_map_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1014coders_map_la_LIBADD       = $(MAGICKCORE_LIBS)
1015
1016# MASK coder module
1017coders_mask_la_SOURCES     = coders/mask.c
1018coders_mask_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1019coders_mask_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1020coders_mask_la_LIBADD      = $(MAGICKCORE_LIBS)
1021
1022# MAT coder module
1023coders_mat_la_SOURCES      = coders/mat.c
1024coders_mat_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1025coders_mat_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1026coders_mat_la_LIBADD       = $(MAGICKCORE_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(MATH_LIBS)
1027
1028# MATTE coder module
1029coders_matte_la_SOURCES    = coders/matte.c
1030coders_matte_la_CPPFLAGS   = $(MAGICK_CODER_CPPFLAGS)
1031coders_matte_la_LDFLAGS    = $(MODULECOMMONFLAGS)
1032coders_matte_la_LIBADD     = $(MAGICKCORE_LIBS)
1033
1034# META coder module
1035coders_meta_la_SOURCES     = coders/meta.c
1036coders_meta_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1037coders_meta_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1038coders_meta_la_LIBADD      = $(MAGICKCORE_LIBS)
1039
1040# MIFF coder module
1041coders_miff_la_SOURCES     = coders/miff.c
1042coders_miff_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1043coders_miff_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1044coders_miff_la_LIBADD      = $(MAGICKCORE_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(BZLIB_LIBS)
1045
1046# MONO coder module
1047coders_mono_la_SOURCES     = coders/mono.c
1048coders_mono_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1049coders_mono_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1050coders_mono_la_LIBADD      = $(MAGICKCORE_LIBS)
1051
1052# MPC coder module
1053coders_mpc_la_SOURCES      = coders/mpc.c
1054coders_mpc_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1055coders_mpc_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1056coders_mpc_la_LIBADD       = $(MAGICKCORE_LIBS)
1057
1058# MPR coder module
1059coders_mpr_la_SOURCES      = coders/mpr.c
1060coders_mpr_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1061coders_mpr_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1062coders_mpr_la_LIBADD       = $(MAGICKCORE_LIBS)
1063
1064# MSL coder module
1065coders_msl_la_SOURCES      = coders/msl.c
1066coders_msl_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1067coders_msl_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1068coders_msl_la_LIBADD       = $(MAGICKCORE_LIBS) $(XML_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(MATH_LIBS)
1069
1070# MTV coder module
1071coders_mtv_la_SOURCES      = coders/mtv.c
1072coders_mtv_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1073coders_mtv_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1074coders_mtv_la_LIBADD       = $(MAGICKCORE_LIBS)
1075
1076# MVG coder module
1077coders_mvg_la_SOURCES      = coders/mvg.c
1078coders_mvg_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1079coders_mvg_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1080coders_mvg_la_LIBADD       = $(MAGICKCORE_LIBS) $(MATH_LIBS)
1081
1082# NULL coder module
1083coders_null_la_SOURCES     = coders/null.c
1084coders_null_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1085coders_null_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1086coders_null_la_LIBADD      = $(MAGICKCORE_LIBS)
1087
1088# ORA coder module
1089coders_ora_la_SOURCES     = coders/ora.c
1090coders_ora_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1091coders_ora_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1092coders_ora_la_LIBADD      = $(MAGICKCORE_LIBS) $(ZIP_LIBS)
1093
1094# OTB coder module
1095coders_otb_la_SOURCES      = coders/otb.c
1096coders_otb_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1097coders_otb_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1098coders_otb_la_LIBADD       = $(MAGICKCORE_LIBS)
1099
1100# PALM coder module
1101coders_palm_la_SOURCES     = coders/palm.c
1102coders_palm_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1103coders_palm_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1104coders_palm_la_LIBADD      = $(MAGICKCORE_LIBS)
1105
1106# PANGO coder module
1107coders_pango_la_SOURCES    = coders/pango.c
1108coders_pango_la_CPPFLAGS   = $(MAGICK_CODER_CPPFLAGS) $(PANGO_CFLAGS)
1109coders_pango_la_LDFLAGS    = $(MODULECOMMONFLAGS)
1110coders_pango_la_LIBADD     = $(MAGICKCORE_LIBS) $(PANGO_LIBS)
1111
1112# Pattern module
1113coders_pattern_la_SOURCES  = coders/pattern.c
1114coders_pattern_la_CPPFLAGS = $(MAGICK_CODER_CPPFLAGS)
1115coders_pattern_la_LDFLAGS  = $(MODULECOMMONFLAGS)
1116coders_pattern_la_LIBADD   = $(MAGICKCORE_LIBS)
1117
1118# PCD coder module
1119coders_pcd_la_SOURCES      = coders/pcd.c
1120coders_pcd_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1121coders_pcd_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1122coders_pcd_la_LIBADD       = $(MAGICKCORE_LIBS)
1123
1124# PCL coder module
1125coders_pcl_la_SOURCES      = coders/pcl.c
1126coders_pcl_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1127coders_pcl_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1128coders_pcl_la_LIBADD       = $(MAGICKCORE_LIBS) $(MATH_LIBS)
1129
1130# PCX coder module
1131coders_pcx_la_SOURCES      = coders/pcx.c
1132coders_pcx_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1133coders_pcx_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1134coders_pcx_la_LIBADD       = $(MAGICKCORE_LIBS)
1135
1136# PDB coder module
1137coders_pdb_la_SOURCES      = coders/pdb.c
1138coders_pdb_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1139coders_pdb_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1140coders_pdb_la_LIBADD       = $(MAGICKCORE_LIBS)
1141
1142# PDF coder module
1143coders_pdf_la_SOURCES      = coders/pdf.c
1144coders_pdf_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1145coders_pdf_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1146coders_pdf_la_LIBADD       = $(MAGICKCORE_LIBS) $(JBIG_LIBS) $(JPEG_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(GS_LIBS) $(MATH_LIBS)
1147
1148# PES coder module
1149coders_pes_la_SOURCES      = coders/pes.c
1150coders_pes_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1151coders_pes_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1152coders_pes_la_LIBADD       = $(MAGICKCORE_LIBS)
1153
1154# PGX coder module
1155coders_pgx_la_SOURCES      = coders/pgx.c
1156coders_pgx_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1157coders_pgx_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1158coders_pgx_la_LIBADD       = $(MAGICKCORE_LIBS)
1159
1160# PICT coder module
1161coders_pict_la_SOURCES     = coders/pict.c
1162coders_pict_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1163coders_pict_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1164coders_pict_la_LIBADD      = $(MAGICKCORE_LIBS)
1165
1166# PIX coder module
1167coders_pix_la_SOURCES      = coders/pix.c
1168coders_pix_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1169coders_pix_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1170coders_pix_la_LIBADD       = $(MAGICKCORE_LIBS)
1171
1172# PNG coder module
1173coders_png_la_SOURCES      = coders/png.c
1174coders_png_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1175coders_png_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1176coders_png_la_LIBADD       = $(MAGICKCORE_LIBS) $(PNG_LIBS) $(JPEG_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(MATH_LIBS)
1177
1178# PLASMA coder module
1179coders_plasma_la_SOURCES   = coders/plasma.c
1180coders_plasma_la_CPPFLAGS  = $(MAGICK_CODER_CPPFLAGS)
1181coders_plasma_la_LDFLAGS   = $(MODULECOMMONFLAGS)
1182coders_plasma_la_LIBADD    = $(MAGICKCORE_LIBS) $(MATH_LIBS)
1183
1184# PNM coder module
1185coders_pnm_la_SOURCES      = coders/pnm.c
1186coders_pnm_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1187coders_pnm_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1188coders_pnm_la_LIBADD       = $(MAGICKCORE_LIBS) $(GOMP_LIBS)
1189
1190# PS coder module
1191coders_ps_la_SOURCES       = coders/ps.c
1192coders_ps_la_CPPFLAGS      = $(MAGICK_CODER_CPPFLAGS)
1193coders_ps_la_LDFLAGS       = $(MODULECOMMONFLAGS)
1194coders_ps_la_LIBADD        = $(MAGICKCORE_LIBS) $(GS_LIBS) $(MATH_LIBS)
1195
1196# PS2 coder module
1197coders_ps2_la_SOURCES      = coders/ps2.c
1198coders_ps2_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1199coders_ps2_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1200coders_ps2_la_LIBADD       = $(MAGICKCORE_LIBS) $(JBIG_LIBS) $(JPEG_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(ZSTD_LIBS) $(WEBPMUX_LIBS) $(WEBP_LIBS) $(MATH_LIBS)
1201
1202# PS3 coder module
1203coders_ps3_la_SOURCES      = coders/ps3.c
1204coders_ps3_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1205coders_ps3_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1206coders_ps3_la_LIBADD       = $(MAGICKCORE_LIBS) $(JBIG_LIBS) $(JPEG_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(ZSTD_LIBS) $(WEBPMUX_LIBS) $(WEBP_LIBS) $(MATH_LIBS)
1207
1208# PSD coder module
1209coders_psd_la_SOURCES      = coders/psd.c coders/psd-private.h
1210coders_psd_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1211coders_psd_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1212coders_psd_la_LIBADD       = $(MAGICKCORE_LIBS)
1213
1214# PWP coder module
1215coders_pwp_la_SOURCES      = coders/pwp.c
1216coders_pwp_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1217coders_pwp_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1218coders_pwp_la_LIBADD       = $(MAGICKCORE_LIBS)
1219
1220# RAW coder module
1221coders_raw_la_SOURCES      = coders/raw.c
1222coders_raw_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1223coders_raw_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1224coders_raw_la_LIBADD       = $(MAGICKCORE_LIBS)
1225
1226# RGB coder module
1227coders_rgb_la_SOURCES      = coders/rgb.c
1228coders_rgb_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1229coders_rgb_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1230coders_rgb_la_LIBADD       = $(MAGICKCORE_LIBS)
1231
1232# RGF coder module
1233coders_rgf_la_SOURCES      = coders/rgf.c
1234coders_rgf_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1235coders_rgf_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1236coders_rgf_la_LIBADD       = $(MAGICKCORE_LIBS)
1237
1238# RLA coder module
1239coders_rla_la_SOURCES      = coders/rla.c
1240coders_rla_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1241coders_rla_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1242coders_rla_la_LIBADD       = $(MAGICKCORE_LIBS)
1243
1244# RLE coder module
1245coders_rle_la_SOURCES      = coders/rle.c
1246coders_rle_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1247coders_rle_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1248coders_rle_la_LIBADD       = $(MAGICKCORE_LIBS)
1249
1250# SCT coder module
1251coders_sct_la_SOURCES      = coders/sct.c
1252coders_sct_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1253coders_sct_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1254coders_sct_la_LIBADD       = $(MAGICKCORE_LIBS)
1255
1256# SFW coder module
1257coders_sfw_la_SOURCES      = coders/sfw.c
1258coders_sfw_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1259coders_sfw_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1260coders_sfw_la_LIBADD       = $(MAGICKCORE_LIBS)
1261
1262# SGI coder module
1263coders_sgi_la_SOURCES      = coders/sgi.c
1264coders_sgi_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1265coders_sgi_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1266coders_sgi_la_LIBADD       = $(MAGICKCORE_LIBS)
1267
1268# SIXEL coder module
1269coders_sixel_la_SOURCES    = coders/sixel.c
1270coders_sixel_la_CPPFLAGS   = $(MAGICK_CODER_CPPFLAGS)
1271coders_sixel_la_LDFLAGS    = $(MODULECOMMONFLAGS)
1272coders_sixel_la_LIBADD     = $(MAGICKCORE_LIBS)
1273
1274# STEGANO coder module
1275coders_stegano_la_SOURCES  = coders/stegano.c
1276coders_stegano_la_CPPFLAGS = $(MAGICK_CODER_CPPFLAGS)
1277coders_stegano_la_LDFLAGS  = $(MODULECOMMONFLAGS)
1278coders_stegano_la_LIBADD   = $(MAGICKCORE_LIBS)
1279
1280# SUN coder module
1281coders_sun_la_SOURCES      = coders/sun.c
1282coders_sun_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1283coders_sun_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1284coders_sun_la_LIBADD       = $(MAGICKCORE_LIBS)
1285
1286# SCR coder module
1287coders_scr_la_SOURCES      = coders/scr.c
1288coders_scr_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1289coders_scr_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1290coders_scr_la_LIBADD       = $(MAGICKCORE_LIBS)
1291
1292# SVG coder module
1293coders_svg_la_SOURCES      = coders/svg.c
1294coders_svg_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS) $(RSVG_CFLAGS) $(CAIRO_SVG_CFLAGS)
1295coders_svg_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1296coders_svg_la_LIBADD       = $(MAGICKCORE_LIBS) $(AUTOTRACE_LIBS) $(RSVG_LIBS) $(XML_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(MATH_LIBS)
1297
1298# TGA coder module
1299coders_tga_la_SOURCES      = coders/tga.c
1300coders_tga_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1301coders_tga_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1302coders_tga_la_LIBADD       = $(MAGICKCORE_LIBS)
1303
1304# THUMBNAIL coder module
1305coders_thumbnail_la_SOURCES= coders/thumbnail.c
1306coders_thumbnail_la_CPPFLAGS= $(MAGICK_CODER_CPPFLAGS)
1307coders_thumbnail_la_LDFLAGS= $(MODULECOMMONFLAGS)
1308coders_thumbnail_la_LIBADD = $(MAGICKCORE_LIBS)
1309
1310# TIFF coder module
1311coders_tiff_la_SOURCES     = coders/tiff.c coders/psd.c coders/psd-private.h
1312coders_tiff_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1313coders_tiff_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1314coders_tiff_la_LIBADD      = $(MAGICKCORE_LIBS) $(TIFF_LIBS) $(JBIG_LIBS) $(JPEG_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(ZSTD_LIBS) $(WEBPMUX_LIBS) $(WEBP_LIBS) $(MATH_LIBS)
1315
1316# TILE coder module
1317coders_tile_la_SOURCES     = coders/tile.c
1318coders_tile_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1319coders_tile_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1320coders_tile_la_LIBADD      = $(MAGICKCORE_LIBS)
1321
1322# TIM coder module
1323coders_tim_la_SOURCES      = coders/tim.c
1324coders_tim_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1325coders_tim_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1326coders_tim_la_LIBADD       = $(MAGICKCORE_LIBS)
1327
1328# TIM2 coder module
1329coders_tim2_la_SOURCES      = coders/tim2.c
1330coders_tim2_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1331coders_tim2_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1332coders_tim2_la_LIBADD       = $(MAGICKCORE_LIBS)
1333
1334# TTF coder module
1335coders_ttf_la_SOURCES      = coders/ttf.c
1336coders_ttf_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1337coders_ttf_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1338coders_ttf_la_LIBADD       = $(MAGICKCORE_LIBS)
1339
1340# TXT coder module
1341coders_txt_la_SOURCES      = coders/txt.c
1342coders_txt_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1343coders_txt_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1344coders_txt_la_LIBADD       = $(MAGICKCORE_LIBS) $(MATH_LIBS)
1345
1346# UIL coder module
1347coders_uil_la_SOURCES      = coders/uil.c
1348coders_uil_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1349coders_uil_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1350coders_uil_la_LIBADD       = $(MAGICKCORE_LIBS)
1351
1352# URL coder module
1353coders_url_la_SOURCES      = coders/url.c
1354coders_url_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1355coders_url_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1356coders_url_la_LIBADD       = $(MAGICKCORE_LIBS) $(XML_LIBS) $(LZMA_LIBS) $(ZLIB_LIBS) $(MATH_LIBS)
1357
1358# UYVY coder module
1359coders_uyvy_la_SOURCES     = coders/uyvy.c
1360coders_uyvy_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1361coders_uyvy_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1362coders_uyvy_la_LIBADD      = $(MAGICKCORE_LIBS)
1363
1364# VICAR coder module
1365coders_vicar_la_SOURCES    = coders/vicar.c
1366coders_vicar_la_CPPFLAGS   = $(MAGICK_CODER_CPPFLAGS)
1367coders_vicar_la_LDFLAGS    = $(MODULECOMMONFLAGS)
1368coders_vicar_la_LIBADD     = $(MAGICKCORE_LIBS)
1369
1370# VID coder module
1371coders_vid_la_SOURCES      = coders/vid.c
1372coders_vid_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1373coders_vid_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1374coders_vid_la_LIBADD       = $(MAGICKCORE_LIBS)
1375
1376# VIDEO coder module
1377coders_video_la_SOURCES     = coders/video.c
1378coders_video_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1379coders_video_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1380coders_video_la_LIBADD      = $(MAGICKCORE_LIBS)
1381
1382# VIFF coder module
1383coders_viff_la_SOURCES     = coders/viff.c
1384coders_viff_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1385coders_viff_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1386coders_viff_la_LIBADD      = $(MAGICKCORE_LIBS)
1387
1388# VIPS coder module
1389coders_vips_la_SOURCES     = coders/vips.c
1390coders_vips_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1391coders_vips_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1392coders_vips_la_LIBADD      = $(MAGICKCORE_LIBS)
1393
1394# WBMP coder module
1395coders_wbmp_la_SOURCES     = coders/wbmp.c
1396coders_wbmp_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1397coders_wbmp_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1398coders_wbmp_la_LIBADD      = $(MAGICKCORE_LIBS)
1399
1400# WEBP coder module
1401coders_webp_la_SOURCES     = coders/webp.c
1402coders_webp_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1403coders_webp_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1404coders_webp_la_LIBADD      = $(MAGICKCORE_LIBS) $(WEBPMUX_LIBS) $(WEBP_LIBS) $(MATH_LIBS)
1405
1406# WMF coder module
1407coders_wmf_la_SOURCES      = coders/wmf.c
1408coders_wmf_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1409coders_wmf_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1410coders_wmf_la_LIBADD       = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) $(WMF_LIBS) $(MATH_LIBS)
1411
1412# WPG coder module
1413coders_wpg_la_SOURCES      = coders/wpg.c
1414coders_wpg_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1415coders_wpg_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1416coders_wpg_la_LIBADD       = $(MAGICKCORE_LIBS)
1417
1418# X coder module
1419coders_x_la_SOURCES        = coders/x.c
1420coders_x_la_CPPFLAGS       = $(MAGICK_CODER_CPPFLAGS)
1421coders_x_la_LDFLAGS        = $(MODULECOMMONFLAGS)
1422coders_x_la_LIBADD         = $(MAGICKCORE_LIBS) $(X11_LIBS)
1423
1424# XBM coder module
1425coders_xbm_la_SOURCES      = coders/xbm.c
1426coders_xbm_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1427coders_xbm_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1428coders_xbm_la_LIBADD       = $(MAGICKCORE_LIBS)
1429
1430# XC coder module
1431coders_xc_la_SOURCES       = coders/xc.c
1432coders_xc_la_CPPFLAGS      = $(MAGICK_CODER_CPPFLAGS)
1433coders_xc_la_LDFLAGS       = $(MODULECOMMONFLAGS)
1434coders_xc_la_LIBADD        = $(MAGICKCORE_LIBS)
1435
1436# XCF coder module
1437coders_xcf_la_SOURCES      = coders/xcf.c
1438coders_xcf_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1439coders_xcf_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1440coders_xcf_la_LIBADD       = $(MAGICKCORE_LIBS)
1441
1442# XPM coder module
1443coders_xpm_la_SOURCES      = coders/xpm.c
1444coders_xpm_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1445coders_xpm_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1446coders_xpm_la_LIBADD       = $(MAGICKCORE_LIBS)
1447
1448# XPS coder module
1449coders_xps_la_SOURCES      = coders/xps.c
1450coders_xps_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1451coders_xps_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1452coders_xps_la_LIBADD       = $(MAGICKCORE_LIBS) $(MUPDF_LIBS) $(FREETYPE_LIBS) $(MATH_LIBS)
1453
1454# XPS coder module
1455coders_xtrn_la_SOURCES     = coders/xtrn.c
1456coders_xtrn_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1457coders_xtrn_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1458coders_xtrn_la_LIBADD      = $(MAGICKCORE_LIBS) $(OLE_LIBS)
1459
1460# XWD coder module
1461coders_xwd_la_SOURCES      = coders/xwd.c
1462coders_xwd_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1463coders_xwd_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1464coders_xwd_la_LIBADD       = $(MAGICKCORE_LIBS) $(X11_LIBS)
1465
1466# YAML coder module
1467coders_yaml_la_SOURCES     = coders/yaml.c
1468coders_yaml_la_CPPFLAGS    = $(MAGICK_CODER_CPPFLAGS)
1469coders_yaml_la_LDFLAGS     = $(MODULECOMMONFLAGS)
1470coders_yaml_la_LIBADD      = $(MAGICKCORE_LIBS)
1471
1472# YCBCR coder module
1473coders_ycbcr_la_SOURCES    = coders/ycbcr.c
1474coders_ycbcr_la_CPPFLAGS   = $(MAGICK_CODER_CPPFLAGS)
1475coders_ycbcr_la_LDFLAGS    = $(MODULECOMMONFLAGS)
1476coders_ycbcr_la_LIBADD     = $(MAGICKCORE_LIBS)
1477
1478# YUV coder module
1479coders_yuv_la_SOURCES      = coders/yuv.c
1480coders_yuv_la_CPPFLAGS     = $(MAGICK_CODER_CPPFLAGS)
1481coders_yuv_la_LDFLAGS      = $(MODULECOMMONFLAGS)
1482coders_yuv_la_LIBADD       = $(MAGICKCORE_LIBS)
1483