blob: 5aaf1c345e5d292896adfcbc04f1b232a3b7c4c5 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#
2# Top Makefile for Magick++
3#
4# Copyright Bob Friesenhahn, 1999, 2000, 2002, 2004, 2008
5#
6
cristy7e01b022014-05-20 23:38:18 +00007# AM_CPPFLAGS += -I$(top_srcdir)/Magick++/lib
cristy3ed852e2009-09-05 21:47:34 +00008
cristy30841e62014-05-19 00:45:15 +00009MAGICKPP_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/Magick++/lib
10
cristy3ed852e2009-09-05 21:47:34 +000011if WITH_MAGICK_PLUS_PLUS
cristyfcb67232013-02-13 19:43:00 +000012MAGICKPP_LIBS = Magick++/lib/libMagick++-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@.la
13MAGICKPP_LDADD = $(MAGICKPP_LIBS) $(top_builddir)/MagickCore/libMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@.la
cristy3ed852e2009-09-05 21:47:34 +000014MAGICKPP_CHECK_PGRMS = $(MAGICKPP_CHECK_PGRMS_OPT)
15MAGICKPP_MANS = $(MAGICKPP_MANS_OPT)
16MAGICKPP_PKGCONFIG = $(MAGICKPP_PKGCONFIG_OPT)
cristyad38abe2012-12-23 23:03:21 +000017MAGICKPP_SCRPTS = $(MAGICKPP_SCRPTS_OPT)
18MAGICKPP_TESTS = $(MAGICKPP_TEST_SCRPTS_OPT)
cristye23ec9d2011-08-16 18:15:40 +000019MAGICKPP_TOP_INCHEADERS = $(MAGICKPP_TOP_INCHEADERS_OPT)
cristy3ed852e2009-09-05 21:47:34 +000020MAGICKPP_INCHEADERS = $(MAGICKPP_INCHEADERS_OPT)
21else
22MAGICKPP_LIBS =
cristy62ccd402012-09-04 17:20:07 +000023MAGICKPP_LDADD =
cristy3ed852e2009-09-05 21:47:34 +000024MAGICKPP_CHECK_PGRMS =
25MAGICKPP_MANS =
26MAGICKPP_PKGCONFIG =
27MAGICKPP_SCRPTS =
28MAGICKPP_TESTS =
cristye23ec9d2011-08-16 18:15:40 +000029MAGICKPP_TOP_INCHEADERS =
cristy3ed852e2009-09-05 21:47:34 +000030MAGICKPP_INCHEADERS =
31endif
32
cristyad38abe2012-12-23 23:03:21 +000033MAGICKPP_SCRPTS_OPT = \
cristy3ed852e2009-09-05 21:47:34 +000034 Magick++/bin/Magick++-config
35
36MAGICKPP_MANS_OPT = \
37 Magick++/bin/Magick++-config.1
38
39MAGICKPP_PKGCONFIG_OPT = \
40 Magick++/lib/Magick++.pc \
cristyfcb67232013-02-13 19:43:00 +000041 Magick++/lib/Magick++-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@.pc
cristy3ed852e2009-09-05 21:47:34 +000042
cristyad38abe2012-12-23 23:03:21 +000043MAGICKPP_TEST_SCRPTS_OPT = \
cristy8391c6a2012-08-21 15:25:07 +000044 Magick++/tests/tests.tap \
45 Magick++/demo/demos.tap
cristy3ed852e2009-09-05 21:47:34 +000046
47MAGICKPP_EXTRA_DIST = \
48 Magick++/AUTHORS \
49 Magick++/ChangeLog \
50 Magick++/INSTALL \
cristyb4607bf2011-02-16 14:03:12 +000051 Magick++/LICENSE \
cristy3ed852e2009-09-05 21:47:34 +000052 Magick++/NEWS \
53 Magick++/README \
54 Magick++/bin/Magick++-config.1 \
55 Magick++/bin/Magick++-config.in \
cristy9b86f202012-11-28 21:55:35 +000056 Magick++/lib/libMagick++.map \
57 Magick++/lib/Magick++.pc.in \
cristy3ed852e2009-09-05 21:47:34 +000058 Magick++/demo/model.miff \
59 Magick++/demo/smile.miff \
60 Magick++/demo/smile_anim.miff \
61 Magick++/demo/tile.miff \
cristyad38abe2012-12-23 23:03:21 +000062 $(MAGICKPP_TEST_SCRPTS_OPT) \
cristy3ed852e2009-09-05 21:47:34 +000063 Magick++/tests/test_image.miff \
64 Magick++/tests/test_image_anim.miff
65
66MAGICKPP_CLEANFILES = \
cristy6c70aec2011-03-04 20:48:09 +000067 Magick++/demo/*_out* \
cristy3ed852e2009-09-05 21:47:34 +000068 Magick++/demo/ir.out \
69 Magick++/tests/colorHistogram.txt \
70 Magick++/tests/testmagick_anim_out.miff \
71 Magick++/tests/ir.out
72
cristyfcb67232013-02-13 19:43:00 +000073Magick___lib_libMagick___@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_SOURCES = \
cristy3ed852e2009-09-05 21:47:34 +000074 Magick++/lib/Blob.cpp \
75 Magick++/lib/BlobRef.cpp \
76 Magick++/lib/CoderInfo.cpp \
77 Magick++/lib/Color.cpp \
78 Magick++/lib/Drawable.cpp \
79 Magick++/lib/Exception.cpp \
80 Magick++/lib/Functions.cpp \
81 Magick++/lib/Geometry.cpp \
82 Magick++/lib/Image.cpp \
83 Magick++/lib/ImageRef.cpp \
84 Magick++/lib/Montage.cpp \
85 Magick++/lib/Options.cpp \
86 Magick++/lib/Pixels.cpp \
dirk5b11ff32014-01-19 21:58:28 +000087 Magick++/lib/ResourceLimits.cpp \
dirk7b6b37e2014-08-16 11:03:53 +000088 Magick++/lib/Statistic.cpp \
cristy3ed852e2009-09-05 21:47:34 +000089 Magick++/lib/STL.cpp \
90 Magick++/lib/Thread.cpp \
91 Magick++/lib/TypeMetric.cpp \
92 Magick++/lib/Magick++.h \
93 Magick++/lib/Magick++/Blob.h \
94 Magick++/lib/Magick++/BlobRef.h \
95 Magick++/lib/Magick++/CoderInfo.h \
96 Magick++/lib/Magick++/Color.h \
97 Magick++/lib/Magick++/Drawable.h \
98 Magick++/lib/Magick++/Exception.h \
99 Magick++/lib/Magick++/Functions.h \
100 Magick++/lib/Magick++/Geometry.h \
101 Magick++/lib/Magick++/Image.h \
102 Magick++/lib/Magick++/ImageRef.h \
103 Magick++/lib/Magick++/Include.h \
104 Magick++/lib/Magick++/Montage.h \
105 Magick++/lib/Magick++/Options.h \
106 Magick++/lib/Magick++/Pixels.h \
dirk5b11ff32014-01-19 21:58:28 +0000107 Magick++/lib/Magick++/ResourceLimits.h \
dirk7b6b37e2014-08-16 11:03:53 +0000108 Magick++/lib/Magick++/Statistic.h \
cristy3ed852e2009-09-05 21:47:34 +0000109 Magick++/lib/Magick++/STL.h \
110 Magick++/lib/Magick++/Thread.h \
111 Magick++/lib/Magick++/TypeMetric.h
112
cristyf279b692014-08-13 12:01:27 +0000113Magick___lib_libMagick___@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_CPPFLAGS = \
cristy17491be2014-06-24 01:10:53 +0000114 $(MAGICKPP_CPPFLAGS) $(LIBRARY_EXTRA_CPPFLAGS)
cristy30841e62014-05-19 00:45:15 +0000115
cristy2a11bef2011-10-28 18:33:11 +0000116magickpptopincdir = $(INCLUDE_PATH)
cristye773c432014-05-20 23:58:41 +0000117
cristye23ec9d2011-08-16 18:15:40 +0000118magickpptopinc_HEADERS = $(MAGICKPP_TOP_INCHEADERS)
119
120MAGICKPP_TOP_INCHEADERS_OPT = \
121 Magick++/lib/Magick++.h
cristy3ed852e2009-09-05 21:47:34 +0000122
cristy0413cf62015-07-11 23:38:22 +0000123magickppincdir = $(INCLUDE_PATH)/Magick++
cristy3ed852e2009-09-05 21:47:34 +0000124
125magickppinc_HEADERS = $(MAGICKPP_INCHEADERS)
126
127MAGICKPP_INCHEADERS_OPT = \
128 Magick++/lib/Magick++/Blob.h \
129 Magick++/lib/Magick++/CoderInfo.h \
130 Magick++/lib/Magick++/Color.h \
131 Magick++/lib/Magick++/Drawable.h \
132 Magick++/lib/Magick++/Exception.h \
cristye7bee032014-01-16 16:57:17 +0000133 Magick++/lib/Magick++/Functions.h \
cristy3ed852e2009-09-05 21:47:34 +0000134 Magick++/lib/Magick++/Geometry.h \
135 Magick++/lib/Magick++/Image.h \
136 Magick++/lib/Magick++/Include.h \
137 Magick++/lib/Magick++/Montage.h \
138 Magick++/lib/Magick++/Pixels.h \
dirkd1c72d82014-01-18 10:31:19 +0000139 Magick++/lib/Magick++/ResourceLimits.h \
dirk7b6b37e2014-08-16 11:03:53 +0000140 Magick++/lib/Magick++/Statistic.h \
cristy3ed852e2009-09-05 21:47:34 +0000141 Magick++/lib/Magick++/STL.h \
142 Magick++/lib/Magick++/TypeMetric.h
143
cristy1f696e12012-11-28 22:07:22 +0000144if HAVE_LD_VERSION_SCRIPT
cristyfcb67232013-02-13 19:43:00 +0000145Magick___lib_libMagick___@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_LDFLAGS_VERSION = -Wl,--version-script=$(top_srcdir)/Magick++/lib/libMagick++.map
cristy1f696e12012-11-28 22:07:22 +0000146else
cristyfcb67232013-02-13 19:43:00 +0000147Magick___lib_libMagick___@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_LDFLAGS_VERSION = -export-symbols-regex ".*"
cristy1f696e12012-11-28 22:07:22 +0000148endif
149
cristyfcb67232013-02-13 19:43:00 +0000150Magick___lib_libMagick___@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_LDFLAGS = -no-undefined \
cristy1f696e12012-11-28 22:07:22 +0000151 $(Magick___lib_libMagick___la_LDFLAGS_VERSION) $(MAGICK_LT_RELEASE_OPTS) \
cristy01ff9f32012-12-01 18:15:29 +0000152 -version-info \
cristy5ed9c6e2013-07-14 21:20:31 +0000153 $(MAGICKPP_LIBRARY_CURRENT):$(MAGICKPP_LIBRARY_REVISION):$(MAGICKPP_LIBRARY_AGE)
cristyfcb67232013-02-13 19:43:00 +0000154Magick___lib_libMagick___@MAGICK_MAJOR_VERSION@_@MAGICK_ABI_SUFFIX@_la_LIBADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
cristy3ed852e2009-09-05 21:47:34 +0000155
156MAGICKPP_CHECK_PGRMS_OPT = \
157 Magick++/demo/analyze \
158 Magick++/demo/button \
159 Magick++/demo/demo \
160 Magick++/demo/detrans \
161 Magick++/demo/flip \
162 Magick++/demo/gravity \
163 Magick++/demo/piddle \
164 Magick++/demo/shapes \
165 Magick++/demo/zoom \
166 Magick++/tests/appendImages \
167 Magick++/tests/attributes \
168 Magick++/tests/averageImages \
169 Magick++/tests/coalesceImages \
170 Magick++/tests/coderInfo \
171 Magick++/tests/color \
172 Magick++/tests/colorHistogram \
173 Magick++/tests/exceptions \
dirk0cb88282015-02-07 19:15:23 +0000174 Magick++/tests/geometry \
cristy3ed852e2009-09-05 21:47:34 +0000175 Magick++/tests/montageImages \
176 Magick++/tests/morphImages \
177 Magick++/tests/readWriteBlob \
178 Magick++/tests/readWriteImages
179
180Magick___demo_analyze_SOURCES = Magick++/demo/analyze.cpp
cristy30841e62014-05-19 00:45:15 +0000181Magick___demo_analyze_LDADD = $(MAGICKPP_LDADD)
182Magick___demo_analyze_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000183
184Magick___demo_button_SOURCES = Magick++/demo/button.cpp
cristy30841e62014-05-19 00:45:15 +0000185Magick___demo_button_LDADD = $(MAGICKPP_LDADD)
186Magick___demo_button_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000187
cristy30841e62014-05-19 00:45:15 +0000188Magick___demo_demo_SOURCES = Magick++/demo/demo.cpp
189Magick___demo_demo_LDADD = $(MAGICKPP_LDADD)
190Magick___demo_demo_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000191
192Magick___demo_detrans_SOURCES = Magick++/demo/detrans.cpp
cristy30841e62014-05-19 00:45:15 +0000193Magick___demo_detrans_LDADD = $(MAGICKPP_LDADD)
194Magick___demo_detrans_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000195
cristy30841e62014-05-19 00:45:15 +0000196Magick___demo_flip_SOURCES = Magick++/demo/flip.cpp
197Magick___demo_flip_LDADD = $(MAGICKPP_LDADD)
198Magick___demo_flip_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000199
200Magick___demo_gravity_SOURCES = Magick++/demo/gravity.cpp
cristy30841e62014-05-19 00:45:15 +0000201Magick___demo_gravity_LDADD = $(MAGICKPP_LDADD)
202Magick___demo_gravity_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000203
204Magick___demo_piddle_SOURCES = Magick++/demo/piddle.cpp
cristy30841e62014-05-19 00:45:15 +0000205Magick___demo_piddle_LDADD = $(MAGICKPP_LDADD)
206Magick___demo_piddle_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000207
208Magick___demo_shapes_SOURCES = Magick++/demo/shapes.cpp
cristy30841e62014-05-19 00:45:15 +0000209Magick___demo_shapes_LDADD = $(MAGICKPP_LDADD)
210Magick___demo_shapes_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000211
212Magick___demo_zoom_SOURCES = Magick++/demo/zoom.cpp
cristy30841e62014-05-19 00:45:15 +0000213Magick___demo_zoom_LDADD = $(MAGICKPP_LDADD)
214Magick___demo_zoom_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000215
cristy30841e62014-05-19 00:45:15 +0000216Magick___tests_appendImages_SOURCES = Magick++/tests/appendImages.cpp
217Magick___tests_appendImages_LDADD = $(MAGICKPP_LDADD)
218Magick___tests_appendImages_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000219
cristy30841e62014-05-19 00:45:15 +0000220Magick___tests_attributes_SOURCES = Magick++/tests/attributes.cpp
221Magick___tests_attributes_LDADD = $(MAGICKPP_LDADD)
222Magick___tests_attributes_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000223
224Magick___tests_averageImages_SOURCES = Magick++/tests/averageImages.cpp
cristy30841e62014-05-19 00:45:15 +0000225Magick___tests_averageImages_LDADD = $(MAGICKPP_LDADD)
226Magick___tests_averageImages_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000227
228Magick___tests_coalesceImages_SOURCES = Magick++/tests/coalesceImages.cpp
cristy30841e62014-05-19 00:45:15 +0000229Magick___tests_coalesceImages_LDADD = $(MAGICKPP_LDADD)
230Magick___tests_coalesceImages_CPPFLAGS= $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000231
cristy30841e62014-05-19 00:45:15 +0000232Magick___tests_coderInfo_SOURCES = Magick++/tests/coderInfo.cpp
233Magick___tests_coderInfo_LDADD = $(MAGICKPP_LDADD)
234Magick___tests_coderInfo_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000235
cristy30841e62014-05-19 00:45:15 +0000236Magick___tests_color_SOURCES = Magick++/tests/color.cpp
237Magick___tests_color_LDADD = $(MAGICKPP_LDADD)
238Magick___tests_color_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000239
240Magick___tests_colorHistogram_SOURCES = Magick++/tests/colorHistogram.cpp
cristy30841e62014-05-19 00:45:15 +0000241Magick___tests_colorHistogram_LDADD = $(MAGICKPP_LDADD)
242Magick___tests_colorHistogram_CPPFLAGS= $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000243
cristy30841e62014-05-19 00:45:15 +0000244Magick___tests_exceptions_SOURCES = Magick++/tests/exceptions.cpp
245Magick___tests_exceptions_LDADD = $(MAGICKPP_LDADD)
246Magick___tests_exceptions_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000247
dirk0cb88282015-02-07 19:15:23 +0000248Magick___tests_geometry_SOURCES = Magick++/tests/geometry.cpp
249Magick___tests_geometry_LDADD = $(MAGICKPP_LDADD)
250Magick___tests_geometry_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
251
cristy3ed852e2009-09-05 21:47:34 +0000252Magick___tests_montageImages_SOURCES = Magick++/tests/montageImages.cpp
cristy30841e62014-05-19 00:45:15 +0000253Magick___tests_montageImages_LDADD = $(MAGICKPP_LDADD)
254Magick___tests_montageImages_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000255
cristy30841e62014-05-19 00:45:15 +0000256Magick___tests_morphImages_SOURCES = Magick++/tests/morphImages.cpp
257Magick___tests_morphImages_LDADD = $(MAGICKPP_LDADD)
258Magick___tests_morphImages_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000259
260Magick___tests_readWriteBlob_SOURCES = Magick++/tests/readWriteBlob.cpp
cristy30841e62014-05-19 00:45:15 +0000261Magick___tests_readWriteBlob_LDADD = $(MAGICKPP_LDADD)
262Magick___tests_readWriteBlob_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000263
264Magick___tests_readWriteImages_SOURCES = Magick++/tests/readWriteImages.cpp
cristy30841e62014-05-19 00:45:15 +0000265Magick___tests_readWriteImages_LDADD = $(MAGICKPP_LDADD)
266Magick___tests_readWriteImages_CPPFLAGS = $(MAGICKPP_CPPFLAGS)
cristy3ed852e2009-09-05 21:47:34 +0000267
268MAGICKPP_LOCAL_TARGETS = www/Magick++/NEWS.html www/Magick++/ChangeLog.html