home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / contrib / seejpeg / seejpeg-.4 / seejpeg- / seejpeg-1.4.3 / Makefile < prev    next >
Makefile  |  1994-06-09  |  2KB  |  65 lines

  1. # Copyright (C) 1993, 1994 Evan Harris
  2. #
  3. # Permission is granted to freely redistribute and modify this code,
  4. # providing the author(s) get credit for having written it.
  5.  
  6. # The installation directory.
  7. BIN=    /usr/bin
  8.  
  9. # See the README for a description of these options.
  10. #OPTIONS= -DPIX_ALIGN=8 -DNO_32K_CASCADE -DTESTMODE=G640x480x32K -DBUG_WORKAROUND
  11. OPTIONS= -DBUG_WORKAROUND
  12.  
  13. # This should be the location of the libgr header files.
  14. # It is only required for compiling with the libgr shared library.
  15.  
  16. GRHEADERS=    /usr/include/gr
  17.  
  18. # These may be changed, if desired.
  19.  
  20. CC=        gcc
  21. CCOPTS=        -O2 -m486
  22.  
  23. # Editing of the rest of this Makefile shouldn't be necessary.
  24.  
  25. CFLAGS=        -Ijpeglib $(CCOPTS) $(OPTIONS)
  26. LIBS=        -lvga jpeglib/libjpeg.a
  27.  
  28. SHCFLAGS=    -I$(GRHEADERS) $(CCOPTS) $(OPTIONS)
  29. SHLIBS=        -lvga -ljpeg -lm
  30. SHLDOPTS=    -s -N
  31.  
  32. SEEJPEG=    seejpeg.o jpeg.o image.o display.o cmap.o
  33.  
  34. default:
  35.     @echo "Please see the README to find out how to set PIX_ALIGN"
  36.     @echo
  37.     @echo "'make shared' now produces a usable binary if libgr-1.3 is installed"
  38.     @echo "correctly!"
  39.     @echo
  40.     @echo "Type  make seejpeg  to make seejpeg using the static libraries in the"
  41.     @echo "                    directory jpeglib"
  42.     @echo "or    make shared   to make seejpeg using shared libraries from libgr"
  43.     @echo "                    which have already been installed (these are not"
  44.     @echo "                    included with seejpeg)"
  45.     @echo "then  make install  to install seejpeg in $(BIN) after it has"
  46.     @echo "                    been made"
  47.  
  48. seejpeg:    $(SEEJPEG)
  49.         $(CC) $(CFLAGS) $(LDOPTS) -o $@ $(SEEJPEG) $(LIBS)
  50.  
  51. shared:
  52.         make CFLAGS="$(SHCFLAGS)" LIBS="$(SHLIBS)" LDOPTS="$(SHLDOPTS)" seejpeg
  53.  
  54. install:    seejpeg
  55.         install -s -o root -g bin -m 4711 seejpeg $(BIN)
  56.  
  57. clean:
  58.         rm -f *.o *~ core seejpeg
  59.  
  60. seejpeg.o:    seejpeg.h
  61. jpeg.o:        seejpeg.h
  62. image.o:    seejpeg.h
  63. display.o:    seejpeg.h
  64. cmap.o:        seejpeg.h
  65.