home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / xloadimg.zip / xloadimage.4.1 / Imakefile < prev    next >
Makefile  |  1993-11-09  |  3KB  |  69 lines

  1. # Imakefile for building within the X11 source tree.
  2. # This Imakefile was automatically generated from Makefile.std.
  3. #
  4. # If you have problems building, you should read the README file and
  5. # consider using Makefile.std.
  6. #
  7. # If you use gcc, you should read the README file and consider using
  8. # Makefile.std.
  9.  
  10.     SYSPATHFILE = $(XAPPLOADDIR)/Xloadimage
  11.         DEFINES = -DSYSPATHFILE=\"$(SYSPATHFILE)\"
  12.         DEPLIBS = $(DEPXLIB)
  13. LOCAL_LIBRARIES = $(XLIB)
  14. SYS_LIBRARIES   = -lm
  15.  
  16. #ifdef HPArchitecture
  17.       CCOPTIONS = -Aa -D_HPUX_SOURCE
  18. #endif
  19.  
  20. # Comment out either of the next two lines if you don't have TIFF or JPEG libs
  21. #define HAS_TIFF
  22. #define HAS_JPEG
  23.  
  24. #ifdef HAS_TIFF
  25. TIFF_DEFS = -DHAS_TIFF -I/usr/local/include
  26.  TIFF_LIB = -L/usr/local/lib/tiff -ltiff
  27.  TIFF_SRC = tiff.c
  28.  TIFF_OBJ = tiff.o
  29. #endif
  30.  
  31. #ifdef HAS_JPEG
  32. JPEG_DEFS = -DHAS_JPEG -I/usr/local/include/jpeg
  33.  JPEG_LIB = -L/usr/local/lib/jpeg -ljpeg
  34.  JPEG_SRC = jpeg.c
  35.  JPEG_OBJ = jpeg.o
  36. #endif
  37.  
  38.   EXTRA_DEFINES = $(TIFF_DEFS) $(JPEG_DEFS)
  39. LOCAL_LIBRARIES = $(TIFF_LIB)  $(JPEG_LIB) $(XLIB)
  40.  
  41. SRCS = new.c niff.c value.c zio.c cmuwmraster.c faces.c fbm.c gif.c imagetypes.c img.c  mac.c mcidas.c mc_tables.c pbm.c pcx.c pdsuncomp.c  rle.c rlelib.c sunraster.c vff.c vicar.c xbitmap.c xpixmap.c  xwd.c bright.c clip.c compress.c dither.c fill.c halftone.c  merge.c reduce.c rotate.c smooth.c undither.c zoom.c config.c misc.c options.c root.c send.c window.c  xloadimage.c  $(TIFF_SRC) $(JPEG_SRC)
  42. OBJS = new.o niff.o value.o zio.o cmuwmraster.o faces.o fbm.o gif.o imagetypes.o img.o  mac.o mcidas.o mc_tables.o pbm.o pcx.o pdsuncomp.o  rle.o rlelib.o sunraster.o vff.o vicar.o xbitmap.o xpixmap.o  xwd.o bright.o clip.o compress.o dither.o fill.o halftone.o  merge.o reduce.o rotate.o smooth.o undither.o zoom.o config.o misc.o options.o root.o send.o window.o  xloadimage.o  $(TIFF_OBJ) $(JPEG_OBJ)
  43.  
  44. AllTarget(xloadimage uufilter)
  45. ComplexProgramTarget(xloadimage)
  46. NormalProgramTarget(uufilter,uufilter.o,,,)
  47. InstallProgram(uufilter,$(BINDIR))
  48. InstallManPage(uufilter,$(MANDIR))
  49.  
  50. install:: $(SYSPATHFILE)
  51.     $(RM) $(BINDIR)/xview $(BINDIR)/xsetbg
  52.     cd $(BINDIR); $(LN) xloadimage xview; $(LN) xloadimage xsetbg
  53.  
  54. clean::
  55.     /bin/rm -f build.c
  56.  
  57. build.c:
  58.     ./build-info
  59.  
  60. $(SYSPATHFILE):
  61.     @echo "*** Creating default $(SYSPATHFILE) since you"
  62.     @echo "*** don't have one. This file is used to set up default places"
  63.     @echo "*** and names to look for images.  You probably want to edit"
  64.     @echo "*** it for your site.  See the xloadimage manual page for"
  65.     @echo "*** details on the contents of this file."
  66.     cp xloadimagerc $(SYSPATHFILE)
  67.     chmod a+r $(SYSPATHFILE)
  68.  
  69.