# Makefile generated by imake - do not edit!
# $Xorg: imake.c,v 1.6 2001/02/09 02:03:15 xorgcvs Exp $

# ----------------------------------------------------------------------
# Makefile generated from "Imake.tmpl" and <Imakefile>
# $Xorg: Imake.tmpl,v 1.4 2000/08/17 19:41:46 cpqbld Exp $
# $XdotOrg: xc/config/cf/Imake.tmpl,v 1.1.4.6.2.2 2004/04/02 21:47:10 eich Exp $
#
#
#
#
# $XFree86: xc/config/cf/Imake.tmpl,v 3.155 2003/12/24 18:58:41 dickey Exp $
# ----------------------------------------------------------------------

all::

.SUFFIXES: .i

# $XdotOrg: xc/config/cf/Imake.cf,v 1.1.4.6.2.5 2004/03/15 15:37:38 eich Exp $
# $Xorg: Imake.cf,v 1.4 2000/08/17 19:41:45 cpqbld Exp $

# $XFree86: xc/config/cf/Imake.cf,v 3.88 2003/12/16 21:30:21 herrb Exp $

# -----------------------------------------------------------------------
# site-specific configuration parameters that need to come before
# the platform-specific parameters - edit site.def to change

# site:  $TOG: site.sample /main/r64_final/1 1998/02/05 16:28:49 kaleb $

# site:  $XFree86: xc/config/cf/site.def,v 3.24 2000/06/25 20:17:29 dawes Exp $

# $XFree86: xc/config/cf/xf86site.def,v 3.186 2003/06/25 18:06:22 eich Exp $

# ----------------------------------------------------------------------
# platform-specific configuration parameters - edit linux.cf to change

# $XdotOrg: xc/config/cf/linux.cf,v 1.1.4.5.2.6 2004/04/02 21:47:10 eich Exp $
# platform:  $Xorg: linux.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $

# platform:  $XFree86: xc/config/cf/linux.cf,v 3.220 2003/12/30 22:38:33 tsi Exp $

# operating system:  Linux 2.6.10 alpha [ELF] (2.6.10)
# libc:	(6.3.3)
# binutils:	(215)

# $Xorg: lnxLib.rules,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
# $XFree86: xc/config/cf/lnxLib.rules,v 3.52 2003/10/31 20:49:03 herrb Exp $

# $XdotOrg: xc/config/cf/xorg.cf,v 1.1.6.1 2004/04/02 21:47:10 eich Exp $

# $Xorg: xfree86.cf,v 1.4 2000/08/17 19:41:49 cpqbld Exp $

XORG_VERSION_CURRENT = (((6) * 10000000) + ((7) * 100000) + ((0) * 1000) + 0)
RELEASE_VERSION = RELEASE-1

DRIVERSDKDIR = $(USRLIBDIR)/Server
DRIVERSDKMODULEDIR = $(USRLIBDIR)/Server/modules
DRIVERSDKINCLUDEDIR = $(USRLIBDIR)/Server/include

       XF86SRC = $(SERVERSRC)/hw/xfree86
    XF86COMSRC = $(XF86SRC)/common
 XF86PARSERSRC = $(XF86SRC)/parser
     XF86OSSRC = $(XF86SRC)/os-support
 XF86DRIVERSRC = $(XF86SRC)/drivers
     DRIVERSRC = $(XF86DRIVERSRC)

        XFREE86DOCDIR = $(DOCDIR)
      XFREE86PSDOCDIR = $(DOCPSDIR)
     XFREE86PDFDOCDIR = $(DOCPDFDIR)
    XFREE86HTMLDOCDIR = $(DOCHTMLDIR)
XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japanese

# $Xorg: xf86.rules,v 1.3 2000/08/17 19:41:48 cpqbld Exp $

# $XFree86: xc/config/cf/xf86.rules,v 3.34tsi Exp $

# ----------------------------------------------------------------------
# site-specific configuration parameters that go after
# the platform-specific parameters - edit site.def to change

# site:  $TOG: site.sample /main/r64_final/1 1998/02/05 16:28:49 kaleb $

# site:  $XFree86: xc/config/cf/site.def,v 3.24 2000/06/25 20:17:29 dawes Exp $

# ---------------------------------------------------------------------
# Imake rules for building libraries, programs, scripts, and data files
# rules:  $Xorg: Imake.rules,v 1.3 2000/08/17 19:41:46 cpqbld Exp $
# rules:  $XdotOrg: xc/config/cf/Imake.rules,v 1.1.4.3.6.3 2004/04/02 21:47:10 eich Exp $
#
#
#
#
# rules:  $XFree86: xc/config/cf/Imake.rules,v 3.128 2003/11/15 03:25:17 dawes Exp $

 _NULLCMD_ = @ echo -n

X_BYTE_ORDER = X_LITTLE_ENDIAN

GLIDE2INCDIR =

GLIDE3INCDIR =

GLIDE3LIBNAME =

TKLIBNAME =

TKLIBDIR =

TCLLIBNAME =

TCLIBDIR =

          PATHSEP = /
            SHELL = /bin/sh -e

              TOP = .
      CURRENT_DIR = .

            IMAKE = imake
           DEPEND = gccmakedep
        MKDIRHIER = mkdir -p
          REVPATH = revpath
    EXPORTLISTGEN =
             RMAN = rman
     RMANBASENAME = rman
      RMANOPTIONS = -f HTML
        CONFIGSRC = $(TOP)/config
         IMAKESRC = $(CONFIGSRC)/imake
        DEPENDSRC = $(CONFIGSRC)/util

          INCROOT = /usr/X11R6/include/X11
        USRLIBDIR = /usr/X11R6/lib
           VARDIR = /var
        VARLIBDIR = $(VARDIR)/lib
  SYSTEMUSRLIBDIR = /usr/lib
  SYSTEMUSRINCDIR = /usr/include
         SHLIBDIR = /usr/X11R6/lib
       LINTLIBDIR = $(USRLIBDIR)/lint
          MANPATH = /usr/man
    MANSOURCEPATH = $(MANPATH)/man
           MANDIR = $(MANSOURCEPATH)1
        LIBMANDIR = $(MANSOURCEPATH)3
       FILEMANDIR = $(MANSOURCEPATH)5
       MISCMANDIR = $(MANSOURCEPATH)$(MISCMANSUFFIX)
     DRIVERMANDIR = $(MANSOURCEPATH)$(DRIVERMANSUFFIX)
     LOGDIRECTORY = $(VARDIR)/log

        VARRUNDIR = $(VARDIR)/run

         VARDBDIR = $(VARDIR)/lib

               AR = ar clq

# Nice try but useless: make will inherit BOOTSTRAPCFLAGS
# from  top Makefile
  BOOTSTRAPCFLAGS =

               CC = gcc
               AS = gcc -c -x assembler

.SUFFIXES: .cc

              CXX = c++

          CXXFILT = c++filt

           CXXLIB = -lstdc++

    CXXDEBUGFLAGS = -O2 -fno-strict-aliasing
CXXDEPENDINCLUDES =
 CXXEXTRA_DEFINES =
CXXEXTRA_INCLUDES =
   CXXSTD_DEFINES = -Dlinux -D__alpha__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE 				  				 $(CXXPROJECT_DEFINES)
       CXXOPTIONS =
      CXXINCLUDES = $(INCLUDES) $(TOP_INCLUDES) $(CXXEXTRA_INCLUDES)
       CXXDEFINES = $(CXXINCLUDES) $(CXXSTD_DEFINES) $(THREADS_CXXDEFINES) $(DEFINES) $(CXXEXTRA_DEFINES)
         CXXFLAGS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(THREADS_CXXFLAGS) $(CXXDEFINES)

         COMPRESS = compress
          GZIPCMD = gzip

              CPP = cpp $(STD_CPP_DEFINES)
           RAWCPP = cpp -undef $(STD_CPP_OPTIONS)
    PREPROCESSCMD = gcc -E $(STD_CPP_DEFINES)

          INSTALL = install
     INSTALLFLAGS = -c

               LD = gcc -nostdlib

              LEX = flex -l
               M4 = m4
          M4FLAGS =
           LEXLIB = -lfl
             YACC = bison -y
           CCYACC = bison -y

             LINT = lint

      LINTLIBFLAG = -C
         LINTOPTS = -axz
               LN = ln -s
             MAKE = make
               MV = mv -f
               CP = cp

           RANLIB = ranlib

  RANLIBINSTFLAGS =

               RM = rm -f
             PERL = perl
         PERLOPTS =
     PERLENVSETUP = env LC_ALL=C
        MANSUFFIX = 1x
     LIBMANSUFFIX = 3x
    FILEMANSUFFIX = 5x
    MISCMANSUFFIX = 7
  DRIVERMANSUFFIX = 4
   ADMINMANSUFFIX = 8
     MANSRCSUFFIX = man
     MANNEWSUFFIX = _man
          MANDEFS = -D__apploaddir__=$(XAPPLOADDIR) -D__appmansuffix__=$(MANSUFFIX) -D__filemansuffix__=$(FILEMANSUFFIX) -D__libmansuffix__=$(LIBMANSUFFIX) -D__miscmansuffix__=$(MISCMANSUFFIX) -D__drivermansuffix__=$(DRIVERMANSUFFIX) -D__adminmansuffix__=$(ADMINMANSUFFIX) -D__projectroot__=$(PROJECTROOT) -D__xconfigfile__=$(XCONFIGFILE) -D__xconfigdir__=$(XCONFIGDIR) -D__xlogfile__=$(XLOGFILE) -D__xservername__=$(XSERVERNAME) $(XORGMANDEFS) $(VENDORMANDEFS)

   COMPRESSMANCMD = gzip -n

            TROFF = groff -Tps
            NROFF = nroff

         MSMACROS = -ms
        MANMACROS = -man
              TBL = tbl
              EQN = eqn
             NEQN = neqn
              COL = col
         COLFLAGS = -b

            MODCC = gcc

           MODCPP = cpp
        MODCFLAGS = $(CFLAGS)
            MODAS = gcc -c -x assembler
       MODASFLAGS =

            MODLD = gcc -nostdlib

       MODLDFLAGS =
