home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / ImageMagick-4.0.6.tar.gz / ImageMagick-4.0.6.tar / ImageMagick-4.0.6 / Makefile.am < prev    next >
Makefile  |  1998-04-10  |  5KB  |  168 lines

  1. #
  2. #  Automake Makefile for the ImageMagick applications
  3. #
  4. #  Copyright 1998 E. I. du Pont de Nemours and Company
  5. #
  6. #  Permission is hereby granted, free of charge, to any person obtaining a
  7. #  copy of this software and associated documentation files ("ImageMagick"),
  8. #  to deal in ImageMagick without restriction, including without limitation 
  9. #  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
  10. #  and/or sell copies of ImageMagick, and to permit persons to whom the 
  11. #  ImageMagick is furnished to do so, subject to the following conditions:
  12. #   
  13. #  The above copyright notice and this permission notice shall be included in 
  14. #  all copies or substantial portions of ImageMagick. 
  15. #   
  16. #  The software is provided "as is", without warranty of any kind, express or 
  17. #  implied, including but not limited to the warranties of merchantability, 
  18. #  fitness for a particular purpose and noninfringement.In no event shall 
  19. #  E. I. du Pont de Nemours and Company be liable for any claim, damages or 
  20. #  other liability, whether in an action of contract, tort or otherwise,
  21. #  arising from, out of or in connection with ImageMagick or the use or other 
  22. #  dealings in ImageMagick. 
  23. #   
  24. #  Except as contained in this notice, the name of the E. I. du Pont de 
  25. #  Nemours and Company shall not be used in advertising or otherwise to 
  26. #  promote the sale, use or other dealings in ImageMagick without prior 
  27. #  written authorization from the E. I. du Pont de Nemours and Company. 
  28. #
  29. #  This file is currently maintained by Bob Friesenhahn,
  30. #  bfriesen@simple.dallas.tx.us
  31.  
  32. # Don't require all the GNU mandated files
  33. # Remove comment from no-dependencies for distributions compatable with
  34. # traditional 'make'
  35. AUTOMAKE_OPTIONS = 1.2 foreign # no-dependencies
  36.  
  37. MAGICK_LIB    = magick/libMagick.la # libtool library name
  38. INCLUDES    = -I$(srcdir)/magick $(X_CFLAGS)
  39.  
  40. # Subdirectories to build
  41. SUBDIRS = magick xtp xlib
  42.  
  43. # Executables to build
  44. bin_PROGRAMS = animate combine convert display identify import mogrify montage
  45.  
  46. # Per-executable sources
  47. display_SOURCES  = display.c
  48. animate_SOURCES  = animate.c
  49. import_SOURCES   = import.c
  50. montage_SOURCES  = montage.c
  51. convert_SOURCES  = convert.c
  52. mogrify_SOURCES  = mogrify.c
  53. identify_SOURCES = identify.c
  54. combine_SOURCES  = combine.c
  55.  
  56. # Libtool libraries used by all executables
  57. LDADD         = $(MAGICK_LIB) @X11STUBSLA@
  58.  
  59. # Manual pages to install
  60. MANPAGES = ImageMagick.1 animate.1 combine.1 convert.1 display.1 identify.1 \
  61.   import.1 miff.4 mogrify.1 montage.1 quantize.5
  62. man_MANS = $(MANPAGES)
  63.  
  64. # Additional files to distribute
  65. EXTRA_DIST = $(MANPAGES) Magick.tmpl Manifest.ps ImageMagick.html Imakefile \
  66.     Magickshr.opt Make.com README.txt Copyright.txt FlashPix.txt acconfig.h
  67.  
  68. # Non-Automake (except for PerlMagick) subdirectories to distribute
  69. DISTDIRS = docs images scenes scripts www
  70. # PerlMagick files to distribute
  71. PLFILES = Changelog MANIFEST Magick.pm Magick.xs Makefile.PL Makefile.PL.in \
  72.     Makefile.nt README.txt girl.gif logo.gif rose.gif t.pl test.pl
  73. dist-hook:
  74.     ( \
  75.       builddir=`pwd` ; \
  76.       cd $(srcdir) && \
  77.       ( \
  78.         for dir in $(DISTDIRS) ; do \
  79.           find $$dir -depth -print | egrep -v '(~$$)' | cpio -pdum $$builddir/$(distdir) 2> /dev/null ; \
  80.         done \
  81.       ) \
  82.     )
  83.     mkdir $(distdir)/PerlMagick && \
  84.     for file in $(PLFILES) ; do \
  85.       cp -p PerlMagick/$$file $(distdir)/PerlMagick ; \
  86.     done
  87.  
  88.  
  89. if WITH_PERL
  90.  
  91. PERLMAGICK=PerlMagick
  92. PERLMAKEMAKER=$(PERLMAGICK)/Makefile.PL
  93. PERLMAKEFILE=$(PERLMAGICK)/Makefile
  94.  
  95. # If source files missing, see if they can be obtained via VPATH
  96. perl-sources:
  97.     touch perl-sources && \
  98.     cd $(PERLMAGICK) && \
  99.     ( \
  100.       if test -n "$(VPATH)" ; then \
  101.         for file in "$(VPATH)/$(PERLMAGICK)/"* ; do \
  102.           base=`basename $$file` ; \
  103.           if test ! -r $$base ; then \
  104.             @LN_S@ $$file . ; \
  105.           fi \
  106.         done \
  107.       fi ; \
  108.     )
  109.  
  110. if WITH_PERL_DYNAMIC
  111.  
  112. $(PERLMAKEFILE): perl-sources $(PERLMAKEMAKER)
  113.     cd $(PERLMAGICK) && @PERL@ Makefile.PL
  114.  
  115. # Make all PERL sub-targets except those that require a link
  116. # since the link must be against installed libraries
  117. PERLALLTARGETS=config pm_to_blib subdirs Magick.o manifypods
  118. all-perl: $(PERLMAKEFILE)
  119.     cd $(PERLMAGICK) && $(MAKE) $(PERLALLTARGETS)
  120.  
  121. install-exec-perl: all-perl
  122.     cd $(PERLMAGICK) && $(MAKE) install
  123.  
  124. else
  125. if WITH_PERL_STATIC
  126.  
  127. PERLSTATICNAME=PerlMagick
  128.  
  129. $(PERLMAKEFILE): perl-sources $(PERLMAKEMAKER)
  130.     cd $(PERLMAGICK) && @PERL@ Makefile.PL MAP_TARGET=$(PERLSTATICNAME)
  131.  
  132. all-perl: $(PERLMAKEFILE)
  133.     cd $(PERLMAGICK) && $(MAKE) $(PERLSTATICNAME)
  134.  
  135. install-exec-perl: all-perl
  136.     cd $(PERLMAGICK) && $(MAKE) -f Makefile.aperl inst_perl
  137.  
  138. endif # WITH_PERL_STATIC
  139. endif # WTIH_PERL_DYNAMIC
  140.  
  141. clean-perl: $(PERLMAKEFILE)
  142.     cd $(PERLMAGICK) && $(MAKE) clean && $(RM) -f  Makefile.old PerlMagick
  143.     $(RM) -f perl-sources
  144.  
  145. distclean-perl: clean-perl
  146.  
  147. else
  148. # Satisfy makefile requirements if not building PERL
  149. all-perl:
  150. install-exec-perl:
  151. clean-perl:
  152. distclean-perl:
  153. endif # WITH_PERL
  154.  
  155. all-local: all-perl
  156.  
  157. # Install PerlMagick
  158. install-exec-local: install-exec-perl
  159.  
  160. # Do a make clean in PerlMagick directory 
  161. clean-local: clean-perl
  162.  
  163. # Do a make distclean in PerlMagick directory 
  164. distclean-local: distclean-perl
  165.  
  166. # Maintainer clean is just like 'distclean' for PerlMagick
  167. maintainer-clean-local: distclean-local
  168.