# Makefile generated by imake - do not edit!
# $TOG: imake.c /main/104 1998/03/24 12:45:15 kaleb $

# ----------------------------------------------------------------------
# Makefile generated from "Imake.tmpl" and <Imakefile>
# $TOG: Imake.tmpl /main/249 1997/10/13 15:28:56 kaleb $
#
#
#
#
# $XFree86: xc/config/cf/Imake.tmpl,v 3.87 2000/12/02 19:06:57 herrb Exp $
# ----------------------------------------------------------------------

all::

.SUFFIXES: .i

# $TOG: Imake.cf /main/30 1998/04/28 13:55:25 barstow $

# $XFree86: xc/config/cf/Imake.cf,v 3.63 2000/11/06 19:24:00 dawes Exp $

# Keep cpp from replacing path elements containing i486/i586/i686

#  for compatibility with 3.3.x

# -----------------------------------------------------------------------
# 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.170 2000/12/14 16:38:45 dawes Exp $

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

# platform:  $TOG: linux.cf /main/47 1998/04/17 11:32:51 mgreess

# platform:  $XFree86: xc/config/cf/linux.cf,v 3.157 2000/12/14 17:00:46 dawes Exp $

# operating system:  Linux 2.2.16-22 i586 [ELF] (2.2.16)
# libc:	(6.1.92)
# binutils:	(30)

# $TOG: lnxLib.rules /main/14 1998/03/16 11:15:30 mgreess $
# $XFree86: xc/config/cf/lnxLib.rules,v 3.38 2000/06/15 20:49:56 dawes Exp $

# $XFree86: xc/config/cf/xfree86.cf,v 3.338 2000/12/14 16:59:06 dawes Exp $

# $TOG: xfree86.cf /main/38 1997/10/22 13:01:59 kaleb $

AFB_DEFS = -DUSE_AFB

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)
    XFREE86HTMLDOCDIR = $(DOCHTMLDIR)
XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japanese

# $XConsortium: xf86.rules /main/9 1996/10/31 14:54:26 kaleb $
# $XFree86: xc/config/cf/xf86.rules,v 3.32 2000/10/30 23:02:06 tsi 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:  $TOG: Imake.rules /main/227 1998/02/02 12:07:57 kaleb $
#
#
#
#
# rules:  $XFree86: xc/config/cf/Imake.rules,v 3.86 2000/12/12 17:05:30 dawes Exp $

 _NULLCMD_ = @ echo -n

GLIDE2INCDIR =

GLIDE3INCDIR =

GLIDE3LIBNAME =

TKLIBNAME =

TKLIBDIR =

TCLLIBNAME =

TCLIBDIR =

          PATHSEP = /
            SHELL = /bin/sh -e

              TOP = ../../../../../..
      CURRENT_DIR = programs/Xserver/hw/xfree86/input/penmount

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

          INCROOT = /usr/X11R6/include
        USRLIBDIR = /usr/X11R6/lib
           VARDIR = /var
        VARLIBDIR = $(VARDIR)/lib
  SYSTEMUSRLIBDIR = /usr/lib
  SYSTEMUSRINCDIR = /usr/include
         SHLIBDIR = /usr/X11R6/lib
       LINTLIBDIR = $(USRLIBDIR)/lint
          MANPATH = /usr/X11R6/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
  BOOTSTRAPCFLAGS =
               CC = gcc
               AS = as

.SUFFIXES: .cc

              CXX = c++
          CXXFILT = c++filt
           CXXLIB =
    CXXDEBUGFLAGS = -O2 -fno-strength-reduce
CXXDEPENDINCLUDES =
 CXXEXTRA_DEFINES =