MODLDCOMBINEFLAGS = -r
            MODAR = ar clq

        MODRANLIB = ranlib

     STD_INCLUDES =
  STD_CPP_OPTIONS = -traditional
  STD_CPP_DEFINES = -traditional -Dlinux -D__alpha__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE 				  				 $(PROJECT_DEFINES)
      STD_DEFINES = -Dlinux -D__alpha__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE 				  				 $(PROJECT_DEFINES)
 EXTRA_LOAD_FLAGS =
  EXTRA_LDOPTIONS =
  EXTRA_LIBRARIES =
             TAGS = ctags

   PARALLELMFLAGS =

    SHAREDCODEDEF =
         SHLIBDEF =

     SHLIBLDFLAGS = -shared $(SHLIBGLOBALSFLAGS)

         PICFLAGS = -fPIC

      CXXPICFLAGS = -fPIC

    PROTO_DEFINES = -DFUNCPROTO=15 -DNARROWPROTO

     INSTPGMFLAGS =

     INSTBINFLAGS = -m 0755
     INSTUIDFLAGS = -m 4711
     INSTLIBFLAGS = -m 0644
     INSTINCFLAGS = -m 0444
     INSTMANFLAGS = -m 0444
     INSTDATFLAGS = -m 0444
    INSTKMEMFLAGS = -m 4711

      PROJECTROOT = /usr

      CDEBUGFLAGS = -O2 -fno-strict-aliasing
        CCOPTIONS =

      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(INSTALLED_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(MODULE_DEFINES) $(DEFINES) $(EXTRA_DEFINES) $(VENDOR_DEFINES)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(THREADS_CFLAGS) $(MODULE_CFLAGS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
         LDPRELIB = -L$(USRLIBDIR) $(INSTALLED_LIBS)
        LDPOSTLIB =
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)  $(EXTRA_LDOPTIONS) $(THREADS_LDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIBS)
     CXXLDOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(EXTRA_LDOPTIONS) $(THREADS_CXXLDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIBS)

           LDLIBS = $(LDPOSTLIBS) $(THREADS_LIBS) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

           CCLINK = $(CC)

          CXXLINK = $(CXX)

     LDSTRIPFLAGS = -x
   LDCOMBINEFLAGS = -r
      DEPENDFLAGS =
   DEPEND_DEFINES =

# Not sure this belongs here
         TKLIBDIR =
         TKINCDIR =
        TKLIBNAME =
        TKLIBRARY = -L$(TKLIBDIR) -l$(TKLIBNAME)
        TCLLIBDIR =
        TCLINCDIR =
       TCLLIBNAME =
       TCLLIBRARY = -L$(TCLLIBDIR) -l$(TCLLIBNAME)

        MACROFILE = linux.cf
           RM_CMD = $(RM)

    IMAKE_DEFINES =
   IMAKE_WARNINGS = -Wundef

         IRULESRC = $(CONFIGDIR)
        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES) 		    $(IMAKE_WARNINGS)

     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/X11.tmpl 			$(IRULESRC)/site.def $(IRULESRC)/$(MACROFILE) 			$(IRULESRC)/xfree86.cf $(IRULESRC)/xf86.rules $(IRULESRC)/xorgsite.def $(IRULESRC)/host.def $(EXTRA_ICONFIGFILES)

# $TOG: Motif.rules /main/4 1998/02/06 10:53:37 kaleb $

# $Id: LessTif.rules,v 1.2 2000/08/29 21:59:19 dannybackx Exp $

# $Xorg: X11.rules,v 1.4 2000/08/17 19:41:46 cpqbld Exp $

# $XFree86: xc/config/cf/X11.rules,v 1.6 2001/01/17 16:22:31 dawes Exp $

# $TOG: Motif.tmpl /main/5 1998/02/06 10:53:46 kaleb $

# $Id: LessTif.tmpl.in,v 1.3 2001/03/26 19:12:10 amai Exp $

# ----------------------------------------------------------------------
# X Window System Build Parameters and Rules
# $XdotOrg: xc/config/cf/X11.tmpl,v 1.1.4.7.2.10 2004/04/02 21:47:10 eich Exp $
# $Xorg: X11.tmpl,v 1.6 2000/08/17 19:41:46 cpqbld Exp $
#
#
#
#
# $XFree86: xc/config/cf/X11.tmpl,v 1.248 2004/02/16 04:07:37 dawes Exp $

STICKY_DEFINES = -DHAS_STICKY_DIR_BIT

FCHOWN_DEFINES = -DHAS_FCHOWN

# -----------------------------------------------------------------------
# X Window System make variables; these need to be coordinated with rules

             XTOP = $(TOP)
           BINDIR = /usr/bin
     BUILDINCROOT = $(TOP)/exports
      BUILDINCDIR = $(BUILDINCROOT)/include
      BUILDINCTOP = ../..
      BUILDLIBDIR = $(TOP)/exports/lib
      BUILDLIBTOP = ../..
      BUILDBINDIR = $(TOP)/exports/bin
      BUILDBINTOP = ../..
   BUILDMODULEDIR = $(BUILDLIBDIR)/modules
     BUILDI18NDIR = $(BUILDLIBDIR)/locale
   BUILDMODULETOP = $(BUILDLIBTOP)/..
    XBUILDINCROOT = $(XTOP)/exports
     XBUILDINCDIR = $(XBUILDINCROOT)/include/X11
     XBUILDINCTOP = ../../..
     XBUILDBINDIR = $(XBUILDINCROOT)/bin
           INCDIR = $(INCROOT)
           ADMDIR = /usr/adm
           LIBDIR = /usr/X11R6/lib/X11
       LIBEXECDIR = /usr/X11R6/libexec
        MODULEDIR = $(USRLIBDIR)/modules
   TOP_X_INCLUDES =

       INSTSRCDIR = /usr/X11R6/src

        ETCX11DIR = /etc/X11

          CONFDIR = $(ETCX11DIR)

           DOCDIR = $(LIBDIR)/doc
       DOCHTMLDIR = $(DOCDIR)/html
         DOCPSDIR = $(DOCDIR)/PostScript
        DOCPDFDIR = $(DOCDIR)/PDF
          FONTDIR = $(LIBDIR)/fonts
     ENCODINGSDIR = $(FONTDIR)/encodings
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = $(LIBDIR)/xdm
        XDMVARDIR = $(VARLIBDIR)/xdm
           TWMDIR = $(LIBDIR)/twm
           XSMDIR = $(LIBDIR)/xsm
           NLSDIR = $(LIBDIR)/nls
       XLOCALEDIR = $(LIBDIR)/locale
      LBXPROXYDIR = $(LIBDIR)/lbxproxy
  PROXYMANAGERDIR = $(LIBDIR)/proxymngr
        XPRINTDIR = $(LIBDIR)/xserver
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

              RGB = $(BINDIR)/rgb
            FONTC = $(BINDIR)/bdftopcf
      MKFONTSCALE = $(BINDIR)/mkfontscale
        MKFONTDIR = $(BINDIR)/mkfontdir
      MKHTMLINDEX = $(BINDIR)/mkhtmlindex
          UCS2ANY = $(BINDIR)/ucs2any
      BDFTRUNCATE = $(BINDIR)/bdftruncate
     UCSMAPPREFIX = $(FONTDIR)/util/map-
       XCURSORGEN = $(BINDIR)/xcursorgen

     HTMLINDEXCMD = $(MKHTMLINDEX)

       DOCUTILSRC = $(XTOP)/doc/util
        CLIENTSRC = $(TOP)/clients
          DEMOSRC = $(TOP)/demos
       XDOCMACROS = $(DOCUTILSRC)/macros.t
       XIDXMACROS = $(DOCUTILSRC)/indexmacros.t
       PROGRAMSRC = $(TOP)/programs
           LIBSRC = $(XTOP)/lib
          FONTSRC = $(XTOP)/fonts
     ENCODINGSSRC = $(FONTSRC)/encodings
       INCLUDESRC = $(BUILDINCROOT)/include
      XINCLUDESRC = $(INCLUDESRC)/X11
        SERVERSRC = $(XTOP)/programs/Xserver
       CONTRIBSRC = $(XTOP)/../contrib
   UNSUPPORTEDSRC = $(XTOP)/unsupported
           DOCSRC = $(XTOP)/doc
           RGBSRC = $(XTOP)/programs/rgb
      BDFTOPCFSRC = $(PROGRAMSRC)/bdftopcf
     MKFONTDIRSRC = $(PROGRAMSRC)/mkfontdir
    FONTSERVERSRC = $(PROGRAMSRC)/xfs
       FONTINCSRC = $(XTOP)/include/fonts
        EXTINCSRC = $(XTOP)/include/extensions
      FTSOURCEDIR = $(TOP)/extras/FreeType
     XTTSOURCEDIR = $(TOP)/extras/X-TrueType
       MESASRCDIR = $(TOP)/extras/Mesa
  OGLSAMPLESRCDIR = $(TOP)/extras/ogl-sample
        PSWRAPSRC = $(XTOP)/config/pswrap
     TRANSCOMMSRC = $(LIBSRC)/xtrans
   TRANS_INCLUDES = -I$(TRANSCOMMSRC)
 CONNECTION_FLAGS = -DUNIXCONN -DTCPCONN $(STICKY_DEFINES) $(FCHOWN_DEFINES) -DIPv6

    VENDORMANNAME = X.Org
 VENDORMANVERSION = `echo 6 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'`
      XORGMANDEFS = -D__xorgversion__='"$(XORGRELSTRING)" "$(XORGMANNAME)"'
    VENDORMANDEFS = -D__vendorversion__="$(VENDORMANVERSION) $(VENDORMANNAME)"
       VENDORNAME = The X.Org Foundation
  VENDORNAMESHORT = X.Org

 VENDORWEBSUPPORT = http://wiki.X.Org

