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 \
59 magick/animate-private.h \
69 magick/blob-private.h \
72 magick/cache-private.h \
83 magick/color-private.h \
86 magick/colormap-private.h \
89 magick/colorspace-private.h \
94 magick/composite-private.h \
100 magick/constitute.h \
105 magick/delegate-private.h \
110 magick/display-private.h \
115 magick/draw-private.h \
122 magick/exception-private.h \
127 magick/fx-private.h \
140 magick/image-private.h \
153 magick/magick-config.h \
154 magick/magick-type.h \
167 magick/monitor-private.h \
170 magick/morphology.c \
171 magick/morphology.h \
173 magick/nt-feature.h \
180 magick/pixel-private.h \
183 magick/PreRvIcccm.c \
184 magick/PreRvIcccm.h \
195 magick/quantum-export.c \
196 magick/quantum-import.c \
197 magick/quantum-private.h \
200 magick/random-private.h \
205 magick/resample-private.h \
208 magick/resize-private.h \
219 magick/signature-private.h \
220 magick/splay-tree.c \
221 magick/splay-tree.h \
228 magick/stream-private.h \
231 magick/string-private.h \
235 magick/thread-private.h \
240 magick/token-private.h \
259 if WIN32_NATIVE_BUILD
260 MAGICK_PLATFORM_SRCS = \
263 magick/nt-feature.c \
267 MAGICK_PLATFORM_SRCS = \
268 magick/nt-feature.c \
271 MAGICK_PLATFORM_SRCS =
272 endif # if CYGWIN_BUILD
273 endif # if WIN32_NATIVE_BUILD
275 MAGICK_INCLUDE_HDRS = \
276 magick/ImageMagick.h \
277 magick/MagickCore.h \
278 magick/PreRvIcccm.h \
286 magick/cache-view.h \
292 magick/colorspace.h \
297 magick/constitute.h \
321 magick/magick-config.h \
322 magick/magick-type.h \
330 magick/morphology.h \
349 magick/splay-tree.h \
364 MAGICK_NOINST_HDRS = \
365 magick/animate-private.h \
366 magick/blob-private.h \
367 magick/cache-private.h \
368 magick/color-private.h \
369 magick/colormap-private.h \
370 magick/colorspace-private.h \
371 magick/composite-private.h \
372 magick/delegate-private.h \
373 magick/display-private.h \
374 magick/draw-private.h \
375 magick/exception-private.h \
376 magick/fx-private.h \
377 magick/image-private.h \
379 magick/mime-private.h \
380 magick/monitor-private.h \
382 magick/nt-feature.h \
383 magick/pixel-private.h \
384 magick/quantum-private.h \
385 magick/random-private.h \
386 magick/resample-private.h \
387 magick/resize-private.h \
388 magick/signature-private.h \
390 magick/stream-private.h \
391 magick/string-private.h \
394 magick/thread-private.h \
395 magick/token-private.h \
396 magick/xwindow-private.h \
399 MAGICK_EXTRA_DIST = \
400 magick/Magick-config.in \
401 magick/MagickCore-config.in \
403 magick/ImageMagick.pc.in \
404 magick/MagickCore.pc.in \
406 magick/config.h_vms \
409 magick/nt-feature.c \
413 # Install magick-config.h
414 MAGICK_INSTALL_DATA_LOCAL_TARGETS = magick-install-data-local
415 magick-install-data-local:
416 $(mkinstalldirs) $(DESTDIR)$(magickincdir)
417 $(INSTALL_HEADER) magick/magick-config.h $(DESTDIR)$(magickincdir)/magick-config.h
419 # Uninstall magick-config.h
420 MAGICK_UNINSTALL_LOCAL_TARGETS = magick-uninstall-local
421 magick-uninstall-local:
422 rm -f $(DESTDIR)$(magickincdir)/magick-config.h