1 # Copyright 1999-2010 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 the MagickCore API.
18 magickincdir = $(topincludedir)/magick
20 # Headers which are installed
22 $(MAGICK_INCLUDE_HDRS)
25 magick/Magick-config \
26 magick/MagickCore-config
29 magick/ImageMagick.pc \
32 OSX_GCOV_LDFLAG = @OSX_GCOV_LDFLAG@
35 magick/Magick-config.1 \
36 magick/MagickCore-config.1
38 MAGICKCORE_LIBS = magick/libMagickCore.la
41 magick_libMagickCore_la_SOURCES = $(MAGICK_BASE_SRCS) $(MAGICK_PLATFORM_SRCS)
42 magick_libMagickCore_la_LIBADD = $(MAGICK_DEP_LIBS) $(MAGICK_LIBLTDL)
44 magick_libMagickCore_la_SOURCES = $(MAGICK_BASE_SRCS) $(MAGICK_PLATFORM_SRCS) $(MAGICK_CODER_SRCS) $(MAGICK_FILTER_SRCS)
45 magick_libMagickCore_la_LIBADD = $(MAGICK_DEP_LIBS) $(MAGICK_LIBLTDL)
47 magick_libMagickCore_la_CPPFLAGS = -I$(top_builddir)/ltdl -I$(top_srcdir)/ltdl $(LIBRARY_EXTRA_CPPFLAGS)
48 magick_libMagickCore_la_LDFLAGS = -no-undefined -export-symbols-regex ".*" \
49 $(OSX_GCOV_LDFLAG) -version-info \
50 $(MAGICK_LIBRARY_CURRENT):$(MAGICK_LIBRARY_REVISION):$(MAGICK_LIBRARY_AGE)
51 magick_libMagickCore_la_DEPENDENCIES = $(MAGICK_LTDLDEPS)
53 # Library base sources
55 magick/ImageMagick.h \
61 magick/animate-private.h \
71 magick/blob-private.h \
74 magick/cache-private.h \
85 magick/color-private.h \
88 magick/colormap-private.h \
91 magick/colorspace-private.h \
96 magick/composite-private.h \
101 magick/constitute.c \
102 magick/constitute.h \
107 magick/delegate-private.h \
112 magick/display-private.h \
117 magick/draw-private.h \
124 magick/exception-private.h \
131 magick/fx-private.h \
144 magick/image-private.h \
157 magick/magick-config.h \
158 magick/magick-type.h \
171 magick/monitor-private.h \
174 magick/morphology.c \
175 magick/morphology.h \
176 magick/morphology-private.h \
178 magick/nt-feature.h \
185 magick/pixel-private.h \
188 magick/PreRvIcccm.c \
189 magick/PreRvIcccm.h \
200 magick/quantum-export.c \
201 magick/quantum-import.c \
202 magick/quantum-private.h \
205 magick/random-private.h \
210 magick/resample-private.h \
213 magick/resize-private.h \
224 magick/signature-private.h \
225 magick/splay-tree.c \
226 magick/splay-tree.h \
233 magick/stream-private.h \
236 magick/string-private.h \
240 magick/thread-private.h \
245 magick/token-private.h \
264 if WIN32_NATIVE_BUILD
265 MAGICK_PLATFORM_SRCS = \
268 magick/nt-feature.c \
272 MAGICK_PLATFORM_SRCS = \
273 magick/nt-feature.c \
276 MAGICK_PLATFORM_SRCS =
277 endif # if CYGWIN_BUILD
278 endif # if WIN32_NATIVE_BUILD
280 MAGICK_INCLUDE_HDRS = \
281 magick/ImageMagick.h \
282 magick/MagickCore.h \
283 magick/PreRvIcccm.h \
284 magick/accelerate.h \
292 magick/cache-view.h \
298 magick/colorspace.h \
303 magick/constitute.h \
328 magick/magick-config.h \
329 magick/magick-type.h \
337 magick/morphology.h \
356 magick/splay-tree.h \
371 MAGICK_NOINST_HDRS = \
372 magick/animate-private.h \
373 magick/blob-private.h \
374 magick/cache-private.h \
375 magick/color-private.h \
376 magick/colormap-private.h \
377 magick/colorspace-private.h \
378 magick/composite-private.h \
379 magick/delegate-private.h \
380 magick/display-private.h \
381 magick/draw-private.h \
382 magick/exception-private.h \
383 magick/fx-private.h \
384 magick/image-private.h \
386 magick/mime-private.h \
387 magick/monitor-private.h \
388 magick/morphology-private.h \
390 magick/nt-feature.h \
391 magick/pixel-private.h \
392 magick/quantum-private.h \
393 magick/random-private.h \
394 magick/resample-private.h \
395 magick/resize-private.h \
396 magick/signature-private.h \
398 magick/stream-private.h \
399 magick/string-private.h \
402 magick/thread-private.h \
403 magick/token-private.h \
404 magick/xwindow-private.h \
407 MAGICK_EXTRA_DIST = \
408 magick/Magick-config.in \
409 magick/MagickCore-config.in \
411 magick/ImageMagick.pc.in \
412 magick/MagickCore.pc.in \
414 magick/config.h_vms \
417 magick/nt-feature.c \
421 # Install magick-config.h
422 MAGICK_INSTALL_DATA_LOCAL_TARGETS = magick-install-data-local
423 magick-install-data-local:
424 $(mkinstalldirs) $(DESTDIR)$(magickincdir)
425 $(INSTALL_HEADER) magick/magick-config.h $(DESTDIR)$(magickincdir)/magick-config.h
427 # Uninstall magick-config.h
428 MAGICK_UNINSTALL_LOCAL_TARGETS = magick-uninstall-local
429 magick-uninstall-local:
430 rm -f $(DESTDIR)$(magickincdir)/magick-config.h