VENDORSUPPORTDEFS = -D__VENDORDWEBSUPPORT__='"$(VENDORWEBSUPPORT)"'

      XKBDEFRULES = xorg
  XKBDEFRULESDEFS = -D__XKBDEFRULES__='"$(XKBDEFRULES)"'

     XCONFIGFILE = xorg.conf
      XCONFIGDIR = $(LIBDIR)
        XLOGFILE = Xorg
     XSERVERNAME = Xorg

       XENVLIBDIR = $(USRLIBDIR)
   CLIENTENVSETUP = LD_LIBRARY_PATH=$(MOTIFENVLIBDIR):$(XENVLIBDIR) XLOCALEDIR=$(BUILDLIBDIR)/locale

# $Xorg: lnxLib.tmpl,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
# $XFree86: xc/config/cf/lnxLib.tmpl,v 3.19 2003/10/15 22:47:48 herrb Exp $

          XLIBSRC = $(LIBSRC)/X11

SOXLIBREV = 6.2
DEPXONLYLIB =
XONLYLIB =  -lX11

LINTXONLY = $(LINTLIBDIR)/llib-lX11.ln

      DEPXLIBONLY = $(DEPXONLYLIB)
         XLIBONLY = $(XONLYLIB)

      XEXTLIBSRC = $(LIBSRC)/Xext

SOXEXTREV = 6.4
DEPEXTENSIONLIB =
EXTENSIONLIB =  -lXext

LINTEXTENSION = $(LINTLIBDIR)/llib-lXext.ln

LINTEXTENSIONLIB = $(LINTEXTENSION)
          DEPXLIB = $(DEPEXTENSIONLIB) $(DEPXONLYLIB)
             XLIB = $(EXTENSIONLIB) $(XONLYLIB)
         LINTXLIB = $(LINTXONLYLIB)

    XSSLIBSRC = $(LIBSRC)/Xss

SOXSSREV = 1.0
DEPXSSLIB =
XSSLIB =  -lXss

LINTXSS = $(LINTLIBDIR)/llib-lXss.ln

    XXF86MISCLIBSRC = $(LIBSRC)/Xxf86misc

SOXXF86MISCREV = 1.1
DEPXXF86MISCLIB =
XXF86MISCLIB =  -lXxf86misc

LINTXXF86MISC = $(LINTLIBDIR)/llib-lXxf86misc.ln

    XXF86VMLIBSRC = $(LIBSRC)/Xxf86vm

SOXXF86VMREV = 1.0
DEPXXF86VMLIB =
XXF86VMLIB =  -lXxf86vm

LINTXXF86VM = $(LINTLIBDIR)/llib-lXxf86vm.ln

    XXF86DGALIBSRC = $(LIBSRC)/Xxf86dga

SOXXF86DGAREV = 1.0
DEPXXF86DGALIB =
XXF86DGALIB =  -lXxf86dga

LINTXXF86DGA = $(LINTLIBDIR)/llib-lXxf86dga.ln

    XXF86RUSHLIBSRC = $(LIBSRC)/Xxf86rush

SOXXF86RUSHREV = 1.0
DEPXXF86RUSHLIB =
XXF86RUSHLIB =  -lXxf86rush

LINTXXF86RUSH = $(LINTLIBDIR)/llib-lXxf86rush.ln

    XVLIBSRC = $(LIBSRC)/Xv

SOXVREV = 1.0
DEPXVLIB =
XVLIB =  -lXv

LINTXV = $(LINTLIBDIR)/llib-lXv.ln

    XVMCLIBSRC = $(LIBSRC)/XvMC

SOXVMCREV = 1.0
DEPXVMCLIB =
XVMCLIB =  -lXvMC

LINTXVMC = $(LINTLIBDIR)/llib-lXvMC.ln

    XINERAMALIBSRC = $(LIBSRC)/Xinerama

SOXINERAMAREV = 1.0
DEPXINERAMALIB =
XINERAMALIB =  -lXinerama

LINTXINERAMA = $(LINTLIBDIR)/llib-lXinerama.ln

    XRESLIBSRC = $(LIBSRC)/XRes

SOXRESREV = 1.0
DEPXRESLIB =
XRESLIB =  -lXRes

LINTXRES = $(LINTLIBDIR)/llib-lXRes.ln

    DPSLIBSRC = $(LIBSRC)/dps

SODPSREV = 1.0
DEPDPSLIB =
DPSLIB =  -ldps

LINTDPS = $(LINTLIBDIR)/llib-ldps.ln

    DPSTKLIBSRC = $(LIBSRC)/dpstk

SODPSTKREV = 1.0
DEPDPSTKLIB =
DPSTKLIB =  -ldpstk

LINTDPSTK = $(LINTLIBDIR)/llib-ldpstk.ln

    PSRESLIBSRC = $(LIBSRC)/psres

SOPSRESREV = 1.0
DEPPSRESLIB =
PSRESLIB =  -lpsres

LINTPSRES = $(LINTLIBDIR)/llib-lpsres.ln

    GLULIBSRC = $(LIBSRC)/GLU

SOGLUREV = 1.3
DEPGLULIB =
GLULIB =  -lGLU

LINTGLU = $(LINTLIBDIR)/llib-lGLU.ln

    GLXLIBSRC = $(LIBSRC)/GL

SOGLREV = 1.2
DEPGLXLIB =
GLXLIB =  -lGL

LINTGLX = $(LINTLIBDIR)/llib-lGL.ln

    GLWIDGETSRC = $(LIBSRC)/GLw

SOGLWREV = 1.0
DEPGLWLIB =
GLWLIB =  -lGLw

LINTGLW = $(LINTLIBDIR)/llib-lGLw.ln

    XRENDERLIBSRC = $(LIBSRC)/Xrender

SOXRENDERREV = 1.2.2
DEPXRENDERLIB =
XRENDERLIB =  -lXrender

LINTXRENDER = $(LINTLIBDIR)/llib-lXrender.ln

    XRANDRRLIBSRC = $(LIBSRC)/Xrandr

SOXRANDRREV = 2.0
DEPXRANDRLIB =
XRANDRLIB =  -lXrandr

LINTXRANDR = $(LINTLIBDIR)/llib-lXrandr.ln

   XCURSORRLIBSRC = $(LIBSRC)/Xcursor

SOXCURSORREV = 1.0.2
DEPXCURSORLIB =
XCURSORLIB =  -lXcursor

LINTXCURSOR = $(LINTLIBDIR)/llib-lXcursor.ln

   APPLEWMLIBSRC = $(LIBSRC)/apple

DEPAPPLEWMLIB = $(USRLIBDIR)/libAppleWM.a
APPLEWMLIB =  -lAppleWM

LINTAPPLEWM = $(LINTLIBDIR)/llib-lAppleWM.ln

   WINDOWSWMLIBSRC = $(LIBSRC)/windows

DEPWINDOWSWMLIB = $(USRLIBDIR)/libWindowsWM.a
WINDOWSWMLIB =  -lWindowsWM

LINTWINDOWSWM = $(LINTLIBDIR)/llib-lWindowsWM.ln

    XFONTCACHELIBSRC = $(LIBSRC)/Xfontcache

SOXFONTCACHEREV = 1.2
DEPXFONTCACHELIB =
XFONTCACHELIB =  -lXfontcache

LINTXFONTCACHE = $(LINTLIBDIR)/llib-lXfontcache.ln

         XAUTHSRC = $(LIBSRC)/Xau

DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
XAUTHLIB =  -lXau

LINTXAUTH = $(LINTLIBDIR)/llib-lXau.ln

      XDMCPLIBSRC = $(LIBSRC)/Xdmcp

DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
XDMCPLIB =  -lXdmcp

LINTXDMCP = $(LINTLIBDIR)/llib-lXdmcp.ln

           XMUSRC = $(LIBSRC)/Xmu

SOXMUREV = 6.2
DEPXMULIB =
XMULIB =  -lXmu

LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln

           XMUUSRC = $(LIBSRC)/Xmuu

SOXMUUREV = 1.0
DEPXMUULIB =
XMUULIB =  -lXmuu

LINTXMUU = $(LINTLIBDIR)/llib-lXmuu.ln

       OLDXLIBSRC = $(LIBSRC)/oldX

DEPOLDXLIB = $(USRLIBDIR)/liboldX.a
OLDXLIB =  -loldX

LINTOLDX = $(LINTLIBDIR)/llib-loldX.ln

         XPLIBSRC = $(LIBSRC)/Xp

SOXPREV = 6.2
DEPXPLIB =
XPLIB =  -lXp

LINTXP = $(LINTLIBDIR)/llib-lXp.ln

       TOOLKITSRC = $(LIBSRC)/Xt

SOXTREV = 6.0
DEPXTOOLONLYLIB =
XTOOLONLYLIB =  -lXt

LINTXTOOLONLY = $(LINTLIBDIR)/llib-lXt.ln

      DEPXTOOLLIB = $(DEPXTOOLONLYLIB) $(DEPSMLIB) $(DEPICELIB)
         XTOOLLIB = $(XTOOLONLYLIB) $(SMLIB) $(ICELIB)
     LINTXTOOLLIB = $(LINTXTOOLONLYLIB)

       XALIBSRC = $(LIBSRC)/Xa

SOXAREV = 1.0
DEPXALIB =
XALIB =  -lXa

LINTXA = $(LINTLIBDIR)/llib-lXa.ln

       AWIDGETSRC = $(LIBSRC)/Xaw

SOXAWREV = 7.0
DEPXAWLIB =
XAWLIB =  -lXaw

LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln

       AWIDGET6SRC = $(LIBSRC)/Xaw6

SOXAW6REV = 6.1
DEPXAW6LIB =
XAW6LIB =  -lXaw

LINTXAW6 = $(LINTLIBDIR)/llib-lXaw.ln

         XILIBSRC = $(LIBSRC)/Xi

SOXINPUTREV = 6.0
DEPXILIB =
XILIB =  -lXi

LINTXI = $(LINTLIBDIR)/llib-lXi.ln

      XTESTLIBSRC = $(LIBSRC)/Xtst

SOXTESTREV = 6.1
DEPXTESTLIB =
XTESTLIB =  -lXtst

LINTXTEST = $(LINTLIBDIR)/llib-lXtst.ln

DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
XBSDLIB =  -lXbsd

LINTXBSD = $(LINTLIBDIR)/llib-lXbsd.ln

           ICESRC = $(LIBSRC)/ICE

SOICEREV = 6.3
DEPICELIB =
ICELIB =  -lICE

LINTICE = $(LINTLIBDIR)/llib-lICE.ln

            SMSRC = $(LIBSRC)/SM

SOSMREV = 6.0
DEPSMLIB =
SMLIB =  -lSM

LINTSM = $(LINTLIBDIR)/llib-lSM.ln

           XKEYSRC = $(LIBSRC)/Xkey

SOXKEYREV = 6.0
DEPXKEYLIB =
XKEYLIB =  -lXkey

LINTXKEY = $(LINTLIBDIR)/llib-lXkey.ln

         FSLIBSRC = $(LIBSRC)/FS

SOFSREV = 6.0
DEPFSLIB =
FSLIB =  -lFS

LINTFS = $(LINTLIBDIR)/llib-lFS.ln

         FONTLIBSRC = $(LIBSRC)/font

SOFONTREV = 1.5
DEPFONTLIB =
FONTLIB = -L$(FREETYPELIBDIR) -L$(FONTLIBSRC)  -lXfont

LINTXFONT = $(LINTLIBDIR)/llib-lXfont.ln
#
SOFONTREV = 1.5
DEPXFONTLIB =
XFONTLIB =  -lXfont

LINTXFONT = $(LINTLIBDIR)/llib-lXfont.ln

     FONTSTUBLIBSRC = $(FONTLIBSRC)/stubs

DEPFONTSTUBLIB = $(USRLIBDIR)/libfntstubs.a
FONTSTUBLIB =  -lfntstubs

LINTFONTSTUB = $(LINTLIBDIR)/llib-lfntstubs.ln
         DEPFONTLIB = $(DEPXFONTLIB) $(DEPFONTSTUBLIB)
            FONTLIB = $(XFONTLIB) $(FONTSTUBLIB) $(FREETYPE2LIB)

         FONTENCLIBSRC = $(LIBSRC)/fontenc

SOFONTENCREV = 1.0
DEPXFONTENCLIB =
XFONTENCLIB =  -lfontenc

LINTXFONTENC = $(LINTLIBDIR)/llib-lfontenc.ln

          XPMLIBSRC = $(LIBSRC)/Xpm

SOXPMREV = 4.11
DEPXPMLIB =
XPMLIB =  -lXpm

LINTXPM = $(LINTLIBDIR)/llib-lXpm.ln

FREETYPE2DIR = /usr
FREETYPE2LIBDIR = /usr/lib
FREETYPE2INCDIR = /usr/include

FREETYPE2LIB = -lfreetype

FREETYPE2INCLUDES = -I$(FREETYPE2INCDIR)/freetype2 -I$(FREETYPE2INCDIR)/freetype2/config

FREETYPE2DEFINES = -DFREETYPE2

          EXPATLIBSRC = $(LIBSRC)/expat

SOEXPATREV = 0.4
DEPEXPATLIB =
EXPATLIB =  -lexpat

LINTEXPAT = $(LINTLIBDIR)/llib-lexpat.ln

EXPATDIR = /usr
EXPATLIBDIR = /usr/lib
EXPATINCDIR = /usr/include

EXPATINCLUDES =

EXPATLIB = -lexpat

EXPATDEFINES = -DEXPAT

          XFT1LIBSRC = $(LIBSRC)/Xft1

SOXFT1REV = 1.1
DEPXFT1LIB =
XFT1LIB =  -lXft

LINTXFT1 = $(LINTLIBDIR)/llib-lXft.ln

          XFTLIBSRC = $(LIBSRC)/Xft

SOXFTREV = 2.1.2
DEPXFTLIB =
XFTLIB =  -lXft

LINTXFT = $(LINTLIBDIR)/llib-lXft.ln

          FONTCONFIGLIBSRC = $(LIBSRC)/fontconfig

SOFONTCONFIGREV = 1.0.4
DEPFONTCONFIGLIB =
FONTCONFIGLIB =  -lfontconfig

LINTFONTCONFIG = $(LINTLIBDIR)/llib-lfontconfig.ln

FONTCONFIGINCDIR=$(INCDIR)

FONTCONFIGINCLUDES = -I$(FONTCONFIGINCDIR)

FCCACHE = $(BINDIR)/fc-cache

FONTCONFIGDEFINES = -DFONTCONFIG

XFTINCLUDES=$(FONTCONFIGINCLUDES) $(FREETYPE2INCLUDES)

LIBPNGINCDIR = /usr/include

LIBPNGINC=

LIBPNGDIR = /usr
LIBPNGLIBDIR = /usr/lib
LIBPNGINCDIR = /usr/include

LIBPNGLIB = -lpng

    XKBFILELIBSRC = $(LIBSRC)/xkbfile

SOXKBFILEREV =  1.0
DEPXKBFILELIB =
XKBFILELIB =  -lxkbfile

LINTXKBFILE = $(LINTLIBDIR)/llib-lxkbfile.ln

     XKBCOMPCMD = $(BINDIR)/xkbcomp

    XKBUILIBSRC = $(LIBSRC)/xkbui

SOXKBUIREV =  1.0
DEPXKBUILIB =
XKBUILIB =  -lxkbui

LINTXKBUI = $(LINTLIBDIR)/llib-lxkbui.ln

        XTRAPLIBSRC = $(LIBSRC)/XTrap

SOXTRAPREV = 6.4
DEPXTRAPLIB =
XTRAPLIB =  -lXTrap

LINTXTRAP = $(LINTLIBDIR)/llib-lXTrap.ln

          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)

         DEPLIBS1 = $(DEPLIBS)
         DEPLIBS2 = $(DEPLIBS)
         DEPLIBS3 = $(DEPLIBS)
         DEPLIBS4 = $(DEPLIBS)
         DEPLIBS5 = $(DEPLIBS)
         DEPLIBS6 = $(DEPLIBS)
         DEPLIBS7 = $(DEPLIBS)
         DEPLIBS8 = $(DEPLIBS)
         DEPLIBS9 = $(DEPLIBS)
         DEPLIBS10 = $(DEPLIBS)

       FCPRELOADPATTERN = libfontconfig.so.?

      XFTPRELOADPATTERN = libXft.so.?
  XRENDERPRELOADPATTERN = libXrender.so.?
    XFONTPRELOADPATTERN = libXfont*.so.?

              MTOP = $(TOP)
TOP_MOTIF_INCLUDES =

      UIL_INCLUDES = -I$(USRINCDIR)/uil

    MOTIFENVLIBDIR = $(USRLIBDIR)

      USRINCDIR = /usr/X11R6/include
         UIDDIR = $(LIBDIR)/uid
        TESTSRC = $(MTOP)/tests
        TESTLIB = $(TESTSRC)/lib
  GENERALSRCLIB = $(TESTSRC)/General/lib
  GENERALSRCBIN = $(TESTSRC)/General/bin
   MANUALSRCLIB = $(TESTSRC)/Manual/lib
   MANUALSRCBIN = $(TESTSRC)/Manual/bin
     AUTOSRCLIB = $(TESTSRC)/Auto/lib
     AUTOSRCBIN = $(TESTSRC)/Auto/bin
       COMMONPP = $(GENERALSRCBIN)/Commonpp
         GENRUN = $(GENERALSRCBIN)/Genrun
         MANRUN = $(GENERALSRCBIN)/Manrun

     TESTCOMSRC = $(MANUALSRCLIB)/Common

    BUILDDOCDIR = $(BUILDINCROOT)/doc
    BUILDLOCDIR = $(BUILDINCROOT)/localized

    MTOOLKITSRC = $(TOOLKITSRC)

    MINCLUDESRC = $(MTOP)/include
        MDOCSRC = $(MTOP)/doc
        MLOCSRC = $(MTOP)/localized

        MLIBSRC = $(MTOP)/lib
     MCLIENTSRC = $(MTOP)/clients
       MDEMOSRC = $(MTOP)/demos
     MWIDGETSRC = $(MLIBSRC)/Xm
   MRESOURCESRC = $(MLIBSRC)/Mrm
         UILSRC = $(MCLIENTSRC)/uil

            UIL = uil
         DEPUIL = $(BINDIR)/uil

   XMEXTRA_LIBS =

SOXMREV = 2.1
DEPXMLIB =
XMLIB =  -lXm

LINTXM = $(LINTLIBDIR)/llib-lXm.ln

SOMRMREV = 2.1
DEPMRESOURCELIB =
MRESOURCELIB =  -lMrm

LINTMRESOURCE = $(LINTLIBDIR)/llib-lMrm.ln

SOUILREV = 2.1
DEPUILLIB =
UILLIB =  -lUil

LINTUIL = $(LINTLIBDIR)/llib-lUil.ln

SOMCOMMONREV = 2.1
DEPTESTCOMLIB =
TESTCOMLIB =  -lMCommon

LINTTESTCOM = $(LINTLIBDIR)/llib-lMCommon.ln

TESTUILCOMLIB = $(TESTCOMSRC)/libMCommonUil.a

  LINTMRESOURCE = $(MRESOURCESRC)/libMrm.a
LINTXMWIDGETLIB = $(MWIDGETSRC)/llib-l/Xm.ln
     LINTXMTOOL = $(MTOOLKITSRC)/llib-lXt.ln
     LINTUILLIB = $(UILSRC)/llib-lUil.ln

      YACCFLAGS =
       UILFLAGS =
    GENCATFLAGS =
         GENCAT = gencat $(GENCATFLAGS)
      MKCATTOOL = $(MLOCSRC)/util/mkcatdefs

         RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut  *.Dat

        DEPLIBS = $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)

        DEPLIBS1 = $(DEPLIBS)
        DEPLIBS2 = $(DEPLIBS)
        DEPLIBS3 = $(DEPLIBS)

XMULIBONLY = -lXmu
XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)

        CONFIGDIR = $(LIBDIR)/config

    USRLIBDIRPATH = $(USRLIBDIR)
        LDPRELIBS =  -L$(USRLIBDIR)  $(INSTALLED_LIBS)
       LDPOSTLIBS =
     TOP_INCLUDES = $(TOP_MOTIF_INCLUDES) -I$(INCROOT) $(TOP_X_INCLUDES)
  PROJECT_DEFINES =   -DNO_MESSAGE_CATALOG
   VENDOR_DEFINES = -DXVENDORNAME='"$(VENDORNAME)"' -DXVENDORNAMESHORT='"$(VENDORNAMESHORT)"'

CXXPROJECT_DEFINES =   -DNO_MESSAGE_CATALOG

# ----------------------------------------------------------------------
# start of Imakefile

# ifndef #
# define # #
# endif

# #########################################################################
#
#               Makefile for XAnim Rev 2.80.0
#
#
# #########################################################################
#  Readme Readme Readme Readme Readme Readme Readme Readme Readme Readme
# #########################################################################
#
#  I've tried to organized and partition this Imakefile so it's easier
#  to configure. Feedback is appreciated.
#
#  First and foremost, please read the following files:
#
#         "README.dll"
#         "README.zlib"
#
#  If your machine/OS isn't yet supported by the DLL modules, then
#  you should also read these additional files:
#
#        "cinepak.readme"
#        "indeo.readme"
#        "creative.readme"
#
#
#  Then goto each Section and configure, comment, uncomment the defines
#  as necessary.  Some parts might have you search for a NOTE_* later
#  on in the Imakefile and do something special there.
#
#  When you are done, you just type "xmkmf" and then "make xanim".
#
#  NOTE: some systems(like SGI) use the command "mmkmf" instead of
#  "xmkmf" if they have Motif installed.
#
#  Index of Sections
#  ---------------    -----------------------------------------------
#  -- Section I     - Name of Output File.
#  -- Section IIa   - Compiler and Compiler Flags
#  -- Section IIb   - Linker and Linker Flags
#  -- Section IIIa  - DLL Defines/Libs
#  -- Section IIIb  - ZLIB Defines/Libs
#  -- Section IIIc  - Video Defines/Libs
#  -- Section IV.a  - X11/OpenWindow Libs and Includes Directories.
#  -- Section IV.b  - Are you running X11R6?
#  -- Section V     - no longer used
#  -- Section VI    - Audio Defines and Libraries.
#  -- Section VII   - Machine Specific Defines and Libs(and Misc stuff)
#  ----------------   -----------------------------------------------
#
#  Good luck,
#
#  Mark Podlipec - podlipec@baynetworks.com
#                - podlipec@ici.net
#
# ###########

# #########################################################################
#  -- Section I
#  -- Output File (The name of the final executable)
# #########################################################################
#
XANIM = xanim

# #########################################################################
#  -- Section IIa
#  -- Choose your favorite C Compiler and Compiler flags
#
# NOTE: THIS SECTION IS NOT NEEDED WITH Imakefile
# #########################################################################

# #########################################################################
#  -- Section IIb
#  -- Setup the Linker and Linker Flags.
#
#  NOTE: working on adding suggestions for specific machines.
# #########################################################################
#
# ######## LINKER
#   Specify the Linker that you have on your machine. Usually you can just
#     set this to be the same as your C Compiler. This will hopefully only
#     need to be different for a limited number of machines.
#
LD = $(CC)
#
# ######## LINKER FLAGS
#   Specify any Linker flags needed to allow dynamically loadable modules
#   to link against symbols inside xanim.
#
# ## Linux
LD_FLAGS = -rdynamic
# ## SunOS/Solaris use:
#  LD_FLAGS =

# #########################################################################
#  -- Section IIIa
#  -- Setup DLL Flags if supported on your platform.
#  -- NOTE: Please read "README.dll"
#
#  So far I've only tested this on Linux_x86, SunOS_Sparc and Solaris_Sparc
#
# NOTE: not all machines need the XA_DLL_LIB define.
# #########################################################################
#
XA_DLL_DEF = -DXA_DLL -DXA_PRINT
# ### Use this only if the above doesn't work
# XA_DLL_DEF = -DXA_DLL
#
# ### You may need this library.
XA_DLL_LIB = -ldl
#
# If you'd like to change the default directory that XAnim searches while
# looking for dlls, then change the directory below.
#
XA_DLL_PATH = /usr/lib/mplayer

# #########################################################################
#  -- Section IIIb
#  -- If you have ZLIB, compile in support for Quicktime 3.0
#  -- compressed headers. NOTE: Please read "README.zlib"
#
# #########################################################################
#
#  -- Uncomment these if you have the library libz.* on your machine.
XA_ZLIB_DEF = -DXA_ZLIB
XA_ZLIB_LIB = -lz
#
# -- If the file libz.* is not in a directory that is normally
#    searched by your linker, then you need to uncomment the
#    following define and change "/home/zlib/incs" to be the
#    full path of the directory on your machine that actually
#    contains zlib include files:
#
# XA_ZLIB_INCS = -I/home/zlib/incs
#
#    And you have to uncomment the following define and
#    change "/home/zlib/libs" to be the full path of the
#    directory on your machine that actually contains zlib
#    library file:
#
# XA_ZLIB_LDIR = -L/home/zlib/libs
#

# #########################################################################
#  -- Section IIIc
#  -- Video Support Defines.  These are okay to leave blank if you
#  -- don't know what to do, BUT in that case you should really
#  -- read the following files:
#  --
#  --     "cinepak.readme"
#  --     "indeo.readme"
#  --     "creative.readme"
#  --
#  -- Latest files are available from the following sites:
#  --
#  --    http://xanim.va.pubnix.com/home.html
#  --    http://smurfland.cit.buffalo.edu/xanim/home.html
#  --	http://xanim.resnet.gatech.edu
#  --    http://www.tm.informatik.uni-frankfurt.de/xanim/
#  --
# #########################################################################
#
#  -- NOTE: If XAnim supports dynamically loadable modules for your machine
#     and you have the XA_DLL_* uncommented above then you do NOT want to
#     uncomment any of these.
#
#  -- Modify the following ONLY after you have read the appropriate readmes
#  -- AND have downloaded the proper decompression modules AND have verified
#  -- that they are the correct size in bytes as listed in the readmes.
#  --
#  --    Cinepak		CVID	cinepak.readme
#  --    Indeo 3.x	IV32	indeo.readme
#  --    Creative   	CYUV	creative.readme
#
#  Again don't use these if you are using the dynamically loadable modules.
#
# XA_IV32_DEF = -DXA_IV32
# XA_CVID_DEF = -DXA_CVID
# XA_CYUV_DEF = -DXA_CYUV
#
# XA_IV32_LIB = mods/xa2.1_iv32_linuxELF.o
# XA_CVID_LIB = mods/xa2.0_cvid_linuxELF.o
# XA_CYUV_LIB = mods/xa1.0_cyuv_linuxELF.o
#
# ##########################
#  NOTE: SGI Machines Only:
#     if your linker core dumps then you'll need to uncomment the following
#     define as a workaround.
#
#  XA_SGI1 = -old_ld -32
#

# #########################################################################
#  -- Section IIId
#  -- 0 NEED TO MODIFY ANYTHING IN THIS SECTION
#
XA_DLL_DEFS  = $(XA_DLL_DEF) -DXA_DLL_PATH=\"$(XA_DLL_PATH)\"
XA_ZLIB_DEFS = $(XA_ZLIB_DEF) $(XA_ZLIB_INCS)
XA_ZLIB_LIBS = $(XA_ZLIB_LDIR) $(XA_ZLIB_LIB)

XA_VID_DEFS = $(XA_IV32_DEF) $(XA_CVID_DEF) $(XA_CYUV_DEF) 		$(XA_DLL_DEFS) $(XA_ZLIB_DEFS)

XA_VID_LIBS = $(XA_IV32_LIB) $(XA_CVID_LIB) $(XA_CYUV_LIB) 		$(XA_DLL_LIB) $(XA_ZLIB_LIBS)			$(XA_SGI1)

XA_VID_DEPS = $(XA_IV32_LIB) $(XA_CVID_LIB) $(XA_CYUV_LIB)
#
# ##
XA_AUD_DEFS = -DXA_GSM
XA_AUD_LIBS =
XA_AUD_DEPS =
XA_AUD_CFILES = xa_gsm.c
XA_AUD_OFILES = xa_gsm.o
# ##
XA_MOD_DEFS = $(XA_VID_DEFS) $(XA_AUD_DEFS)
XA_MOD_LIBS = $(XA_VID_LIBS) $(XA_AUD_LIBS)
XA_MOD_DEPS = $(XA_VID_DEPS) $(XA_AUD_DEPS)
XA_MOD_CFILES = $(XA_AUD_CFILES)
XA_MOD_OFILES = $(XA_AUD_OFILES)
#

# #########################################################################
#  -- Section IV.a
#  -- X11/Openwindow Specific Defines
#
# -- NOT NEEDED WITH Imake. That's the whole purpose of xmkmf.
# #########################################################################

# #########################################################################
#  -- Section IV.b
#  -- If you are running X11R6, then you also need to uncomment
#  -- this define.
#
# -- NOT NEEDED WITH Imake. That's the whole purpose of xmkmf.
# #########################################################################

# #########################################################################
#  -- Section VI
#  -- Audio Defines
#
#  NOTE: If your machine doesn't have audio OR isn't supported yet then
#        comment out ALL of the XA_AUDIO_* defines and you can still compile
#        XAnim for just video.  Setting the XA_AUDIO_* to nothing has the
#        same affect.
#
#  NOTE: Some machines will have to add -DXA_SELECT to the XA_AUDIO_DEFS.
#        let me know if you find this to be the case.
# #########################################################################
#
#  -- You don't have OR don't want Audio support --------------------------
#  -- NOTE_9 Since xanim doesn't yet support Win32 audio, this is necessary.
#  XA_AUDIO_DEFS =
#
# ## -- Linux PCs ---------------------------------------------------------
XA_AUDIO_DEFS = -DXA_LINUX_AUDIO
XA_AUDIO_LIBS = -lc
#
#  -- Linux PC's with OLD Rev sound drivers -------------------------------
#  XA_AUDIO_DEFS = -DXA_LINUX_AUDIO -DXA_LINUX_OLDER_SND
#  XA_AUDIO_LIBS = -lc
#
#  -- Sparc SunOS 4.1.x ---------------------------------------------------
#  XA_AUDIO_DEFS = -DXA_SPARC_AUDIO
#
#  -- Sparc Solaris/SunOS 5.x ---------------------------------------------
#  XA_AUDIO_DEFS = -DXA_SPARC_AUDIO -DSVR4 -DXA_SELECT
#
#  -- S/6000 - AIX 4.1 (3.2.5??) ------------------------------------------
#  XA_AUDIO_DEFS = -DXA_AIX_AUDIO -DXA_SELECT
#
#  -- SGI Irix-------------------------------------------------------------
#  XA_AUDIO_DEFS = -DXA_SGI_AUDIO -DSYSV -DSVR4
#  XA_AUDIO_LIBS = -laudio
#
#  -- DEC Multimedia Services Support -------------------------------------
#  XA_AUDIO_DEFS = -DXA_MMS_AUDIO
#  XA_AUDIO_LIBS = -lmme
#
#  -- DEC Multimedia Services Support With Volume Control -----------------
#  XA_AUDIO_DEFS = -DXA_MMS_AUDIO -DMMS_VOL
#  XA_AUDIO_LIBS = -lmme
#
#  -- DEC Multimedia Services Support -------------------------------------
#  --   This might be necessary for Digital Unix 3.2C and MME 1.60 DK
#  XA_AUDIO_DEFS = -DXA_MMS_AUDIO -DXA_MMS_160 -DDEC
#  XA_AUDIO_LIBS = -lmme
#
#  -- NEC EWS Workstations ------------------------------------------------
#  XA_AUDIO_DEFS = -DXA_EWS_AUDIO
#
#  -- SONY Workstations NEWS-5000 NEWS-OS 4.2 -----------------------------
#  XA_AUDIO_DEFS = -DXA_SONY_AUDIO
#
#  -- NetBSD-current (as of 30/April 1995)---------------------------------
#  XA_AUDIO_DEFS = -DXA_NetBSD_AUDIO
#
#  -- QNX 4.2 PC's --------------------------------------------------------
#  XA_AUDIO_DEFS = -DXA_LINUX_AUDIO -DXA_SELECT
#  XA_AUDIO_LIBS = -lc
#
#  -- Also FreeBSD, and BSDI with SBlast-BSD-1.5 (development stages)------
#  XA_AUDIO_DEFS = -DXA_LINUX_AUDIO
#  XA_AUDIO_LIBS = -lc
#
#  -- TOWNS Linux 16 bit PCM ----------------------------------------------
#  XA_AUDIO_DEFS = -DXA_TOWNS_AUDIO
#  XA_MACH_LIBS = -lc
#
#  -- TOWNS Linux 8 bit PCM -----------------------------------------------
#  XA_AUDIO_DEFS = -DXA_TOWNS8_AUDIO
#  XA_MACH_LIBS = -lc
#
#  -- HP 9000/700 Direct access to Audio Device---------------------------
#  -- This is a direct access to the HP's audio device and works much
#  -- smoother than going through the Aserver(which has some serious
#  -- problems).
#  -- NOTE: You need to kill AServer before using this audio device since
#  --       AServer will otherwise prevent xanim from opening it.
#  XA_AUDIO_DEFS = -DXA_HPDEV_AUDIO
#  XA_AUDIO_LIBS =
#
#  -- HP 9000/700 AServer audio layers ------------------------------------
#  -- This isn't well developed yet(haven't had enough time on an HP yet).
#  -- Plus AServer is currently *NOT* adequate for syncing audio and video.
#  -- It adds too much of a delay in the processing of audio and so
#  -- I don't recommend using it. But if you insist, consider yourself
#  -- forewarned.
#  --
#  -- HP/UX 9.x AServer
#  XA_AUDIO_DEFS = -DXA_HP_AUDIO
#  XA_AUDIO_LIBS = -lAlib
#  --
#  -- HP/UX 10.x AServer
#  XA_AUDIO_DEFS = -DXA_HP_AUDIO -DXA_HP10
#  XA_AUDIO_LIBS = -L/opt/audio/lib -lAlib
#  XA_AUDIO_INCS = -I/opt/audio/include
#
#  ------ AF (AudioFile) Support ------------------------------------------
#  -- You need to indicate where the AF libraries libAFUtil.a and libAF.a
#  -- are located. Typically this is /usr/local/lib, but not always. Talk
#  -- to the person who installed them on your machine to find out where
#  -- they were put.  Same with the AF/include directory.
#
#  -- NOTE: SOME VENDORS have an a library called AudioFile, AFile or AF
#  -- that has to do with audio file formats and is NOT the same thing as
#  -- AudioFile above. Again, talk to the person who installed AudioFile
#  -- on your system. Otherwise, assume you don't have it.
#
#  XA_AUDIO_DEFS = -DXA_AF_AUDIO
#  XA_AUDIO_LIBS = -L/usr/local/lib -lAFUtil -lAF
#  XA_AUDIO_INCS = -I/usr/local/include
#
#  ------ NAS (Network Audio System) Support ------------------------------
#  -- You need to indicate where the NAS library libaudio.a is located.
#  -- Typically this is /usr/local/lib, but not always.  Talk to the
#  -- person who installed them on your machine to find out where they
#  -- were put. Otherwise, assume you don't have NAS installed.
#  -- Same with the /usr/local/include/audio directory.
#
#  XA_AUDIO_DEFS = -DXA_NAS_AUDIO
#  XA_AUDIO_LIBS = -L/usr/local/lib/audio -laudio
#  XA_AUDIO_INCS = -I/usr/local/include/audio
#
#  NOTE: /pain/audio is just where I keep all my audio stuff and is
#  just here for my convenience.
#  (pain because the disk died once already :)
#  XA_AUDIO_DEFS = -DXA_NAS_AUDIO
#  XA_AUDIO_LIBS = -L/pain/audio/nas/lib/audio -laudio
#  XA_AUDIO_INCS = -I/pain/audio/nas/usr/include
#
# ###########

# #########################################################################
#  -- Section VII
#  Machine Specific Defines and Libs
# #########################################################################
#
#  -- Sun Sparc running SunOS 4.x and OpenWindows -------------------------
#  See  NOTE_5  below(alternative XLIBS define).
#
#  -- Some Revs of Sun Solaris Machines need the following ----------------
#  XA_MACH_LIBS = -lsocket -lnsl -lgen
#
#  -- Unisys SVR4 machines based on Intel arch.
#  See NOTE_7 below(alternative XLIBS define)
#
#  -- HP machines ---------------------------------------------------------
#  -- NEED this to increase the macro symbol table(default is 128000).
#  XA_MACH_DEFS = -Wp,-H150000
#
#  -- PC DOS Machines running Quarterdeck's DESQview X---------------------
#  XA_MACH_DEFS  = -DMSDOS
#
#  -- i486 box Interactive UNIX V2.2.1 ------------------------------------
#  -- might need to uncomment out the define below:
#  XA_MACH_LIBS = -linet
#
#  -- IBM AIX -------------------------------------------------------------
#  These machines don't have the X11 Shared memory extension.
#  See  NOTE_6 below(comment out the XA_SHARED define).
#
#
#  ---- Misc Defines for various machines ------------------------------
#
#    -- NO_INSTALL_CMAP prevents XAnim from specifically installing a cmap.
#    --  this causes problems on some PC versions of X11
#  XA_CMAP = -DNO_INSTALL_CMAP
#
#    -- XA_XTPOINTER typedefs XtPointer as void*  if your system doesn't
#    -- typedef it already. (X11R4 or below might need this)
#  XA_XTPTR = -DXA_XTPOINTER
#
#    -- X11 Shared Memory
#    -- Allow use of shared memory if specified on cmd line. Comment
#    -- this out if you get compiler errors about not finding XShm.h or
#    -- the following symbols(XShmCreateImage,XShmAttach,XShmDetach,
#    -- XShmPutImage,etc).
#    -- NOTE_6: IBM AIX machines need to comment this out UNLESS YOU HAVE
#    --         SPECIFICALLY installed the Xshm extension on your AIX machine.
#    -- NOTE_9: WIN32 machines need to comment this out.
XA_SHARED = -DXSHM
#
#    -- X11 Multiple Buffers  (may or may not help with large images)
#    -- Allow use of hardware/software double buffering in the server, if
#    -- specified on cmd line. Comment this out if you get compiler errors
#    -- about not finding multibuf.h or the
#    -- following symbols(XmbufDisplayBuffers, XmbufQueryExtension,
#    --  XmbufCreateBuffers).
#    -- NOTE_8: HP-UX machines need to comment this out.
#  XA_MULTIBUF = -DXMBUF
#
# ###########
#
# #########################################################################
#  END OF SECTIONS - No need to look below unless a NOTE told you to.
# #########################################################################
#
XA_MISC_DEFS = $(XA_CMAP) $(XA_XTPTR) $(XA_SHARED) $(XA_MULTIBUF) $(XA_MACH_DEFS)
#
# ####################################
#   FINAL CFLAGS and OTHER_LIBS
#

XA_DEFS = $(XA_MISC_DEFS) $(XA_MOD_DEFS) $(XA_AUDIO_DEFS) -DXA_PETUNIA -DXA_KPCD
XA_LIBS = $(XA_X11R6_LIBS) $(XA_MACH_LIBS) $(XA_MOD_LIBS) $(XA_AUDIO_LIBS)
XA_INCS = $(INCLUDE) -I. $(XA_VIDEO_INCS) $(XA_AUDIO_INCS)

DEFINES  = $(XA_DEFS)

PROGRAMS = $(XANIM)

INCLUDES = -I$(INCDIR) $(XA_INCS)

   LIBS1 = $(XA_LIBS) $(EXTENSIONLIB) $(XTOOLLIB) $(XLIB) -lm
DEPLIBS1 = $(DEPEXTENSIONLIB) $(DEPXTOOLLIB) $(DEPXLIB)
# xa_pfx.c temporarily removed

LOCAL_LDFLAGS = $(LD_FLAGS)

#  xa_pfx.c TEMP REMOVED
SRCS1 = xanim.c xa_show.c xa_x11.c xa_fli.c xa_iff.c  	xa_gif.c xa_txt.c unpacker.c xa_utils.c xa_act.c 	xa_set.c xa_cmap.c xa_rle.c xa_wav.c xa_au.c xa_8svx.c 	xa_avi.c xa_qt.c xa_qt_decs.c xa_audio.c xa_ipc.c xa_color.c 	xa_jpg.c xa_mpg.c xa_dl.c xa_jmov.c xa_movi.c xa_raw.c 	xa_replay.c xa_j6i.c xa_g72x.c xa_g721.c		xa_dumfx.c xa_acodec.c xa_input.c xa_formats.c 	xa_vid_codec.c 	xa1.0_kpcd.c		$(XA_MOD_CFILES)

OBJS1 = xanim.o xa_show.o xa_x11.o xa_fli.o xa_iff.o  	xa_gif.o xa_txt.o unpacker.o xa_utils.o xa_act.o 	xa_set.o xa_cmap.o xa_rle.o xa_wav.o xa_au.o xa_8svx.o 	xa_avi.o xa_qt.o xa_qt_decs.o xa_audio.o xa_ipc.o xa_color.o 	xa_jpg.o xa_mpg.o xa_dl.o xa_jmov.o xa_movi.o xa_raw.o 	xa_replay.o xa_j6i.o xa_g72x.o xa_g721.o		xa_dumfx.o xa_acodec.o xa_input.o xa_formats.o 	xa_vid_codec.o 	xa1.0_kpcd.o			$(XA_MOD_OFILES)

  OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) \
         $(OBJS6) $(OBJS7) $(OBJS8) $(OBJS9) $(OBJS10)
  SRCS = $(SRCS1) $(SRCS2) $(SRCS3) $(SRCS4) $(SRCS5) \
         $(SRCS6) $(SRCS7) $(SRCS8) $(SRCS9) $(SRCS10)