CXXEXTRA_INCLUDES =
   CXXSTD_DEFINES = -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE  -D_GNU_SOURCE  $(CXXPROJECT_DEFINES)
       CXXOPTIONS =
      CXXINCLUDES = $(INCLUDES) $(TOP_INCLUDES) $(CXXEXTRA_INCLUDES)
       CXXDEFINES = $(CXXINCLUDES) $(CXXSTD_DEFINES) $(THREADS_CXXDEFINES) $(CXXEXTRA_DEFINES) $(DEFINES)
         CXXFLAGS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(THREADS_CXXFLAGS) $(CXXDEFINES)

         COMPRESS = compress
          GZIPCMD = gzip
              CPP = /lib/cpp $(STD_CPP_DEFINES)
           RAWCPP = /lib/cpp -undef $(STD_CPP_OPTIONS)
    PREPROCESSCMD = gcc -E $(STD_CPP_DEFINES)
          INSTALL = install
     INSTALLFLAGS = -c
               LD = ld
              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 =
        MANSUFFIX = 1x
     LIBMANSUFFIX = 3x
    FILEMANSUFFIX = 5x
    MISCMANSUFFIX = 7
  DRIVERMANSUFFIX = 4
          MANDEFS = -D__filemansuffix__=$(FILEMANSUFFIX) -D__miscmansuffix__=$(MISCMANSUFFIX) -D__drivermansuffix__=$(DRIVERMANSUFFIX) -D__projectroot__=$(PROJECTROOT)

            TROFF = groff -Tps
            NROFF = nroff
         MSMACROS = -ms
        MANMACROS = -man
              TBL = tbl
              EQN = eqn
             NEQN = neqn
              COL = col
         COLFLAGS = -b
            MODCC = gcc
           MODCPP = /lib/cpp
        MODCFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(THREAD_CFLAGS) $(ALLDEFINES)
            MODAS = as
       MODASFLAGS =
            MODLD = ld
       MODLDFLAGS =
MODLDCOMBINEFLAGS = -r
            MODAR = ar clq
        MODRANLIB =

     STD_INCLUDES =
  STD_CPP_OPTIONS = -traditional
  STD_CPP_DEFINES = -traditional -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE  -D_GNU_SOURCE  $(PROJECT_DEFINES)
      STD_DEFINES = -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE  -D_GNU_SOURCE  $(PROJECT_DEFINES)
 EXTRA_LOAD_FLAGS = -Wl,-rpath-link,$(BUILDLIBDIR)
  EXTRA_LDOPTIONS =
  EXTRA_LIBRARIES =
             TAGS = ctags

   PARALLELMFLAGS =

    SHAREDCODEDEF =
         SHLIBDEF =

     SHLIBLDFLAGS = -shared

         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/X11R6

      CDEBUGFLAGS = -O2 -fno-strength-reduce
        CCOPTIONS = -ansi -pedantic -Wall -Wpointer-arith 

      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(MODULE_DEFINES) $(DEFINES)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(THREADS_CFLAGS) $(MODULE_CFLAGS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
         LDPRELIB = -L$(BUILDLIBDIR)
        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 =

# 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 =

         IRULESRC = $(CONFIGSRC)/cf
        IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES)

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

# $TOG: X11.rules /main/4 1997/04/30 15:23:24 kaleb $

# $XFree86: xc/config/cf/X11.rules,v 1.5 2000/11/06 19:24:00 dawes Exp $

