home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-12-13 | 3.1 KB | 115 lines |
- #
- # Generic makefile for display, animate, montage, XtoPS, and import for
- # computers that do not have xmkmf.
- #
- # 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.
- #
-
- #
- # Uncomment the following lines if you have the JPEG or TIFF libraries.
- # See README for more details.
- #
- #JPEG= -DAlienJPEG
- #JPEG_LIBRARIES= -Ljpeg -ljpeg
- #JPEG_INCLUDES= -Ijpeg
- #TIFF= -DAlienTIFF
- #TIFF_LIBRARIES= -Ltiff/libtiff -ltiff
- #TIFF_INCLUDES= -Itiff/libtiff
-
- XLIB= -L/usr/lib/X11R4 -lX11
-
- CC= cc -O -I/usr/include/X11R4
- DESTDIR= /usr/bin/X11
- INSTALL = install -c
- RM= /bin/rm -f
-
- DEFINES= $(JPEG) $(JPEG_INCLUDES) $(TIFF) $(TIFF_INCLUDES)
- SYS_LIBRARIES= $(XLIB) $(JPEG_LIBRARIES) $(TIFF_LIBRARIES) -lm
-
- MagickObjects= X.o image.o rotate.o quantize.o colors.o signature.o compress.o\
- alien.o PreRvIcccm.o
-
- DisplayObjects= display.o $(MagickObjects)
- AnimateObjects= animate.o $(MagickObjects)
- ImportObjects= import.o $(MagickObjects)
- MontageObjects= montage.o $(MagickObjects)
- XtoPSObjects= XtoPS.o $(MagickObjects)
-
- PROGRAMS= display animate montage XtoPS import
-
- CFLAGS= $(DEFINES)
-
- all: $(PROGRAMS)
-
- display: $(DisplayObjects)
- $(RM) $@
- $(CC) -o $@ $(DisplayObjects) $(SYS_LIBRARIES)
-
- clean::
- $(RM) display
-
- install:: display
- $(INSTALL) display $(DESTDIR)
-
- animate: $(AnimateObjects)
- $(RM) $@
- $(CC) -o $@ $(AnimateObjects) $(SYS_LIBRARIES)
-
- clean::
- $(RM) animate
-
- install:: animate
- $(INSTALL) animate $(DESTDIR)
-
- montage: $(MontageObjects)
- $(RM) $@
- $(CC) -o $@ $(MontageObjects) $(SYS_LIBRARIES)
-
- clean::
- $(RM) montage
-
- install:: montage
- $(INSTALL) montage $(DESTDIR)
-
- XtoPS: $(XtoPSObjects)
- $(RM) $@
- $(CC) -o $@ $(XtoPSObjects) $(SYS_LIBRARIES)
-
- clean::
- $(RM) XtoPS
-
- install:: XtoPS
- $(INSTALL) XtoPS $(DESTDIR)
-
- import: $(ImportObjects)
- $(RM) $@
- $(CC) -o $@ $(ImportObjects) $(SYS_LIBRARIES)
-
- clean::
- $(RM) import
-
- install:: import
- $(INSTALL) import $(DESTDIR)
-
- clean::
- $(RM) *.ln *.bak *.o core errs ,* *~ *.a .emacs_* make.log MakeOut
-