#
#  Imakefile for display, animate, montage, and import.
#
#  Copyright 1992 E. I. du Pont de Nemours & Company
#
#  Permission to use, copy, modify, distribute, and sell this software and
#  its documentation for any purpose is hereby granted without fee,
#  provided that the above Copyright notice appear in all copies and that
#  both that Copyright notice and this permission notice appear in
#  supporting documentation, and that the name of E. I. du Pont de Nemours
#  & Company not be used in advertising or publicity pertaining to
#  distribution of the software without specific, written prior
#  permission.  E. I. du Pont de Nemours & Company makes no representations
#  about the suitability of this software for any purpose.  It is provided
#  "as is" without express or implied warranty.
#
#  E. I. du Pont de Nemours & Company disclaims all warranties with regard
#  to this software, including all implied warranties of merchantability
#  and fitness, in no event shall E. I. du Pont de Nemours & Company be
#  liable for any special, indirect or consequential damages or any
#  damages whatsoever resulting from loss of use, data or profits, whether
#  in an action of contract, negligence or other tortious action, arising
#  out of or in connection with the use or performance of this software.
#

#include "Magick.tmpl"

MagickObjects= X.o image.o shear.o quantize.o colors.o signature.o decode.o\
  encode.o compress.o utility.o PreRvIcccm.o

SRCS= display.c X.c image.c shear.c quantize.c colors.c signature.c decode.c \
  encode.c compress.c utility.c PreRvIcccm.c
OBJS= display.o $(MagickObjects)
AnimateObjects= animate.o $(MagickObjects)
ImportObjects= import.o $(MagickObjects)
MontageObjects= montage.o $(MagickObjects)

PROGRAMS= display animate montage import

AllTarget($(PROGRAMS))

ComplexProgramTarget(display)
NormalProgramTarget(animate,$(AnimateObjects), , , )
InstallProgram(animate,$(BINDIR))
InstallManPage(animate,$(MANDIR))
NormalProgramTarget(montage,$(MontageObjects), , , )
InstallProgram(montage,$(BINDIR))
InstallManPage(montage,$(MANDIR))
NormalProgramTarget(import,$(ImportObjects), , , )
InstallProgram(import,$(BINDIR))
InstallManPage(import,$(MANDIR))

#define InstallMyManPage(file,destdir,suffix)                           @@\
install.man:: file.man                                                  @@\
	$(INSTALL) -c $(INSTMANFLAGS) file.man $(DESTDIR)destdir/file.suffix

InstallMyManPage(quantize,$(MANSOURCEPATH)5,5)
InstallMyManPage(miff,$(MANSOURCEPATH)5,5)

#define IHaveSubdirs

SUBDIRS= utilities xtp

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