# ----------------------------------------------------------------------
# X Window System Build Parameters and Rules
# $TOG: X11.tmpl /main/308 1998/06/16 15:14:24 msr $
#
#
#
#
# $XFree86: xc/config/cf/X11.tmpl,v 1.93 2000/12/15 18:18:04 keithp 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/X11R6/bin
     BUILDINCROOT = $(TOP)/exports
      BUILDINCDIR = $(BUILDINCROOT)/include
      BUILDINCTOP = ../..
      BUILDLIBDIR = $(TOP)/exports/lib
      BUILDLIBTOP = ../..
      BUILDBINDIR = $(TOP)/exports/bin
      BUILDBINTOP = ../..
   BUILDMODULEDIR = $(BUILDLIBDIR)/modules
   BUILDMODULETOP = $(BUILDLIBTOP)/..
    XBUILDINCROOT = $(XTOP)/exports
     XBUILDINCDIR = $(XBUILDINCROOT)/include/X11
     XBUILDINCTOP = ../../..
     XBUILDBINDIR = $(XBUILDINCROOT)/bin
           INCDIR = $(INCROOT)
           ADMDIR = /usr/adm
           LIBDIR = $(USRLIBDIR)/X11
       LIBEXECDIR = /usr/X11R6/libexec
        MODULEDIR = $(USRLIBDIR)/modules
   TOP_X_INCLUDES = -I$(TOP)/exports/include

        ETCX11DIR = /etc/X11

          CONFDIR = $(ETCX11DIR)

           DOCDIR = $(LIBDIR)/doc
       DOCHTMLDIR = $(DOCDIR)/html
         DOCPSDIR = $(DOCDIR)/PostScript
          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
        PEXAPIDIR = $(LIBDIR)/PEX
      LBXPROXYDIR = $(LIBDIR)/lbxproxy
  PROXYMANAGERDIR = $(LIBDIR)/proxymngr
        XPRINTDIR = $(LIBDIR)/xserver
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

              RGB = $(CLIENTENVSETUP) $(XBUILDBINDIR)/rgb
            FONTC = $(CLIENTENVSETUP) $(XBUILDBINDIR)/bdftopcf
        MKFONTDIR = $(CLIENTENVSETUP) $(XBUILDBINDIR)/mkfontdir
      MKHTMLINDEX = $(SHELL) $(CONFIGSRC)/util/mkhtmlindex.sh
          UCS2ANY = $(FONTSRC)/util/ucs2any.pl
      BDFTRUNCATE = $(FONTSRC)/util/bdftruncate.pl
     UCSMAPPREFIX = $(FONTSRC)/util/map-

     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)

       XENVLIBDIR = $(TOP)/exports/lib
   CLIENTENVSETUP = LD_LIBRARY_PATH=$(XENVLIBDIR)

# $TOG: lnxLib.tmpl /main/7 1998/03/20 14:26:41 mgreess $
# $XFree86: xc/config/cf/lnxLib.tmpl,v 3.12 1999/06/27 14:07:17 dawes Exp $

          XLIBSRC = $(LIBSRC)/X11

SOXLIBREV = 6.2
DEPXONLYLIB =
XONLYLIB =  -lX11

LINTXONLY = $(XLIBSRC)/llib-X11.ln

         XLIBONLY = $(XONLYLIB)

      XEXTLIBSRC = $(LIBSRC)/Xext

SOXEXTREV = 6.4
DEPEXTENSIONLIB =
EXTENSIONLIB =  -lXext

LINTEXTENSION = $(XEXTLIBSRC)/llib-Xext.ln

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

    XSSLIBSRC = $(LIBSRC)/Xss

DEPXSSLIB = $(TOP)/exports/lib/libXss.a
XSSLIB =  -lXss

LINTXSS = $(XSSLIBSRC)/llib-Xss.ln

    XXF86MISCLIBSRC = $(LIBSRC)/Xxf86misc

DEPXXF86MISCLIB = $(TOP)/exports/lib/libXxf86misc.a
XXF86MISCLIB =  -lXxf86misc

LINTXXF86MISC = $(XXF86MISCLIBSRC)/llib-Xxf86misc.ln

    XXF86VMLIBSRC = $(LIBSRC)/Xxf86vm

DEPXXF86VMLIB = $(TOP)/exports/lib/libXxf86vm.a
XXF86VMLIB =  -lXxf86vm

LINTXXF86VM = $(XXF86VMLIBSRC)/llib-Xxf86vm.ln

    XXF86DGALIBSRC = $(LIBSRC)/Xxf86dga

DEPXXF86DGALIB = $(TOP)/exports/lib/libXxf86dga.a
XXF86DGALIB =  -lXxf86dga

LINTXXF86DGA = $(XXF86DGALIBSRC)/llib-Xxf86dga.ln

    XXF86RUSHLIBSRC = $(LIBSRC)/Xxf86rush

DEPXXF86RUSHLIB = $(TOP)/exports/lib/libXxf86rush.a
XXF86RUSHLIB =  -lXxf86rush

LINTXXF86RUSH = $(XXF86RUSHLIBSRC)/llib-Xxf86rush.ln

    XVLIBSRC = $(LIBSRC)/Xv

DEPXVLIB = $(TOP)/exports/lib/libXv.a
XVLIB =  -lXv

LINTXV = $(XVLIBSRC)/llib-Xv.ln

    XINERAMALIBSRC = $(LIBSRC)/Xinerama

DEPXINERAMALIB = $(TOP)/exports/lib/libXinerama.a
XINERAMALIB =  -lXinerama

LINTXINERAMA = $(XINERAMALIBSRC)/llib-Xinerama.ln

    XINERAMALIBSRC = $(LIBSRC)/Xinerama

DEPXINERAMALIB = $(TOP)/exports/lib/libXinerama.a
XINERAMALIB =  -lXinerama

LINTXINERAMA = $(XINERAMALIBSRC)/llib-Xinerama.ln

    DPSLIBSRC = $(LIBSRC)/dps

SODPSREV = 1.0
DEPDPSLIB =
DPSLIB =  -ldps

LINTDPS = $(DPSLIBSRC)/llib-dps.ln

    DPSTKLIBSRC = $(LIBSRC)/dpstk

SODPSTKREV = 1.0
DEPDPSTKLIB =
DPSTKLIB =  -ldpstk

LINTDPSTK = $(DPSTKLIBSRC)/llib-dpstk.ln

    PSRESLIBSRC = $(LIBSRC)/psres

SOPSRESREV = 1.0
DEPPSRESLIB =
PSRESLIB =  -lpsres

LINTPSRES = $(PSRESLIBSRC)/llib-psres.ln

    GLXLIBSRC = $(LIBSRC)/GL

SOGLREV = 1.2
DEPGLXLIB =
GLXLIB =  -lGL

LINTGLX = $(GLXLIBSRC)/llib-GL.ln

    GLWIDGETSRC = $(LIBSRC)/GLw

DEPGLWLIB = $(TOP)/exports/lib/libGLw.a
GLWLIB =  -lGLw

LINTGLW = $(GLWIDGETSRC)/llib-GLw.ln

    XRENDERLIBSRC = $(LIBSRC)/Xrender

SOXRENDERREV = 1.0
DEPXRENDERLIB =
XRENDERLIB =  -lXrender

LINTXRENDER = $(XRENDERLIBSRC)/llib-Xrender.ln

    XFONTCACHELIBSRC = $(LIBSRC)/Xfontcache

DEPXFONTCACHELIB = $(TOP)/exports/lib/libXfontcache.a
XFONTCACHELIB =  -lXfontcache

LINTXFONTCACHE = $(XFONTCACHELIBSRC)/llib-Xfontcache.ln

         XAUTHSRC = $(LIBSRC)/Xau

DEPXAUTHLIB = $(TOP)/exports/lib/libXau.a
XAUTHLIB =  -lXau

LINTXAUTH = $(XAUTHSRC)/llib-Xau.ln

      XDMCPLIBSRC = $(LIBSRC)/Xdmcp

DEPXDMCPLIB = $(TOP)/exports/lib/libXdmcp.a
XDMCPLIB =  -lXdmcp

LINTXDMCP = $(XDMCPLIBSRC)/llib-Xdmcp.ln

           XMUSRC = $(LIBSRC)/Xmu

SOXMUREV = 6.2
DEPXMULIB =
XMULIB =  -lXmu

LINTXMU = $(XMUSRC)/llib-Xmu.ln

       OLDXLIBSRC = $(LIBSRC)/oldX

DEPOLDXLIB = $(TOP)/exports/lib/liboldX.a
OLDXLIB =  -loldX

LINTOLDX = $(OLDXLIBSRC)/llib-oldX.ln

         XPLIBSRC = $(LIBSRC)/Xp

SOXPREV = 6.2
DEPXPLIB =
XPLIB =  -lXp

LINTXP = $(XPLIBSRC)/llib-Xp.ln

       TOOLKITSRC = $(LIBSRC)/Xt

SOXTREV = 6.0
DEPXTOOLONLYLIB =
XTOOLONLYLIB =  -lXt

LINTXTOOLONLY = $(TOOLKITSRC)/llib-Xt.ln

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

       XALIBSRC = $(LIBSRC)/Xa

SOXAREV = 1.0
DEPXALIB =
XALIB =  -lXa

LINTXA = $(XALIBSRC)/llib-Xa.ln

       AWIDGETSRC = $(LIBSRC)/Xaw

SOXAWREV = 7.0
DEPXAWLIB =
XAWLIB =  -lXaw

LINTXAW = $(AWIDGETSRC)/llib-Xaw.ln

       AWIDGET6SRC = $(LIBSRC)/Xaw6

SOXAW6REV = 6.1
DEPXAW6LIB =
XAW6LIB =  -lXaw

LINTXAW6 = $(AWIDGET6SRC)/llib-Xaw.ln

         XILIBSRC = $(LIBSRC)/Xi

SOXINPUTREV = 6.0
DEPXILIB =
XILIB =  -lXi

LINTXI = $(XILIBSRC)/llib-Xi.ln

      XTESTLIBSRC = $(LIBSRC)/Xtst

SOXTESTREV = 6.1
DEPXTESTLIB =
XTESTLIB =  -lXtst

LINTXTEST = $(XTESTLIBSRC)/llib-Xtst.ln

        PEXLIBSRC = $(LIBSRC)/PEX5

SOPEXREV = 6.0
DEPPEXLIB =
PEXLIB =  -lPEX5

LINTPEX = $(PEXLIBSRC)/llib-PEX5.ln

        XIELIBSRC = $(LIBSRC)/XIE

SOXIEREV = 6.0
DEPXIELIB =
XIELIB =  -lXIE

LINTXIE = $(XIELIBSRC)/llib-XIE.ln

      PHIGSLIBSRC = $(LIBSRC)/PHIGS

DEPPHIGSLIB = $(TOP)/exports/lib/libphigs.a
PHIGSLIB =  -lphigs

LINTPHIGS = $(PHIGSLIBSRC)/llib-phigs.ln

DEPXBSDLIB = $(TOP)/exports/lib/libXbsd.a
XBSDLIB =  -lXbsd

LINTXBSD = $(LIBSRC)/Xbsd/llib-Xbsd.ln

           ICESRC = $(LIBSRC)/ICE

SOICEREV = 6.3
DEPICELIB =
ICELIB =  -lICE

LINTICE = $(ICESRC)/llib-ICE.ln

            SMSRC = $(LIBSRC)/SM

SOSMREV = 6.0
DEPSMLIB =
SMLIB =  -lSM

LINTSM = $(SMSRC)/llib-SM.ln

           XKEYSRC = $(LIBSRC)/Xkey

SOXKEYREV = 6.0
DEPXKEYLIB =
XKEYLIB =  -lXkey

LINTXKEY = $(XKEYSRC)/llib-Xkey.ln

         FSLIBSRC = $(LIBSRC)/FS

DEPFSLIB = $(TOP)/exports/lib/libFS.a
FSLIB =  -lFS

LINTFS = $(FSLIBSRC)/llib-FS.ln

         FONTLIBSRC = $(LIBSRC)/font

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

LINTXFONT = $(FONTLIBSRC)/llib-Xfont.ln
#
SOFONTREV = 1.3
DEPXFONTLIB =
XFONTLIB =  -lXfont

LINTXFONT = $(FONTLIBSRC)/llib-Xfont.ln

     FONTSTUBLIBSRC = $(FONTLIBSRC)/stubs

DEPFONTSTUBLIB = $(TOP)/exports/lib/libfntstubs.a
FONTSTUBLIB =  -lfntstubs

LINTFONTSTUB = $(FONTSUBLIBSRC)/llib-fntstubs.ln
         DEPFONTLIB = $(DEPXFONTLIB) $(DEPFONTSTUBLIB)
            FONTLIB = $(XFONTLIB) $(FONTSTUBLIB)

          XPMLIBSRC = $(LIBSRC)/Xpm

SOXPMREV = 4.11
DEPXPMLIB =
XPMLIB =  -lXpm

LINTXPM = $(XPMLIBSRC)/llib-Xpm.ln

          XFTLIBSRC = $(LIBSRC)/Xft

SOXFTREV = 1.0
DEPXFTLIB =
XFTLIB =  -lXft

LINTXFT = $(XFTLIBSRC)/llib-Xft.ln

    XKBFILELIBSRC = $(LIBSRC)/xkbfile

DEPXKBFILELIB = $(TOP)/exports/lib/libxkbfile.a
XKBFILELIB =  -lxkbfile

LINTXKBFILE = $(XKBFILELIBSRC)/llib-xkbfile.ln

     XKBCOMPSRC = $(PROGRAMSRC)/xkbcomp
     XKBCOMPCMD = $(CLIENTENVSETUP) $(XBUILDBINDIR)/xkbcomp

    XKBUILIBSRC = $(LIBSRC)/xkbui

DEPXKBUILIB = $(TOP)/exports/lib/libxkbui.a
XKBUILIB =  -lxkbui

LINTXKBUI = $(XKBUILIBSRC)/llib-xkbui.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)

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

        CONFIGDIR = $(LIBDIR)/config

    USRLIBDIRPATH = $(USRLIBDIR)
        LDPRELIBS = -L$(BUILDLIBDIR)
       LDPOSTLIBS =
     TOP_INCLUDES = -I$(TOP) $(TOP_X_INCLUDES)
  PROJECT_DEFINES =

CXXPROJECT_DEFINES =

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

# $XFree86: xc/programs/Xserver/hw/xfree86/input/penmount/Imakefile,v 1.3 2000/05/23 04:47:47 dawes Exp $

# $XFree86: xc/config/cf/Server.tmpl,v 3.16 2000/02/18 16:23:07 dawes Exp $

# $TOG: Server.tmpl /main/15 1997/07/16 14:43:38 kaleb $

         CC = gcc
  CCOPTIONS = -ansi -pedantic -Wall -Wpointer-arith 

STD_DEFINES = -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE  -D_GNU_SOURCE  -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP  -DXF86BIGFONT -DDPMSExtension  -DPIXPRIV -DPANORAMIX  -DRENDER -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER  -DXFree86Server -DXF86VIDMODE  -DSMART_SCHEDULE -DBUILDDEBUG -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG $(SERVER_THREAD_DEFINES)
CDEBUGFLAGS = -O2 -fno-strength-reduce
EXT_DEFINES =  -DMITMISC -DXTEST -DXSYNC -DXCMISC -DXRECORD -DPEXEXT -DMITSHM -DXIE -DBIGREQS -DXF86VIDMODE -DXF86MISC -DDBE -DDPMSExtension -DEVI -DSCREENSAVER -DXV -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA  -DFONTCACHE

GLX_DEFINES = -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA

# $XConsortium: xf86.tmpl /main/2 1996/10/31 15:01:41 kaleb $

# $XFree86: xc/config/cf/xf86.tmpl,v 3.27 2000/08/04 16:13:15 eich Exp $

BUILDERADDR = "xfree86@xfree86.org"

BUGMSG = -DBUILDERADDR='$(BUILDERADDR)'

MODULE_DEFINES = -DIN_MODULE -DXFree86Module

SRCS = xf86PM.c
OBJS = xf86PM.o

DRIVER = penmount

INCLUDES = -I. -I$(XF86COMSRC) -I$(XF86SRC)/loader -I$(XF86OSSRC) 			-I$(SERVERSRC)/include -I$(XINCLUDESRC) -I$(EXTINCSRC)

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

all:: $(DRIVER)_drv.o

$(DRIVER)_drv.o:  $(OBJS) $(EXTRALIBRARYDEPS)
	$(RM) $@
	$(LD) $(LDCOMBINEFLAGS)  $(OBJS) -o $@

