1 # Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
2 # dedicated to making software imaging solutions freely available.
4 # You may not use this file except in compliance with the License. You may
5 # obtain a copy of the License at
7 # http://www.imagemagick.org/script/license.php
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.
15 # Makefile for building ImageMagick utilities.
30 UTILITIES_XFAIL_TESTS = \
31 $(UTILITIES_TTF_XFAIL_TESTS) \
32 $(UTILITIES_XML_XFAIL_TESTS)
34 utilities_animate_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
35 utilities_animate_LDFLAGS = $(LDFLAGS)
36 utilities_animate_SOURCES = utilities/animate.c
38 utilities_compare_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
39 utilities_compare_LDFLAGS = $(LDFLAGS)
40 utilities_compare_SOURCES = utilities/compare.c
42 utilities_composite_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
43 utilities_composite_LDFLAGS = $(LDFLAGS)
44 utilities_composite_SOURCES = utilities/composite.c
46 utilities_conjure_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
47 utilities_conjure_LDFLAGS = $(LDFLAGS)
48 utilities_conjure_SOURCES = utilities/conjure.c
50 utilities_display_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
51 utilities_display_LDFLAGS = $(LDFLAGS)
52 utilities_display_SOURCES = utilities/display.c
54 utilities_identify_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
55 utilities_identify_LDFLAGS = $(LDFLAGS)
56 utilities_identify_SOURCES = utilities/identify.c
58 utilities_import_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
59 utilities_import_LDFLAGS = $(LDFLAGS)
60 utilities_import_SOURCES = utilities/import.c
62 utilities_magick_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
63 utilities_magick_LDFLAGS = $(LDFLAGS)
64 utilities_magick_SOURCES = utilities/magick.c
66 utilities_mogrify_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
67 utilities_mogrify_LDFLAGS = $(LDFLAGS)
68 utilities_mogrify_SOURCES = utilities/mogrify.c
70 utilities_montage_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
71 utilities_montage_LDFLAGS = $(LDFLAGS)
72 utilities_montage_SOURCES = utilities/montage.c
74 utilities_stream_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
75 utilities_stream_LDFLAGS = $(LDFLAGS)
76 utilities_stream_SOURCES = utilities/stream.c
79 utilities/ImageMagick.1 \
82 utilities/composite.1 \
86 utilities/identify.1 \
93 UTILITIES_CONFIGURE = \
94 utilities/ImageMagick.1.in \
95 utilities/animate.1.in \
96 utilities/compare.1.in \
97 utilities/composite.1.in \
98 utilities/conjure.1.in \
99 utilities/convert.1.in \
100 utilities/display.1.in \
101 utilities/identify.1.in \
102 utilities/import.1.in \
103 utilities/magick.1.in \
104 utilities/mogrify.1.in \
105 utilities/montage.1.in \
106 utilities/stream.1.in
108 UTILITIES_EXTRA_DIST = \
112 UTILITIES_CLEANFILES =
114 # Link these utilities to 'magick'.
115 MAGICK_UTILITIES=convert magick-script
116 UTILITIES_INSTALL_EXEC_LOCAL_TARGETS=install-exec-local-utilities
117 install-exec-local-utilities:
118 $(mkdir_p) $(DESTDIR)$(bindir)
119 cd $(DESTDIR)$(bindir) ; \
120 magick=`echo "magick" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
121 for name in $(MAGICK_UTILITIES) ; \
123 target=`echo "$$name" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
125 $(LN_S) $$magick $$target ; \
128 UTILITIES_UNINSTALL_LOCAL_TARGETS=uninstall-local-utilities
129 uninstall-local-utilities:
130 cd $(DESTDIR)$(bindir) ; \
131 for name in $(MAGICK_UTILITIES) ; \
133 target=`echo "$$name" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \