#
#  Generic makefile for the ImageMagick image library for computers that do
#  not have xmkmf.
#
#  Copyright 1994 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.
#

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

CC = cc -O
AR = ar r
RANLIB = ranlib
RM = rm -f
INSTALL = install -c

CDEBUGFLAGS= -O -I..

LOCALLIB=/usr/local/lib
LOCALINC=/usr/local/include

CFLAGS= $(CDEBUGFLAGS) $(DEFINES)

all: libMagick.a

clean: 
	$(RM) *.o libMagick.a

libMagick.a: $(MagickObjects)
	$(AR) libMagick.a $(MagickObjects)
	$(RANLIB) libMagick.a

install:
	$(INSTALL) -m 0664 libMagick.a $(LOCALLIB)
	cd $(LOCALLIB); $(RANLIB) libMagick.a
	-mkdir $(LOCALINC)
	-chmod ugo+rx $(LOCALINC)
	$(INSTALL) -m 0444 xpm.h $(LOCALINC)

widget.o:  magick.h image.h utility.h X.h widget.h
X.o:  magick.h image.h X.h
image.o:  magick.h image.h compress.h utility.h X.h
shear.o:  magick.h image.h
quantize.o:  magick.h image.h
colors.o:  magick.h image.h 
signature.o:  magick.h image.h 
decode.o:  magick.h image.h compress.h utility.h X.h XWDFile.h
encode.o:  magick.h image.h compress.h utility.h X.h XWDFile.h
compress.o:  magick.h image.h utility.h
utility.o:  magick.h image.h compress.h X.h
error.o:  magick.h
PreRvIcccm.o:  magick.h image.h X.h