all:: $(DRIVER)_drv.o
	@if [ -d $(BUILDMODULEDIR)/input ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(BUILDMODULEDIR)/input); fi
	$(RM) $(BUILDMODULEDIR)/input/$(DRIVER)_drv.o
	@(UP="`$(REVPATH) input`"; set -x; \
	cd $(BUILDMODULEDIR)/input && \
	$(LN) $(BUILDMODULETOP)/$${UP}$(CURRENT_DIR)/$(DRIVER)_drv.o .)

install:: $(DRIVER)_drv.o
	@if [ -d $(DESTDIR)$(MODULEDIR)/input ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(MODULEDIR)/input); fi
	$(INSTALL) -c $(DRIVER)_drv.o $(DESTDIR)$(MODULEDIR)/input

all:: $(DRIVER).man

$(DRIVER).man::  $(DRIVER).cpp
	$(RM) $@
	 $(RAWCPP)  $(MANDEFS)  <$(DRIVER).cpp | sed -e '/^#  *[0-9][0-9]*  *.*$$/d' -e '/^XCOMM$$/s//#/' -e '/^XCOMM[^a-zA-Z0-9_]/s/^XCOMM/#/' >$@

clean::
	$(RM) $(DRIVER).man

all:: $(DRIVER).$(DRIVERMANSUFFIX).html

$(DRIVER).$(DRIVERMANSUFFIX).html: $(DRIVER).man $(RMAN)
	$(RM) $(DRIVER).$(DRIVERMANSUFFIX).html $(DRIVER).$(DRIVERMANSUFFIX)-html
	$(RMAN) $(RMANOPTIONS) < $(DRIVER).man > $(DRIVER).$(DRIVERMANSUFFIX)-html && \
	$(MV) $(DRIVER).$(DRIVERMANSUFFIX)-html $@

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

clean::
	$(RM) $(DRIVER).$(DRIVERMANSUFFIX).html $(DRIVER).$(DRIVERMANSUFFIX)-html