all:: $(PROGRAMS)

xanim: $(OBJS1) $(DEPLIBS1)
	$(RM) $@
	$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS1)  $(LIBS1) $(LDLIBS)  $(OTHER_LIBS)  $(EXTRA_LOAD_FLAGS)

install:: xanim
	@if [ -d $(DESTDIR)$(BINDIR) ]; then \
		set +x; \
	else \
		if [ -h $(DESTDIR)$(BINDIR) ]; then \
			(set -x; rm -f $(DESTDIR)$(BINDIR)); \
		fi; \
		(set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); \
	fi
	$(INSTALL) $(INSTALLFLAGS) $(INSTPGMFLAGS)  xanim $(DESTDIR)$(BINDIR)/xanim

all:: xanim.$(MANSUFFIX).html

xanim.$(MANSUFFIX).html: xanim.$(MANNEWSUFFIX)
	$(RM) xanim.$(MANSUFFIX).html xanim.$(MANSUFFIX)-html
	$(RMAN) $(RMANOPTIONS) < xanim.$(MANNEWSUFFIX) \
	  > xanim.$(MANSUFFIX)-html && $(MV) xanim.$(MANSUFFIX)-html $@

install.man:: xanim.$(MANSUFFIX).html
	@if [ -d $(DESTDIR)$(DOCHTMLDIR) ]; then \
		set +x; \
	else \
		if [ -h $(DESTDIR)$(DOCHTMLDIR) ]; then \
			(set -x; rm -f $(DESTDIR)$(DOCHTMLDIR)); \
		fi; \
		(set -x; $(MKDIRHIER) $(DESTDIR)$(DOCHTMLDIR)); \
	fi
	@(SUF=`expr $(MANSUFFIX) \: '\(.\)'`; \
	 set -x; \
	 $(INSTALL) $(INSTALLFLAGS) $(INSTMANFLAGS) xanim.$(MANSUFFIX).html $(DESTDIR)$(DOCHTMLDIR)/xanim.$$SUF.html)

cleandir::
	$(RM) xanim.$(MANSUFFIX).html xanim.$(MANSUFFIX)-html

all:: xanim.$(MANNEWSUFFIX)

xanim.$(MANNEWSUFFIX): xanim.$(MANSRCSUFFIX)
	$(RM) $@
	cd `dirname xanim` && \
		$(LN) `basename xanim.$(MANSRCSUFFIX)` `basename $@`

cleandir::
	$(RM) xanim.$(MANNEWSUFFIX)

install.man:: xanim.$(MANNEWSUFFIX)
	@if [ -d $(DESTDIR)$(MANDIR) ]; then \
		set +x; \
	else \
		if [ -h $(DESTDIR)$(MANDIR) ]; then \
			(set -x; rm -f $(DESTDIR)$(MANDIR)); \
		fi; \
		(set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); \
	fi
	$(INSTALL) $(INSTALLFLAGS) $(INSTMANFLAGS) xanim.$(MANNEWSUFFIX) $(DESTDIR)$(MANDIR)/xanim.$(MANSUFFIX)

depend::
	$(DEPEND) $(DEPENDFLAGS) -- $(ALLDEFINES) $(DEPEND_DEFINES) -- $(SRCS)

lint:
	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
lint1:
	$(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)

cleandir::
	$(RM) $(PROGRAMS)

xaclean::
	$(RM) $(OBJS1)

#  DO NOT DELETE THIS LINE
xanim.o: Imakefile xanim.h xa_config.h xa_x11.h xanim.c
xa1.0_kpcd.o: xa1.0_kpcd.c
unpacker.o: unpacker.c
xa_acodec.o: Imakefile xanim.h xa_acodec.c
xa_act.o: xanim.h xa_config.h xa_act.c
xa_au.o: xanim.h xa_config.h xa_au.c
xa_audio.o: Imakefile xanim.h xa_config.h xa_audio.h xa_audio.c
xa_avi.o: Imakefile xanim.h xa_config.h xa_avi.h xa_codecs.h xa_xmpg.h xa_avi.c
xa_cmap.o: xanim.h xa_config.h xa_cmap.c
xa_color.o: xanim.h xa_color.c
xa_dl.o: xanim.h xa_config.h xa_dl.h xa_dl.c
xa_dumfx.o: xanim.h xa_dumfx.c
xa_fli.o: xanim.h xa_config.h xa_fli.h xa_fli.c
xa_formats.o: xanim.h xa_formats.c
xa_gif.o: xanim.h xa_config.h xa_gif.h xa_gif.c
xa_iff.o: xanim.h xa_config.h xa_iff.h xa_iff.c
xa_input.o: xanim.h xa_input.c
xa_ipc.o: Imakefile xanim.h xa_config.h xa_ipc.h xa_ipc.c
xa_jmov.o: xanim.h xa_config.h xa_jmov.h xa_jmov.c
xa_jpg.o: xanim.h xa_config.h xa_jpg.h xa_jpg.c
xa_j6i.o: xanim.h xa_j6i.h xa_j6i.c
xa_movi.o: xanim.h xa_config.h xa_movi.h xa_movi.c
xa_mpg.o: xanim.h xa_config.h xa_mpg.h xa_xmpg.h xa_mpg.c xa_jpg.c
xa_qt.o: Imakefile xanim.h xa_config.h xa_qt.h xa_codecs.h xa_qt.c
xa_qt_decs.o: Imakefile xanim.h xa_config.h xa_qt.h xa_qt_decs.c
xa_vid_codec.o: Imakefile xa_avi.h xa_qt.h xa_codecs.h xavid.h xavid_mod.h
xa_vid_codec.o: xa_vid_codec.c
xa_replay.o: xanim.h xa_config.h xa_replay.h xa_replay.c
xa_rle.o: xanim.h xa_config.h xa_rle.h xa_rle.c
xa_set.o: xanim.h xa_config.h xa_iff.h xa_iff.c xa_set.h xa_set.c
xa_raw.o: xanim.h xa_raw.h xa_raw.c
xa_show.o: Imakefile xanim.h xa_show.c
xa_txt.o: xanim.h xa_config.h xa_txt.c
xa_utils.o: xanim.h xa_config.h xa_utils.c
xa_wav.o: xanim.h xa_config.h xa_avi.h xa_wav.c
xa_8svx.o: xanim.h xa_8svx.h xa_8svx.c
xa_x11.o: Imakefile xanim.h xa_config.h xa_x11.h xa_x11.c
xa_gsm.o: xanim.h xa_gsm_state.h xa_gsm.h xa_gsm.c

# ----------------------------------------------------------------------
# common rules for all Makefiles - do not edit

.c.i:
	$(RM) $@
	 	$(CC) -E $(CFLAGS) $(_NOOP_) $*.c > $@

.SUFFIXES: .ii

.cc.ii:
	$(RM) $@
	 	$(CC) -E $(CFLAGS) $(_NOOP_) $*.cc > $@

.SUFFIXES: .s

.c.s:
	$(RM) $@
	 	$(CC) -S $(CFLAGS) $(_NOOP_) $*.c

.cc.s:
	$(RM) $@
	 	$(CC) -S $(CFLAGS) $(_NOOP_) $*.cc

emptyrule::

cleandir::
	$(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut   "#"*

Makefile::
	-@if [ -f Makefile ]; then set -x; \
	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
	else exit 0; fi
	$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)

tags::
	$(TAGS) -w *.[ch]
	$(TAGS) -xw *.[ch] > TAGS

man_keywords::

html_index::
	@if [ -d $(DESTDIR)$(DOCHTMLDIR) ]; then \
		set +x; \
	else \
		if [ -h $(DESTDIR)$(DOCHTMLDIR) ]; then \
			(set -x; rm -f $(DESTDIR)$(DOCHTMLDIR)); \
		fi; \
		(set -x; $(MKDIRHIER) $(DESTDIR)$(DOCHTMLDIR)); \
	fi
	$(HTMLINDEXCMD) $(DESTDIR)$(DOCHTMLDIR)

clean:: cleandir

distclean:: cleandir

# ----------------------------------------------------------------------
# empty rules for directories that do not have SUBDIRS - do not edit

install::
	@echo "install in $(CURRENT_DIR) done"

install.man::
	@echo "install.man in $(CURRENT_DIR) done"

install.sdk::
	@echo "install.sdk in $(CURRENT_DIR) done"

Makefiles::

includes::

depend::

distclean::
	$(RM) Makefile Makefile.dep

# ----------------------------------------------------------------------
# dependencies generated by makedepend