install.man:: $(DRIVER).man
	@if [ -d $(DESTDIR)$(DRIVERMANDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(DRIVERMANDIR)); fi
	$(INSTALL) -c $(INSTMANFLAGS) $(DRIVER).man $(DESTDIR)$(DRIVERMANDIR)/$(DRIVER).$(DRIVERMANSUFFIX)

depend:: $(DEPEND)

$(DEPEND):
	@echo "checking $@ over in $(DEPENDSRC) first..."; \
	cd $(DEPENDSRC) && $(MAKE); \
	echo "okay, continuing in $(CURRENT_DIR)"

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

install.sdk:: $(DRIVER)_drv.o
	@if [ -d $(DESTDIR)$(DRIVERSDKMODULEDIR)/input ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(DRIVERSDKMODULEDIR)/input); fi
	$(INSTALL) -c $(DRIVER)_drv.o $(DESTDIR)$(DRIVERSDKMODULEDIR)/input

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

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

.SUFFIXES: .s

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

emptyrule::

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

Makefile:: $(IMAKE)

$(IMAKE) $(IMAKE).o:
	-@(cd $(IMAKESRC) && if [ -f Makefile ]; then \
	echo "checking $@ in $(IMAKESRC) first..."; $(MAKE) all; else \
	echo "bootstrapping $@ from Makefile.ini in $(IMAKESRC) first..."; \
	$(MAKE) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"; fi; \
	echo "okay, continuing in $(CURRENT_DIR)")

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)

$(RMAN):
	@echo "checking $@ over in $(TOP)/config/util first..."; \
	cd $(TOP)/config/util && $(MAKE) rman; \
	echo "okay, continuing in $(CURRENT_DIR)"

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

man_keywords::

html_index::
	$(HTMLINDEXCMD) $(DESTDIR)$(DOCHTMLDIR)

# ----------------------------------------------------------------------
# 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::

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

# DO NOT DELETE

xf86PM.o: ../../../../../../programs/Xserver/hw/xfree86/common/xf86Version.h
xf86PM.o: ../../../../../../programs/Xserver/include/misc.h
xf86PM.o: ../../../../../../exports/include/X11/Xosdefs.h
xf86PM.o: ../../../../../../exports/include/X11/Xfuncproto.h
xf86PM.o: ../../../../../../exports/include/X11/Xmd.h
xf86PM.o: ../../../../../../exports/include/X11/X.h
xf86PM.o: ../../../../../../exports/include/X11/Xdefs.h
xf86PM.o: ../../../../../../programs/Xserver/include/os.h
xf86PM.o: ../../../../../../exports/include/X11/Xalloca.h
xf86PM.o: ../../../../../../programs/Xserver/include/xf86_ansic.h
xf86PM.o: /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h
xf86PM.o: ../../../../../../programs/Xserver/include/xf86_libc.h
xf86PM.o: ../../../../../../exports/include/X11/Xfuncs.h
xf86PM.o: ../../../../../../programs/Xserver/hw/xfree86/common/xf86.h
xf86PM.o: ../../../../../../programs/Xserver/hw/xfree86/common/xf86str.h
xf86PM.o: ../../../../../../programs/Xserver/include/input.h
xf86PM.o: ../../../../../../programs/Xserver/include/screenint.h
xf86PM.o: ../../../../../../exports/include/X11/Xproto.h
xf86PM.o: ../../../../../../exports/include/X11/Xprotostr.h
xf86PM.o: ../../../../../../programs/Xserver/include/window.h
xf86PM.o: ../../../../../../programs/Xserver/include/region.h
xf86PM.o: ../../../../../../programs/Xserver/include/regionstr.h
xf86PM.o: ../../../../../../programs/Xserver/include/miscstruct.h
xf86PM.o: ../../../../../../programs/Xserver/include/scrnintstr.h
xf86PM.o: ../../../../../../programs/Xserver/include/bstore.h
xf86PM.o: ../../../../../../programs/Xserver/include/bstorestr.h
xf86PM.o: ../../../../../../programs/Xserver/include/gc.h
xf86PM.o: ../../../../../../exports/include/X11/Xdefs.h
xf86PM.o: ../../../../../../programs/Xserver/include/pixmap.h
xf86PM.o: ../../../../../../programs/Xserver/include/colormap.h
xf86PM.o: ../../../../../../programs/Xserver/include/cursor.h
xf86PM.o: ../../../../../../programs/Xserver/include/validate.h
xf86PM.o: ../../../../../../programs/Xserver/include/dix.h
xf86PM.o: ../../../../../../programs/Xserver/include/pixmapstr.h
xf86PM.o: ../../../../../../programs/Xserver/hw/xfree86/common/xf86Module.h
xf86PM.o: ../../../../../../programs/Xserver/hw/xfree86/common/xf86Opt.h
xf86PM.o: ../../../../../../programs/Xserver/include/propertyst.h
xf86PM.o: ../../../../../../programs/Xserver/include/property.h
xf86PM.o: ../../../../../../programs/Xserver/hw/xfree86/os-support/xf86_OSproc.h
xf86PM.o: ../../../../../../programs/Xserver/include/opaque.h
xf86PM.o: ../../../../../../programs/Xserver/include/globals.h
xf86PM.o: ../../../../../../programs/Xserver/hw/xfree86/common/xf86Xinput.h
xf86PM.o: ../../../../../../exports/include/X11/X.h
xf86PM.o: ../../../../../../exports/include/X11/Xproto.h
xf86PM.o: ../../../../../../programs/Xserver/include/inputstr.h
xf86PM.o: ../../../../../../programs/Xserver/include/dixstruct.h
xf86PM.o: ../../../../../../programs/Xserver/include/resource.h
xf86PM.o: ../../../../../../exports/include/X11/extensions/XI.h
xf86PM.o: ../../../../../../exports/include/X11/extensions/XIproto.h
xf86PM.o: ../../../../../../programs/Xserver/include/XIstubs.h
xf86PM.o: ../../../../../../programs/Xserver/include/exevents.h
