head	1.20;
access;
symbols
	netbsd-7-2-RELEASE:1.19
	netbsd-7-1-2-RELEASE:1.19
	netbsd-7-1-1-RELEASE:1.19
	netbsd-7-1:1.19.0.28
	netbsd-7-1-RELEASE:1.19
	netbsd-7-1-RC2:1.19
	netbsd-7-1-RC1:1.19
	netbsd-7-0-2-RELEASE:1.19
	netbsd-7-0-1-RELEASE:1.19
	netbsd-7-0:1.19.0.26
	netbsd-7-0-RELEASE:1.19
	netbsd-7-0-RC3:1.19
	netbsd-7-0-RC2:1.19
	netbsd-7-0-RC1:1.19
	netbsd-5-2-3-RELEASE:1.19
	netbsd-5-1-5-RELEASE:1.19
	netbsd-6-0-6-RELEASE:1.19
	netbsd-6-1-5-RELEASE:1.19
	netbsd-7:1.19.0.24
	netbsd-7-base:1.19
	netbsd-6-1-4-RELEASE:1.19
	netbsd-6-0-5-RELEASE:1.19
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.19
	riastradh-drm2:1.19.0.22
	riastradh-drm2-base:1.19
	netbsd-6-1-3-RELEASE:1.19
	netbsd-6-0-4-RELEASE:1.19
	netbsd-5-2-2-RELEASE:1.19
	netbsd-5-1-4-RELEASE:1.19
	netbsd-6-1-2-RELEASE:1.19
	netbsd-6-0-3-RELEASE:1.19
	netbsd-5-2-1-RELEASE:1.19
	netbsd-5-1-3-RELEASE:1.19
	netbsd-6-1-1-RELEASE:1.19
	netbsd-6-1:1.19.0.20
	netbsd-6-0-2-RELEASE:1.19
	netbsd-6-1-RELEASE:1.19
	netbsd-6-1-RC4:1.19
	netbsd-6-1-RC3:1.19
	netbsd-6-1-RC2:1.19
	netbsd-6-1-RC1:1.19
	netbsd-5-2:1.19.0.18
	netbsd-6-0-1-RELEASE:1.19
	netbsd-5-2-RELEASE:1.19
	netbsd-5-2-RC1:1.19
	netbsd-6-0:1.19.0.16
	netbsd-6-0-RELEASE:1.19
	netbsd-6-0-RC2:1.19
	netbsd-6-0-RC1:1.19
	netbsd-6:1.19.0.14
	netbsd-6-base:1.19
	netbsd-5-1-2-RELEASE:1.19
	netbsd-5-1-1-RELEASE:1.19
	netbsd-5-1:1.19.0.12
	netbsd-5-1-RELEASE:1.19
	netbsd-5-1-RC4:1.19
	netbsd-5-1-RC3:1.19
	netbsd-5-1-RC2:1.19
	netbsd-5-1-RC1:1.19
	netbsd-5-0-2-RELEASE:1.19
	netbsd-5-0-1-RELEASE:1.19
	netbsd-5-0:1.19.0.10
	netbsd-5-0-RELEASE:1.19
	netbsd-5-0-RC4:1.19
	netbsd-5-0-RC3:1.19
	netbsd-5-0-RC2:1.19
	netbsd-5-0-RC1:1.19
	netbsd-5:1.19.0.8
	netbsd-5-base:1.19
	netbsd-4-0-1-RELEASE:1.19
	netbsd-4-0:1.19.0.6
	netbsd-4-0-RELEASE:1.19
	netbsd-4-0-RC5:1.19
	netbsd-4-0-RC4:1.19
	netbsd-4-0-RC3:1.19
	netbsd-4-0-RC2:1.19
	netbsd-4-0-RC1:1.19
	netbsd-3-1-1-RELEASE:1.16.2.1
	netbsd-3-0-3-RELEASE:1.16.2.1
	abandoned-netbsd-4-base:1.19
	abandoned-netbsd-4:1.19.0.2
	netbsd-3-1:1.16.2.1.0.4
	netbsd-3-1-RELEASE:1.16.2.1
	netbsd-3-0-2-RELEASE:1.16.2.1
	netbsd-3-1-RC4:1.16.2.1
	netbsd-3-1-RC3:1.16.2.1
	netbsd-3-1-RC2:1.16.2.1
	netbsd-3-1-RC1:1.16.2.1
	netbsd-4:1.19.0.4
	netbsd-4-base:1.19
	netbsd-3-0-1-RELEASE:1.16.2.1
	netbsd-3-0:1.16.2.1.0.2
	netbsd-3-0-RELEASE:1.16.2.1
	netbsd-3-0-RC6:1.16.2.1
	netbsd-3-0-RC5:1.16.2.1
	netbsd-3-0-RC4:1.16.2.1
	netbsd-3-0-RC3:1.16.2.1
	netbsd-3-0-RC2:1.16.2.1
	netbsd-3-0-RC1:1.16.2.1
	netbsd-2-0-3-RELEASE:1.10
	netbsd-2-1:1.10.0.6
	netbsd-2-1-RELEASE:1.10
	netbsd-2-1-RC6:1.10
	netbsd-2-1-RC5:1.10
	netbsd-2-1-RC4:1.10
	netbsd-2-1-RC3:1.10
	netbsd-2-1-RC2:1.10
	netbsd-2-1-RC1:1.10
	netbsd-2-0-2-RELEASE:1.10
	v4-5-0:1.1.1.7
	v4-5-0_beforeimport:1.16
	netbsd-3:1.16.0.2
	netbsd-3-base:1.16
	netbsd-2-0-1-RELEASE:1.10
	netbsd-2:1.10.0.4
	netbsd-2-base:1.10
	netbsd-2-0-RELEASE:1.10
	netbsd-2-0-RC5:1.10
	netbsd-2-0-RC4:1.10
	netbsd-2-0-RC3:1.10
	netbsd-2-0-RC2:1.10
	netbsd-2-0-RC1:1.10
	netbsd-2-0:1.10.0.2
	netbsd-2-0-base:1.10
	v4-4-0:1.1.1.6
	v4-4-0_beforeimport:1.8
	netbsd-1-6-PATCH002-RELEASE:1.2
	netbsd-1-6-PATCH002:1.2
	netbsd-1-6-PATCH002-RC4:1.2
	v4-3-0-2003-12-19:1.1.1.5
	netbsd-1-6-PATCH002-RC3:1.2
	netbsd-1-6-PATCH002-RC2:1.2
	netbsd-1-6-PATCH002-RC1:1.2
	netbsd-1-6:1.2.0.2
	netbsd-1-6-base:1.2
	v4-3-0:1.1.1.5
	v4-3-0_beforeimport:1.1.1.4
	netbsd-1-6-PATCH001:1.1.1.4
	netbsd-1-6-RELEASE:1.1.1.4
	v4-2-1:1.1.1.4
	v4-2-1_beforeimport:1.1.1.4
	netbsd-1-5-PATCH003:1.1.1.4
	v4-2-0:1.1.1.4
	netbsd-1-5-PATCH002:1.1.1.3
	netbsd-1-5-PATCH001:1.1.1.2
	v4-1-0:1.1.1.3
	v4-0-3:1.1.1.2
	v4-0-2:1.1.1.1
	XF86:1.1.1;
locks; strict;
comment	@# @;


1.20
date	2015.07.23.08.13.21;	author mrg;	state dead;
branches;
next	1.19;
commitid	3Fk7MoycOv7VSnuy;

1.19
date	2005.12.29.15.45.44;	author tsutsui;	state Exp;
branches;
next	1.18;

1.18
date	2005.11.12.22.47.53;	author spz;	state Exp;
branches;
next	1.17;

1.17
date	2005.03.18.14.55.10;	author tron;	state Exp;
branches;
next	1.16;

1.16
date	2005.02.04.18.41.09;	author tsutsui;	state Exp;
branches
	1.16.2.1;
next	1.15;

1.15
date	2005.02.04.16.52.25;	author tsutsui;	state Exp;
branches;
next	1.14;

1.14
date	2005.01.08.13.35.02;	author tsutsui;	state Exp;
branches;
next	1.13;

1.13
date	2005.01.08.13.28.37;	author tsutsui;	state Exp;
branches;
next	1.12;

1.12
date	2005.01.08.13.21.08;	author tsutsui;	state Exp;
branches;
next	1.11;

1.11
date	2005.01.07.15.08.31;	author tsutsui;	state Exp;
branches;
next	1.10;

1.10
date	2004.03.10.07.15.06;	author heas;	state Exp;
branches;
next	1.9;

1.9
date	2004.03.05.16.32.56;	author tron;	state Exp;
branches;
next	1.8;

1.8
date	2004.01.25.05.39.52;	author minoura;	state Exp;
branches;
next	1.7;

1.7
date	2004.01.10.03.21.26;	author fredb;	state Exp;
branches;
next	1.6;

1.6
date	2004.01.06.01.58.13;	author mrg;	state Exp;
branches;
next	1.5;

1.5
date	2003.12.28.07.04.05;	author tsutsui;	state Exp;
branches;
next	1.4;

1.4
date	2003.12.27.08.25.48;	author mrg;	state Exp;
branches;
next	1.3;

1.3
date	2003.12.27.05.47.49;	author mrg;	state Exp;
branches;
next	1.2;

1.2
date	2003.10.06.00.59.40;	author mycroft;	state Exp;
branches;
next	1.1;

1.1
date	2001.01.01.12.45.00;	author veego;	state Exp;
branches
	1.1.1.1;
next	;

1.16.2.1
date	2005.04.06.20.00.24;	author tron;	state Exp;
branches;
next	1.16.2.2;

1.16.2.2
date	2007.01.23.22.55.24;	author tron;	state Exp;
branches;
next	;

1.1.1.1
date	2001.01.01.12.45.00;	author veego;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.03.18.17.15.47;	author veego;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2001.06.09.14.57.59;	author tron;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2002.01.19.14.59.45;	author tron;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2003.02.28.13.19.43;	author tron;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2004.03.05.14.27.36;	author tron;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2005.03.18.13.09.53;	author tron;	state Exp;
branches;
next	;


desc
@@


1.20
log
@remove obsolete XFree86 sources.
@
text
@/*
 * Server Master Makefile
 */
XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.310 2005/02/09 21:46:51 dawes Exp $

/*
 * Copyright (c) 1994-2004 by The XFree86 Project, Inc.
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 *
 *   1.  Redistributions of source code must retain the above copyright
 *       notice, this list of conditions, and the following disclaimer.
 *
 *   2.  Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer
 *       in the documentation and/or other materials provided with the
 *       distribution, and in the same place and form as other copyright,
 *       license and disclaimer information.
 *
 *   3.  The end-user documentation included with the redistribution,
 *       if any, must include the following acknowledgment: "This product
 *       includes software developed by The XFree86 Project, Inc
 *       (http://www.xfree86.org/) and its contributors", in the same
 *       place and form as other third-party acknowledgments.  Alternately,
 *       this acknowledgment may appear in the software itself, in the
 *       same form and location as other such third-party acknowledgments.
 *
 *   4.  Except as contained in this notice, the name of The XFree86
 *       Project, Inc shall not be used in advertising or otherwise to
 *       promote the sale, use or other dealings in this Software without
 *       prior written authorization from The XFree86 Project, Inc.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef InstallXserverSetUID
#define InstallXserverSetUID NO
#endif
#define InstallServerSetUID InstallXserverSetUID

#include <Server.tmpl>

#ifdef XFree86Version
/* Do not strip server binaries */
INSTPGMFLAGS = 
#endif

#define PreFbLibs $(DIX) $(OS) $(XPDDX)
#define TinyPreFbLibs $(TINY_DIX) $(TINY_OS) $(XPDDX)
#define PreFbLibsNoFont $(DIX) $(OS)
#define BarePostFbLibs $(MFB) $(MI)
#define PostFbLibs BarePostFbLibs $(EXTENSIONS)
#define NoMfbBarePostFbLibs $(MI)
#define NoMfbPostFbLibs NoMfbBarePostFbLibs $(EXTENSIONS)

#define MFBBareLibs PreFbLibs BarePostFbLibs
#define NoMFBBareLibs PreFbLibs NoMfbBarePostFbLibs
#define MFBLibs PreFbLibs PostFbLibs
#define NoMFBLibs PreFbLibs NoMfbPostFbLibs
#define CFBLibs PreFbLibs $(CFB) PostFbLibs
#define CFB4Libs PreFbLibs $(CFB4) PostFbLibs
#if BuildLowMem
#define LMFCFBLibs PreFbLibs $(LMFCFB) NoMfbBarePostFbLibs $(EXTENSIONS)
#endif
#define CFB8Libs PreFbLibs $(CFB8) PostFbLibs
#define CFB16Libs PreFbLibs $(CFB16) PostFbLibs
#define CFB24Libs PreFbLibs $(CFB24) PostFbLibs
#define CFB32Libs PreFbLibs $(CFB32) PostFbLibs

#define NoMFBCFBLibs PreFbLibs $(CFB) NoMfbPostFbLibs
#define NoMFBCFB8Libs PreFbLibs $(CFB8) NoMfbPostFbLibs
#define FbPostFbLibs  $(FB) NoMfbPostFbLibs
#define TinyFbPostFbLibs $(FB) $(MI) $(TINY_EXTENSIONS)
#define FBLibs PreFbLibs FbPostFbLibs

#define MiExtLibs $(SHADOW)

#define BareAllFBLibs PreFbLibs $(FB) $(CFB) BarePostFbLibs

#if BuildGlxExt
#if BuildXF86DRI
      DRILIB = GL/dri/ModuleLibraryTargetName(dri)
#else
      DRILIB = 
#endif
#if GlxUseSGISI
      GLXLIB = GL/glx/ModuleLibraryTargetName(glx) \
               GL/sgi-si/ModuleLibraryTargetName(GLcore) \
               $(DRILIB)
#else
#if DoLoadableServer
      GLXLIB = GL/glx/ModuleLibraryTargetName(glx) \
               GL/mesa/GLcore/ModuleLibraryTargetName(GLcore)
#else
      GLXLIB = GL/glx/ModuleLibraryTargetName(glx) \
               GL/mesa/GLcore/ModuleLibraryTargetName(GLcore) \
               $(DRILIB)
#endif
#endif
      GLXDIR = GL
      GLXEXT = $(GLXLIB)
#endif

#if BuildXInputExt
      XINPUTEXT = Xi/LibraryTargetName(xinput)
          XIDIR = Xi
#endif
#if BuildXKB
         XKBEXT = xkb/LibraryTargetName(xkb)
         XKBDIR = xkb
#ifdef XFree86Version
    XF86XKBOBJS = xkb/xf86KillSrv.o xkb/xf86VT.o xkb/xf86Private.o
#endif
#endif
#if BuildLBX
         LBXEXT = lbx/LibraryTargetName(lbx) \
                  $(TOP)/lib/lbxutil/LibraryTargetName(lbxutil)
        LBXDIRS = lbx
#endif
#if BuildDBE
         DBEEXT = dbe/LibraryTargetName(dbe)
#endif
#if BuildDBE || BuildDBElib
         DBEDIR = dbe
#endif
#if BuildRECORD
      RECORDEXT = record/LibraryTargetName(record)
#endif
#if BuildRECORD || BuildRECORDlib
      RECORDDIR = record
#endif
#if BuildXTrap
       XTRAPEXT = XTrap/LibraryTargetName(xtrap)
       XTRAPDIR = XTrap
#endif
#ifdef SiteExtensionLibs
       SITEEXTS = SiteExtensionLibs
#endif
#ifdef SiteExtensionDirs
    SITEEXTDIRS = SiteExtensionDirs
#endif
#if DoLoadableServer && HasDlopen
          LIBDL = DlLibrary
#endif
       LIBREGEX = RegexLibrary

#if BuildXprint
#if XpRasterDDX
XPRASTLIB = Xprint/raster/LibraryTargetName(raster)
#endif
#if XpColorPclDDX
XPPCLLIB = Xprint/pcl/LibraryTargetName(pcl)
#endif
#if XpMonoPclDDX
XPMPCLLIB = Xprint/pcl-mono/LibraryTargetName(pcl)
#endif
#if XpPostScriptDDX
XPPSLIB = Xprint/ps/LibraryTargetName(ps)
#endif

XPDDXLIBS = Xprint/LibraryTargetName(printer) \
	    $(XPRASTLIB) $(XPPCLLIB) $(XPMPCLLIB) $(XPPSLIB)
XPDDXFBLIBS = $(CFB32) $(MFB)
#if !PrintOnlyServer
      XPDDX    = $(XPDDXLIBS)
      XPFBLIBS = $(XPDDXFBLIBS)
#endif
      XPDDXDIR = Xprint
#endif
#if !BuildXprint || PrintOnlyServer
XPFBLIBS = dix/LibraryTargetName(xpstubs)
#endif

#if BuildRender
      RENDERDIR = render
      RENDERLIB = $(RENDERDIR)/LibraryTargetName(render)
#if BuildSeparateTinyDIX
 TINY_RENDERLIB = $(RENDERDIR)/tiny/LibraryTargetName(render)
#else
 TINY_RENDERLIB = $(RENDERLIB)
#endif
#endif
#if BuildRandR
      RANDRDIR = randr
      RANDRLIB = $(RANDRDIR)/LibraryTargetName(randr)
#if BuildSeparateTinyDIX
 TINY_RANDRLIB = $(RANDRDIR)/tiny/LibraryTargetName(randr)
#else
 TINY_RANDRLIB = $(RANDRLIB)
#endif
#endif
       BASEEXTS = Xext/LibraryTargetName(exts)
     STATICEXTS = $(XKBEXT) $(XINPUTEXT) $(LBXEXT) $(SITEEXTS) $(RANDRLIB) \
		  $(RENDERLIB)
        MISCEXT = Xext/LibraryTargetName(ext)
   LOADABLEEXTS = $(MISCEXT) $(DBEEXT) $(RECORDEXT) $(GLXEXT) $(XTRAPEXT)
     EXTENSIONS = $(LOADABLEEXTS) $(STATICEXTS) 

#if BuildSeparateTinyDIX
TINY_STATICEXTS = $(XKBEXT) $(XINPUTEXT) $(LBXEXT) $(SITEEXTS) \
	$(TINY_RANDRLIB) $(TINY_RENDERLIB)
   TINY_MISCEXT = Xext/tiny/LibraryTargetName(ext)
#else
TINY_STATICEXTS = $(STATICEXTS)
   TINY_MISCEXT = $(MISCEXT)
#endif
TINY_LOADABLEEXTS = $(TINY_MISCEXT) $(DBEEXT) $(RECORDEXT) $(GLXEXT) $(XTRAPEXT)
TINY_EXTENSIONS = $(TINY_STATICEXTS) $(TINY_LOADABLEEXTS)

 XPLOADABLEEXTS = $(MISCEXT) $(DBEEXT) $(RECORDEXT) $(XTRAPEXT)
   XPEXTENSIONS = $(XPLOADABLEEXTS) $(STATICEXTS) 

#if DoLoadableServer
 XF86EXTENSIONS = $(BASEEXTS) $(STATICEXTS)
#else
 XF86EXTENSIONS = $(STATICEXTS) $(LOADABLEEXTS)
#endif

  DMXSTATICEXTS = $(XKBEXT) $(XINPUTEXT) $(LBXEXT) $(SITEEXTS) $(RENDERLIB)
DMXLOADABLEEXTS = $(MISCEXT) $(RECORDEXT) $(XTRAPEXT)
  DMXEXTENSIONS = $(DMXLOADABLEEXTS) $(DMXSTATICEXTS) 

        EXTDIRS = Xext $(XKBDIR) $(XIDIR) $(GLXDIR) \
                  $(LBXDIRS) $(DBEDIR) $(RECORDDIR) $(SITEEXTDIRS) \
                  $(RANDRDIR) $(RENDERDIR) $(XTRAPDIR)
#if BuildLBX || GzipFontCompression
           ZLIB = GzipLibrary
#endif
             OS = os/LibraryTargetName(os)
#if BuildSeparateTinyDIX
        TINY_OS = os/tiny/LibraryTargetName(os)
#else
        TINY_OS = $(OS)
#endif
        BSDEMUL = $(DEPXBSDLIB)
#if DoLoadableServer
            MFB = mfb/ModuleLibraryTargetName(mfb)
             FB = fb/ModuleLibraryTargetName(fb)
            CFB = cfb16/ModuleLibraryTargetName(cfb16) \
		  cfb24/ModuleLibraryTargetName(cfb24) \
		  cfb32/ModuleLibraryTargetName(cfb32) \
		  cfb/ModuleLibraryTargetName(cfb)
           CFB8 = cfb/ModuleLibraryTargetName(cfb)
           CFB4 = cfb4/ModuleLibraryTargetName(cfb4) \
		  cfb/ModuleLibraryTargetName(cfb)
          CFB16 = cfb16/ModuleLibraryTargetName(cfb16) \
		  cfb/ModuleLibraryTargetName(cfb)
          CFB24 = cfb24/ModuleLibraryTargetName(cfb24) \
		  cfb/ModuleLibraryTargetName(cfb)
          CFB32 = cfb32/ModuleLibraryTargetName(cfb32) \
		  cfb/ModuleLibraryTargetName(cfb)
         SHADOW = miext/shadow/ModuleLibraryTargetName(shadow)
          LAYER = miext/layer/ModuleLibraryTargetName(layer) 
#else 
            MFB = mfb/LibraryTargetName(mfb)
             FB = fb/LibraryTargetName(fb)
            CFB = cfb16/LibraryTargetName(cfb16) \
		  cfb24/LibraryTargetName(cfb24) \
		  cfb32/LibraryTargetName(cfb32) \
		  cfb/LibraryTargetName(cfb)
           CFB8 = cfb/LibraryTargetName(cfb)
           CFB4 = cfb4/LibraryTargetName(cfb4) \
		  cfb/LibraryTargetName(cfb)
          CFB16 = cfb16/LibraryTargetName(cfb16) \
		  cfb/LibraryTargetName(cfb)
          CFB24 = cfb24/LibraryTargetName(cfb24) \
		  cfb/LibraryTargetName(cfb)
          CFB32 = cfb32/LibraryTargetName(cfb32) \
		  cfb/LibraryTargetName(cfb)
         SHADOW = miext/shadow/LibraryTargetName(shadow)
          LAYER = miext/layer/LibraryTargetName(layer) 
#endif
#if BuildLowMem
         LMFCFB = lmfcfb/LibraryTargetName(cfb)
#endif
             MI = mi/LibraryTargetName(mi)
   MIINITEXTOBJ = mi/miinitext.o
            DIX = dix/LibraryTargetName(dix)
#if BuildSeparateTinyDIX
       TINY_DIX = dix/tiny/LibraryTargetName(dix)
#else
       TINY_DIX = $(DIX)
#endif
#if DoLoadableServer
       FONTBASE = $(FONTLIBSRC)/fontbase.o \
		  $(FONTLIBSRC)/LibraryTargetName(fontbase)
#endif
#if XserverStaticFontLib
           FONT = $(FONTLIBSRC)/LibraryTargetName(Xfont) $(FREETYPE2LIB)
      TINY_FONT = $(FONTLIBSRC)/LibraryTargetName(Xfont)
#else
           FONT = $(LDPRELIB) $(XFONTLIB) $(FREETYPE2LIB)
      TINY_FONT = $(LDPRELIB) $(XFONTLIB)
#endif
       FONTLIBS = $(FONT) $(XPFBLIBS)
  TINY_FONTLIBS = $(TINY_FONT) $(XPFBLIBS)
#if !HasLibUsb
            USB = $(XF86OSSRC)/bsd/libusb/LibraryTargetName(usb)
#else
            USB = UsbHidLib
#endif
#ifdef ServerExtraSysLibs
   EXTRASYSLIBS = ServerExtraSysLibs
#endif
#if HasPam && HasPamMisc
        PAMLIBS = PamLibraries PamMiscLibraries
#endif
#if !(SystemV4 || defined(SGIArchitecture) || UseRgbTxt)
       DBMLIBS = DBMLibrary
#endif
        SYSLIBS = $(ZLIB) MathLibrary Krb5Libraries $(DBMLIBS) $(USB) \
		  $(PAMLIBS) $(XAUTHLIB) $(XDMCPLIB) $(EXTRASYSLIBS)
 NOAUTH_SYSLIBS = $(ZLIB) MathLibrary Krb5Libraries $(DBMLIBS) $(USB) \
		  $(PAMLIBS) $(XDMCPLIB) $(EXTRASYSLIBS)
#if !HasCbrt
           CBRT = mi/LibraryTargetName(cbrt)
#endif
        STDDIRS = include dix os mi $(XPDDXDIR) $(EXTDIRS)
          FBDIR = fb
         MFBDIR = mfb
        CFB4DIR = cfb4
        CFB8DIR = cfb
       CFB16DIR = cfb16
       CFB24DIR = cfb24
       CFB32DIR = cfb32
         AFBDIR = afb
       LAYERDIR = miext/layer
    ROOTLESSDIR = miext/rootless
      SHADOWDIR = miext/shadow

XCOMM
XCOMM This turns off the default rule for compiling .c files because
XCOMM this makefile does not really know how to build it.  This is really
XCOMM just a hack because of the Sun version of make and nfs.
XCOMM
.c.o:

.s.o:

/*  		  Build rule blocks, add one for each server
 *  
 *  If a server needs mfb, its build block should have a line like:
 *  MFBSUBDIR = mfb
 *  Similarly, its build block should have:
 *  CFB4SUBDIR  = cfb4  (if the server needs 4 bit cfb)
 *  CFB8SUBDIR  = cfb   (8 bit cfb)
 *  CFB16SUBDIR = cfb16 (16 bit cfb)
 *  CFB24SUBDIR = cfb24 (24 bit cfb)
 *  CFB32SUBDIR = cfb32 (32 bit cfb)
 *  
 *  If a server does not need all of the above components, simply
 *  omit the relevant lines from the build block.
 *  
 *  If these guidelines are followed, a make at the top of the server
 *  tree should result in each subdirectory being built only once,
 *  even if multiple servers that share subdirectories are being built.
 */

#if BuildLowMem
LMFCFBDIR = lmfcfb
#endif

#if defined(XdecServer) && XdecServer
XCOMM
XCOMM Digital MIPS based WS server (ultrix 4.2 and beyond)
XCOMM
MFBSUBDIR  = mfb
CFB8SUBDIR = cfb
DECWSDDXDIR = hw/dec/ws
#if BuildLowMem
DECDIRS = $(STDDIRS) $(LMFCFBDIR) $(DECWSDDXDIR) $(DEPDIRS)
#else
DECDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(DECWSDDXDIR) $(DEPDIRS)
#endif
DECOBJS = hw/dec/ws/init.o hw/dec/ws/sdepthinit.o
#if BuildLowMem
DECLIBS = hw/dec/ws/LibraryTargetName(dec) LMFCFBLibs
#else
DECLIBS = hw/dec/ws/LibraryTargetName(dec) CFB8Libs
#endif
ServerTarget(Xdec,$(DECDIRS),$(DECOBJS), \
	$(DECLIBS),$(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall Xdec
#endif
#endif /* XdecServer */


#if defined(XdecMultiDepthServer) && XdecMultiDepthServer
XCOMM
XCOMM Digital MIPS based WS server (ultrix 4.2 and beyond)
XCOMM Supports 8, 12, and 24 bit pixmaps
XCOMM
MFBSUBDIR   = mfb
CFB8SUBDIR  = cfb
CFB16SUBDIR = cfb16
CFB24SUBDIR = cfb24
CFB32SUBDIR = cfb32
DECWSDDXDIR  = hw/dec/ws
DECDIRS1 = $(STDDIRS) $(MFBDIR) \
	   $(CFB8DIR) $(CFB16DIR) $(CFB24DIR) $(CFB32DIR) \
	   $(DECWSDDXDIR) $(DEPDIRS)
DECOBJS1 = hw/dec/ws/init.o hw/dec/ws/mdepthinit.o
DECLIBS1 = hw/dec/ws/LibraryTargetName(dec) CFBLibs
ServerTarget(Xdec_md,$(DECDIRS1),$(DECOBJS1), \
	$(DECLIBS1),$(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall Xdec_md
#endif
#endif /* XdecMultiDepthServer */


#if defined(XsunServer) && XsunServer
XCOMM
XCOMM Sun server
XCOMM
MFBSUBDIR  = mfb
CFB8SUBDIR = cfb
SUNDDXDIR = hw/sun
#if DoLoadableServer
SUNOBJS = hw/sun/sunInit.o hw/sun/sunInitExt.o hw/sun/stubs.o
#elif defined(XF86Server) && XF86Server
SUNOBJS = hw/sun/sunInit.o hw/sun/stubs.o
#else
SUNOBJS = hw/sun/sunInit.o
#endif
#if BuildLowMem
SUNDIRS = $(STDDIRS) $(LMFCFBDIR) $(SUNDDXDIR) $(DEPDIRS)
SUNLIBS = hw/sun/LibraryTargetName(sun) LMFCFBLibs
#else
SUNDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(SUNDDXDIR) $(DEPDIRS)
SUNLIBS = hw/sun/LibraryTargetName(sun) CFB8Libs
#endif
SUNSYSLIBS = $(FONTLIBS) $(WIDECHARSYSLIB) $(SYSLIBS)
SetUIDServerTarget(Xsun,$(SUNDIRS),$(SUNOBJS), \
	$(SUNLIBS),$(SUNSYSLIBS))
#if !defined(ServerToInstall) && (!defined(XF86Server) || !XF86Server)
#define ServerToInstall Xsun
#endif
#endif /* XsunServer */


#if defined(Xsun24Server) && Xsun24Server
XCOMM
XCOMM Sun multiple pixmap depth (8, 12, 24) server
XCOMM
MFBSUBDIR = mfb
CFB8SUBDIR = cfb
CFB16SUBDIR = cfb16
CFB24SUBDIR = cfb24
CFB32SUBDIR = cfb32
SUNDDXDIR = hw/sun
SUN24DIRS = $(STDDIRS) $(MFBDIR) \
	    $(CFB8DIR) $(CFB16DIR) $(CFB24DIR) $(CFB32DIR) \
	    $(SUNDDXDIR) $(DEPDIRS)
#if DoLoadableServer
SUN24OBJS = hw/sun/sunInitMulti.o hw/sun/sunInitExt.o hw/sun/stubs.o
#elif defined(XF86Server) && XF86Server
SUN24OBJS = hw/sun/sunInitMulti.o hw/sun/stubs.o
#else
SUN24OBJS = hw/sun/sunInitMulti.o
#endif
SUN24LIBS = hw/sun/LibraryTargetName(sun) CFBLibs
SetUIDServerTarget(Xsun24,$(SUN24DIRS),$(SUN24OBJS), \
	$(SUN24LIBS),$(FONTLIBS) $(SYSLIBS))
#if !defined(ServerToInstall) && (!defined(XF86Server) || !XF86Server)
#define ServerToInstall Xsun24
#endif
#endif /* Xsun24Server */


#if defined(XsunMonoServer) && XsunMonoServer
XCOMM
XCOMM Sun monochrome server
XCOMM
MFBSUBDIR = mfb
SUNDDXDIR = hw/sun
SUNMDIRS = $(STDDIRS) $(MFBDIR) $(SUNDDXDIR) $(DEPDIRS)
#if defined(XF86Server) && XF86Server
SUNMOBJS = hw/sun/sunInitMono.o hw/sun/sunInExMono.o hw/sun/stubs.o
#else
SUNMOBJS = hw/sun/sunInitMono.o hw/sun/sunInExMono.o
#endif
SUNMLIBS = hw/sun/LibraryTargetName(sun) MFBLibs
SetUIDServerTarget(XsunMono,$(SUNMDIRS),$(SUNMOBJS), \
	$(SUNMLIBS),$(FONTLIBS) $(SYSLIBS))
#if !defined(ServerToInstall) && (!defined(XF86Server) || !XF86Server)
#define ServerToInstall XsunMono
#endif
#endif /* XsunMonoServer */


#if defined(XsunLynxServer) && XsunLynxServer
XCOMM
XCOMM Sun server for LynxOS microSPARC 2.4.0
XCOMM
MFBSUBDIR = mfb
CFB8SUBDIR = cfb
LYNXDDXDIR = hw/sunLynx
SUNDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(LYNXDDXDIR) $(DEPDIRS)
SUNOBJS = hw/sunLynx/sunLyInit.o
SUNLIBS = hw/sunLynx/libsun.a CFB8Libs
ServerTarget(Xsun,$(SUNDIRS),$(SUNOBJS), \
	$(SUNLIBS),$(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall Xsun
#endif
#endif /* XsunLynxServer */


#if defined(XsunLynxMonoServer) && XsunLynxMonoServer
XCOMM
XCOMM Sun monochrome server for LynxOS microSPARC 2.4.0
XCOMM
MFBSUBDIR = mfb
LYNXDDXDIR = hw/sunLynx
SUNMDIRS = $(STDDIRS) $(MFBDIR) $(LYNXDDXDIR) $(DEPDIRS)
SUNMOBJS = hw/sunLynx/sunInitMono.o hw/sunLynx/sunInExMono.o
SUNMLIBS = hw/sunLynx/libsun.a MFBBareLibs $(OTHEREXTS)
ServerTarget(XsunMono,$(SUNMDIRS),$(SUNMOBJS), \
	$(SUNMLIBS),$(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall XsunMono
#endif
#endif /* XsunLynxMonoServer */


#if HasParallelMake
XCOMM
XCOMM force non-parallel build of XF86 servers to prevent MUTEX overrides
XCOMM
#if defined(XF86Server) && XF86Server
XF86SERVER = XFree86
#endif
#if defined(XnestServer) && XnestServer
XNEST = Xnest
#endif
#if defined(XVirtualFramebufferServer) && XVirtualFramebufferServer
XVFB = Xvfb
#endif
#if defined(XdmxServer) && XdmxServer
XDMX = Xdmx
#endif
#if defined(XWinServer) && XWinServer && !MakeDllModules
XWIN = XWin
#endif
#if (defined(XF86Server) && XF86Server) || \
    (defined(XnestServer) && XnestServer) || \
    (defined(XVirtualFramebufferServer) && XVirtualFramebufferServer) || \
    (defined(XdmxServer) && XdmxServer) || \
    (!MakeDllModules && defined(XWinServer) && XWinServer)
MakeMutex($(XF86SERVER) $(XNEST) $(XVFB) $(XDMX) $(XWIN))
#endif
MakeMutex($(STDDIRS) mfb fb cfb cfb16 cfb24 cfb32)
#endif


#if defined(XF86Server) && XF86Server
XCOMM
XCOMM XFree86 Server
XCOMM
FBSUBDIR = fb
MFBSUBDIR  = mfb
CFB8SUBDIR = cfb
CFB16SUBDIR = cfb16
CFB24SUBDIR = cfb24
CFB32SUBDIR = cfb32
#ifdef OS2Architecture
SERVERDEFFILE = XFree86.def
XNESTDEFFILE = Xnest.def
XVFBDEFFILE = Xvfb.def
XDMXDEFFILE = Xdmx.def
#endif
#if XF86AFB
AFBSUBDIR = afb
#endif
XFREE86DDXDIR  = hw/xfree86
XF86SERVERSUBDIRS = $(STDDIRS) $(MFBDIR) $(FBDIR) $(AFBDIR) \
		    $(CFB8DIR) $(CFB16DIR) $(CFB24DIR) $(CFB32DIR) \
		    $(SHADOWDIR) $(LAYERDIR) $(XFREE86DDXDIR) $(DEPDIRS)
XF86INIT   = $(XF86COMSRC)/xf86Init.o $(XF86COMSRC)/xf86IniExt.o
XF86COMLIB = $(XF86COMSRC)/LibraryTargetName(xf86)
XF86PARSLIB= $(XF86PARSERSRC)/LibraryTargetName(xf86config)
XF86OSLIB  = $(XF86OSSRC)/LibraryTargetName(xf86_os)
#if XF86XAA
XF86XAALIB = $(XF86SRC)/xaa/LibraryTargetName(xaa)
#endif
#if XF86VgaHw
XF86VGAHWLIB = $(XF86SRC)/vgahw/LibraryTargetName(vgahw)
#endif
#if XF86FBDevHw
XF86FBDEVHWLIB = $(XF86SRC)/fbdevhw/LibraryTargetName(fbdevhw)
#endif
#if XF1Bpp || XF4Bpp
XF1BPPLIB = $(XF86SRC)/xf1bpp/LibraryTargetName(xf1bpp)
#endif
#if XF4Bpp
XF4BPPLIB = $(XF86SRC)/xf4bpp/LibraryTargetName(xf4bpp)
#endif
#if XF8_32Wid
XF8_32WIDLIB = $(XF86SRC)/xf8_32wid/LibraryTargetName(xf8_32wid)
#endif
#if XF8_32Bpp
XF8_32BPPLIB = $(XF86SRC)/xf8_32bpp/LibraryTargetName(xf8_32bpp)
#endif
#if XF8_16Bpp
XF8_16BPPLIB = $(XF86SRC)/xf8_16bpp/LibraryTargetName(xf8_16bpp)
#endif
#if XF24_32Bpp
XF24_32BPPLIB = $(XF86SRC)/xf24_32bpp/LibraryTargetName(xf24_32bpp)
#endif
#if XFShadowFB
XFSHADOWFBLIB = $(XF86SRC)/shadowfb/LibraryTargetName(shadowfb)
#endif
#if XF86AFB
AFBLIB = afb/LibraryTargetName(afb)
#endif
XF86DRIVERLIB = $(XF86SRC)/drivers/LibraryTargetName(driver)
#if XF86Ramdac
XF86RAMDACLIB = $(XF86SRC)/ramdac/LibraryTargetName(ramdac)
#endif
#if XF86I2C
XF86I2CLIB = $(XF86SRC)/i2c/LibraryTargetName(i2c)
#endif
#if XF86DDC
XF86DDCLIB = $(XF86SRC)/ddc/LibraryTargetName(ddc)
#endif
#if XF86VBE
XF86VBELIB = $(XF86SRC)/vbe/LibraryTargetName(vbe)
#endif
#if XF86RAC
XF86RACLIB = $(XF86SRC)/rac/LibraryTargetName(rac)
#endif
#if XF86INT10_BUILD > X86EMU_GENERIC
XF86INT10LIB = $(XF86OSSRC)/LibraryTargetName(int10)
#else
XF86INT10LIB = $(XF86SRC)/int10/LibraryTargetName(int10)
#endif
#if UseMemLeak
MEMDEBUGLIB = $(TOP)/util/memleak/LibraryTargetName(memleak)
#endif
XF86IDRIVERLIB = $(XF86SRC)/input/LibraryTargetName(idriver)
#if !DoLoadableServer
XF86DRVOBJS = $(XF86SRC)/drivers/drvConf.o
XF86DRVLIBS = $(XF86DRIVERLIB) $(XF86RAMDACLIB) $(XF86DDCLIB) $(XF86I2CLIB) \
              $(XF86XAALIB) $(XF86VGAHWLIB) $(XF86FBDEVHWLIB) \
	      $(XF8_32WIDLIB) $(XF8_32BPPLIB) \
	      $(XF8_16BPPLIB) $(XF24_32BPPLIB) \
	      $(XF4BPPLIB) $(XF1BPPLIB) $(XFSHADOWFBLIB) $(AFBLIB)
XF86IDRVOBJS = $(XF86SRC)/input/drvConf.o
XF86IDRVLIBS = $(XF86IDRIVERLIB)
XF86SCANLIB = $(XF86SRC)/scanpci/LibraryTargetName(scanpci)
XF86LIBS  = $(MEMDEBUGLIB) $(XF86INIT) $(XF86COMLIB) $(XF86RACLIB) \
	    $(XF86PARSLIB) $(XF86VBELIB) $(XF86OSLIB) $(XF86INT10LIB) 
#else
XF86LIBS  = $(MEMDEBUGLIB) $(XF86INIT) $(XF86COMLIB) \
	    $(XF86PARSLIB) $(XF86OSLIB) 
#endif
#if DoLoadableServer
XF86LOADERLIB = $(XF86SRC)/loader/LibraryTargetName(loader)
XF86MAINLIBS = PreFbLibsNoFont \
	       $(FONTBASE) $(XF86COMLIB) \
	       NoMfbBarePostFbLibs $(XF86EXTENSIONS)
XF86SERVERSYSLIBS = $(XPFBLIBS) $(SYSLIBS) $(LIBDL) $(LIBREGEX)
XF86SERVERLIBS = $(XF86DRVLIBS) $(XF86IDRVLIBS) $(XF86LIBS) $(XF86LOADERLIB) \
		 $(XF86COMLIB) $(XF86MAINLIBS) $(XF86SCANLIB) $(XF86OSLIB)
#else
XF86MAINLIBS = MiExtLibs BareAllFBLibs $(XF86EXTENSIONS) $(XF86COMLIB) $(MI)
XF86SERVERSYSLIBS = $(FONTLIBS) $(SYSLIBS) $(LIBDL) $(LIBREGEX)
XF86SERVERLIBS = $(XF86DRVLIBS) $(XF86IDRVLIBS) $(XF86LIBS) $(XF86LOADERLIB) \
		 $(XF86COMLIB) $(XF86MAINLIBS) $(XF86SCANLIB) $(XF86OSLIB) \
		 $(XF86DDCLIB)
#endif
XF86SERVEROBJS = $(XF86XKBOBJS) $(XF86DRVOBJS) $(XF86IDRVOBJS)
#if HasParallelMake
MakeMutex($(XF86SERVERSUBDIRS) $(XF86SERVERLIBS) $(XF86SERVERSYSLIBS))
#endif
#if ForceServerRemake
$(XF86SERVERLIBS) $(XF86SERVERSYSLIBS):: $(XF86SERVERSUBDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
SetUIDServerTarget(XFree86,$(XF86SERVERSUBDIRS),$(XF86SERVEROBJS) $(SERVERDEFFILE), \
	$(XF86SERVERLIBS),$(XF86SERVERSYSLIBS))
#if DoLoadableServer
ServerDriverSDKTarget(XFree86)
#endif
#ifndef ServerToInstall
#define ServerToInstall XFree86
#endif
#endif        /* XF86Server */

#if defined(XalphaNetBSDServer) && XalphaNetBSDServer
XCOMM
XCOMM NetBSD/Alpha server
XCOMM
MFBSUBDIR   = mfb
CFB8SUBDIR  = cfb
CFB32SUBDIR = cfb32
ANBDDXDIR  = hw/netbsd/alpha
ANBDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB32DIR) $(ANBDDXDIR) $(DEPDIRS)
ANBOBJS = hw/netbsd/alpha/alphaInit.o hw/netbsd/alpha/stubs.o
ANBLIBS = hw/netbsd/alpha/tga/libalphaTga.a hw/netbsd/alpha/sfb/libalphaSfb.a \
	  hw/netbsd/alpha/libalpha.a CFB32Libs CFB8Libs
SetUIDServerTarget(XalphaNetBSD,$(ANBDIRS),$(ANBOBJS), \
	$(LIBCWAPPER) $(ANBLIBS), \
	$(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall XalphaNetBSD
#endif
#endif /* XalphaNetBSDServer */

#if defined(XdecNetBSDServer) && XdecNetBSDServer
XCOMM
XCOMM NetBSD/alpha and NetBSD/pmax server
XCOMM
MFBSUBDIR   = mfb
CFB8SUBDIR  = cfb
CFB32SUBDIR = cfb32
DNBDDXDIR  = hw/netbsd/dec
DNBDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB32DIR) $(DNBDDXDIR) $(DEPDIRS)
DNBOBJS = hw/netbsd/dec/decInit.o hw/netbsd/dec/stubs.o
DNBLIBS = hw/netbsd/dec/sfb/libdecSfb.a hw/netbsd/dec/px/libdecPX.a \
	  hw/netbsd/dec/cfb/libdecCfb.a hw/netbsd/dec/mfb/libdecMfb.a
#if defined(AlphaArchitecture)
DNBLIBS += hw/netbsd/dec/tga/libdecTga.a
#endif
DNBLIBS += hw/netbsd/dec/libdec.a CFB32Libs CFB8Libs
SetUIDServerTarget(XdecNetBSD,$(DNBDIRS),$(DNBOBJS), \
	$(LIBCWAPPER) $(DNBLIBS), \
	$(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall XdecNetBSD
#endif
#endif /* XdecNetBSDServer */

#if defined(XdreamcastServer) && XdreamcastServer
XCOMM
XCOMM NetBSD/dreamcast server
XCOMM
MFBSUBDIR  = mfb
CFB8SUBDIR = cfb
CFB16SUBDIR = cfb16
DREAMCASTDDXDIR = hw/netbsd/dreamcast
DREAMCASTDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB16DIR) \
		$(DREAMCASTDDXDIR) $(DEPDIRS)
DREAMCASTLIBS = hw/netbsd/dreamcast/libdreamcast.a CFB8Libs CFB16Libs
SetUIDServerTarget(Xdreamcast,$(DREAMCASTDIRS),$(DREAMCASTOBJS), \
	$(DREAMCASTLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER), \
	$(DREAMCASTLIBS) $(LOADABLEEXTS) $(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall Xdreamcast
#endif
#endif /* XdreamcastServer */

#if defined(Xews4800mipsServer) && Xews4800mipsServer
XCOMM
XCOMM NetBSD/ews4800mips server
XCOMM
MFBSUBDIR  = mfb
CFB8SUBDIR = cfb
EWS4800MIPSDDXDIR = hw/netbsd/ews4800mips
EWS4800MIPSDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) \
		  $(EWS4800MIPSDDXDIR) $(DEPDIRS)
EWS4800MIPSLIBS = hw/netbsd/ews4800mips/libdreamcast.a CFB8Libs
SetUIDServerTarget(Xews4800mips,$(EWS4800MIPSDIRS),$(EWS4800MIPSOBJS), \
	$(EWS4800MIPSLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER), \
	$(EWS4800MIPSLIBS) $(LOADABLEEXTS) $(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall Xews4800mips
#endif
#endif /* Xews4800mipsServer */

#if defined(XhpcServer) && XhpcServer
XCOMM
XCOMM NetBSD/hpcmips server
XCOMM
MFBSUBDIR  = mfb
CFB8SUBDIR = cfb
CFB16SUBDIR = cfb16
HPCDDXDIR = hw/netbsd/hpc
HPCDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB16DIR) $(HPCDDXDIR) $(DEPDIRS)
HPCLIBS = hw/netbsd/hpc/libhpc.a CFB8Libs CFB16Libs
SetUIDServerTarget(Xhpc,$(HPCDIRS),$(HPCOBJS), \
	$(HPCLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER), \
	$(HPCLIBS) $(LOADABLEEXTS) $(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall Xhpc
#endif
#endif /* XhpcServer */

#if defined(XmacppcServer) && XmacppcServer
XCOMM
XCOMM NetBSD/macppc server
XCOMM
MFBSUBDIR   = mfb
CFB8SUBDIR  = cfb
MACPPCDDXDIR  = hw/netbsd/macppc
MACPPCDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(MACPPCDDXDIR) $(DEPDIRS)
MACPPCOBJS = hw/netbsd/macppc/macppcInit.o
MACPPCLIBS = hw/netbsd/macppc/libmacppc.a CFB8Libs
ServerTarget(Xmacppc,$(MACPPCDIRS),$(MACPPCOBJS), \
	$(MACPPCLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER), \
	$(MACPPCLIBS) $(LOADABLEEXTS) $(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall Xmacppc
#endif
#endif /* XmacppcServer */

#if defined(X68kServer) && X68kServer
XCOMM
XCOMM NetBSD/x68k server
XCOMM
MFBSUBDIR   = mfb
CFB8SUBDIR  = cfb
CFB16SUBDIR = cfb16
X68DDXDIR = hw/netbsd/x68k
X68DIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB16DIR) $(X68DDXDIR) $(DEPDIRS)
X68OBJS = hw/netbsd/x68k/x68kInit.o
X68LIBS = hw/netbsd/x68k/libx68k.a CFB16Libs CFB8Libs $(OTHEREXTS)
SetUIDServerTarget(X68k,$(X68DIRS),$(X68OBJS),$(X68LIBS),$(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall X68k
#endif
#endif /* X68kServer */


#if defined(TinyXServer) && TinyXServer
XCOMM
XCOMM Tiny X server section
XCOMM

      TINYXDIR = hw/tinyx
#if HasTsLib
    TINYXTSLIB = -lts
#endif
#ifdef LinuxArchitecture
    TINYXOSDIR = $(TINYXDIR)/linux
      TINYXOS = $(TINYXOSDIR)/LibraryTargetName(linux) $(TINYXTSLIB)
#endif

#ifdef VXWORKS
    TINYXOSDIR = $(TINYXDIR)/vxworks
       TINYXOS = $(TINYXOSDIR)/LibraryTargetName(vxworks)
#endif

      FBSUBDIR = fb
         TINYX = $(TINYXDIR)/LibraryTargetName(tinyx)
    TINYXFBDEV = $(TINYXDIR)/fbdev/LibraryTargetName(fbdev)


#define StdTinyxDirs $(TINYXDIR) $(TINYXOSDIR) $(DEPDIRS)
#define StdTinyxSysLibs $(TINY_FONTLIBS) $(SYSLIBS)
#define TinyxLibs $(TINYX) $(TINYXOS) MiExtLibs
#define TinyxObjs $(TINYXDIR)/miinitext.o $(TINYXDIR)/register.o $(TINYXDIR)/ffcheck.o $(TINYXDIR)/stubs.o os/tiny/lbxio.o

#if defined(XfbdevServer) && XfbdevServer
XCOMM
XCOMM server with TinyX fbdev driver only
XCOMM

    FBDEVDIR = $(TINYXDIR)/fbdev
       FBDEV = $(FBDEVDIR)/LibraryTargetName(fbdev)
       
   TINYXDIRS = StdTinyxDirs

   FBDEVDIRS = $(STDDIRS) $(TINYXDIRS) $(FBDEVDIR) $(SHADOWDIR) $(LAYERDIR)
   
   FBDEVLIBS = TinyPreFbLibs $(FBDEV) $(LAYER) TinyxLibs TinyFbPostFbLibs
   FBDEVOBJS = TinyxObjs
FBDEVSYSLIBS = StdTinyxSysLibs

#if HasParallelMake
MakeMutex($(FBDEVDIRS) $(FBDEVOBJS) $(FBDEVLIBS) $(FBDEVSYSLIBS))
#endif
#if ForceServerRemake
$(FBDEVOBJS) $(XFBDEV) $(FBDEVLIBS) $(FBDEVSYSLIBS):: $(FBDEVDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xfbdev,$(FBDEVDIRS),$(FBDEVOBJS), \
	$(FBDEVLIBS),$(FBDEVSYSLIBS))
#endif /* XfbdevServer */

#if defined(XSavageServer) && XSavageServer
XCOMM
XCOMM server with TinyX S3 Savage driver
XCOMM

    SAVAGEDIR = $(TINYXDIR)/savage
       SAVAGE = $(SAVAGEDIR)/LibraryTargetName(savage)
    
    TINYXDIRS = StdTinyxDirs
   
   SAVAGEDIRS = $(STDDIRS) $(TINYXDIRS) $(SAVAGEDIR)
   
   SAVAGEOBJS = TinyxObjs
   SAVAGELIBS = TinyPreFbLibs $(SAVAGE) TinyxLibs TinyFbPostFbLibs
SAVAGESYSLIBS = StdTinyxSysLibs

#if HasParallelMake
MakeMutex($(SAVAGEDIRS) $(SAVAGEOBJS) $(SAVAGELIBS) $(SAVAGESYSLIBS))
#endif
#if ForceServerRemake
$(SAVAGEOBJS) $(XSAVAGE) $(SAVAGELIBS) $(SAVAGESYSLIBS):: $(SAVAGEDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xsavage,$(SAVAGEDIRS),$(SAVAGEOBJS), \
	$(SAVAGELIBS),$(SAVAGESYSLIBS))
#endif /* XSavageServer */

#if defined(XIgsServer) && XIgsServer
XCOMM
XCOMM server with TinyX S3 Igs driver
XCOMM

       IGSDIR = $(TINYXDIR)/igs
          IGS = $(IGSDIR)/LibraryTargetName(igs)
    
    TINYXDIRS = StdTinyxDirs
   
      IGSDIRS = $(STDDIRS) $(TINYXDIRS) $(IGSDIR)
   
      IGSOBJS = TinyxObjs
      IGSLIBS = TinyPreFbLibs $(IGS) TinyxLibs TinyFbPostFbLibs
   IGSSYSLIBS = StdTinyxSysLibs

#if HasParallelMake
MakeMutex($(IGSDIRS) $(IGSOBJS) $(IGSLIBS) $(IGSSYSLIBS))
#endif
#if ForceServerRemake
$(IGSOBJS) $(XIGS) $(IGSLIBS) $(IGSSYSLIBS):: $(IGSDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xigs,$(IGSDIRS),$(IGSOBJS), \
	$(IGSLIBS),$(IGSSYSLIBS))
#endif /* XIgsServer */

#if defined(XTridentServer) && XTridentServer
XCOMM
XCOMM server with TinyX TRIDENT Cyber9525 driver
XCOMM

      FBDEVDIR = $(TINYXDIR)/fbdev
         FBDEV = $(FBDEVDIR)/LibraryTargetName(fbdev)
       VESADIR = $(TINYXDIR)/vesa
          VESA = $(VESADIR)/LibraryTargetName(vesa)
    TRIDENTDIR = $(TINYXDIR)/trident
       TRIDENT = $(TRIDENTDIR)/LibraryTargetName(trident)

     TINYXDIRS = StdTinyxDirs
  
   TRIDENTDIRS = $(STDDIRS) $(TINYXDIRS) \
		 $(FBDEVDIR) $(VESADIR) $(SHADOWDIR) $(LAYERDIR) $(TRIDENTDIR)
   
   TRIDENTOBJS = TinyxObjs
   TRIDENTLIBS = TinyPreFbLibs $(TRIDENT) $(FBDEV) $(VESA) $(LAYER) \
		 TinyxLibs TinyFbPostFbLibs
TRIDENTSYSLIBS = StdTinyxSysLibs

#if HasParallelMake
MakeMutex($(TRIDENTDIRS) $(TRIDENTLIBS) $(TRIDENTSYSLIBS))
#endif
#if ForceServerRemake
$(TRIDENTOBJS) $(TRIDENTLIBS) $(TRIDENTSYSLIBS):: $(TRIDENTDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xtrident,$(TRIDENTDIRS),$(TRIDENTOBJS), \
	$(TRIDENTLIBS),$(TRIDENTSYSLIBS))
#endif /* XTridentServer */

#if defined(XchipsServer) && XchipsServer
XCOMM
XCOMM server with TinyX C&T driver
XCOMM

       VESADIR = $(TINYXDIR)/vesa
          VESA = $(VESADIR)/LibraryTargetName(vesa)
      CHIPSDIR = $(TINYXDIR)/chips
         CHIPS = $(CHIPSDIR)/LibraryTargetName(chips)

     TINYXDIRS = StdTinyxDirs
  
   CHIPSDIRS = $(STDDIRS) $(TINYXDIRS) \
		 $(FBDEVDIR) $(VESADIR) $(SHADOWDIR) $(LAYERDIR) $(CHIPSDIR)
   
   CHIPSOBJS = TinyxObjs
   CHIPSLIBS = TinyPreFbLibs $(CHIPS) $(VESA) $(LAYER) TinyxLibs TinyFbPostFbLibs
CHIPSSYSLIBS = StdTinyxSysLibs

#if HasParallelMake
MakeMutex($(CHIPSDIRS) $(CHIPSLIBS) $(CHIPSSYSLIBS))
#endif
#if ForceServerRemake
$(CHIPSOBJS) $(CHIPSLIBS) $(CHIPSSYSLIBS):: $(CHIPSDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xchips,$(CHIPSDIRS),$(CHIPSOBJS), \
	$(CHIPSLIBS),$(CHIPSSYSLIBS))
#endif /* XchipsServer */

#if defined(Xmach64Server) && Xmach64Server
XCOMM
XCOMM server with TinyX Mach64 driver (for Mobility 1 machines)
XCOMM

       VESADIR = $(TINYXDIR)/vesa
          VESA = $(VESADIR)/LibraryTargetName(vesa)
     MACH64DIR = $(TINYXDIR)/mach64
        MACH64 = $(MACH64DIR)/LibraryTargetName(mach64)

     TINYXDIRS = StdTinyxDirs
  
   MACH64DIRS = $(STDDIRS) $(TINYXDIRS) \
		 $(VESADIR) $(SHADOWDIR) $(LAYERDIR) $(MACH64DIR)
   
   MACH64OBJS = TinyxObjs
   MACH64LIBS = TinyPreFbLibs $(MACH64) $(VESA) $(LAYER) TinyxLibs TinyFbPostFbLibs
MACH64SYSLIBS = StdTinyxSysLibs

#if HasParallelMake
MakeMutex($(MACH64DIRS) $(MACH64LIBS) $(MACH64SYSLIBS))
#endif
#if ForceServerRemake
$(MACH64OBJS) $(MACH64LIBS) $(MACH64SYSLIBS):: $(MACH64DIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xmach64,$(MACH64DIRS),$(MACH64OBJS), \
	$(MACH64LIBS),$(MACH64SYSLIBS))
#endif /* Xmach64Server */

#if defined(Xi810Server) && Xi810Server
XCOMM
XCOMM server with Intel i810 driver
XCOMM

      FBDEVDIR = $(TINYXDIR)/fbdev
         FBDEV = $(FBDEVDIR)/LibraryTargetName(fbdev)
       VESADIR = $(TINYXDIR)/vesa
          VESA = $(VESADIR)/LibraryTargetName(vesa)
       I810DIR = $(TINYXDIR)/i810
          I810 = $(I810DIR)/LibraryTargetName(i810)

     TINYXDIRS = StdTinyxDirs
  
      I810DIRS = $(STDDIRS) $(TINYXDIRS) $(SHADOWDIR) $(I810DIR)
   
     I810OBJS = TinyxObjs
      I810LIBS = TinyPreFbLibs $(I810) TinyxLibs TinyFbPostFbLibs
   I810SYSLIBS = StdTinyxSysLibs

#if HasParallelMake
MakeMutex($(I810DIRS) $(I810LIBS) $(I810SYSLIBS))
#endif
#if ForceServerRemake
$(I810OBJS) $(I810LIBS) $(I810SYSLIBS):: $(I810DIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xi810,$(I810DIRS),$(I810OBJS), \
	$(I810LIBS),$(I810SYSLIBS))
#endif /* Xi810Server */


#if defined(XSis530Server) && XSis530Server
XCOMM
XCOMM server with TinyX SiS 530 driver
XCOMM

    SIS530DIR = $(TINYXDIR)/sis530
       SIS530 = $(SIS530DIR)/LibraryTargetName(sis530)

    TINYXDIRS = StdTinyxDirs

   SIS530DIRS = $(STDDIRS) $(TINYXDIRS) $(SIS530DIR)
   
   SIS530OBJS = TinyxObjs
   SIS530LIBS = TinyPreFbLibs $(SIS530) TinyxLibs TinyFbPostFbLibs
SIS530SYSLIBS = StdTinyxSysLibs

#if HasParallelMake
MakeMutex($(SIS530DIRS) $(SIS530OBJS) $(SIS530LIBS) $(SIS530SYSLIBS))
#endif
#if ForceServerRemake
$(SIS530OBJS) $(SIS530LIBS) $(SIS530SYSLIBS):: $(SIS530DIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xsis530,$(SIS530DIRS),$(SIS530OBJS), \
	$(SIS530LIBS),$(SIS530SYSLIBS))
#endif /* XSis530Server */

#if defined(XTrioServer) && XTrioServer
XCOMM
XCOMM server with TinyX S3 Trio driver
XCOMM

    TRIODIR = $(TINYXDIR)/trio
       TRIO = $(TRIODIR)/LibraryTargetName(trio)

  TINYXDIRS = StdTinyxDirs

   TRIODIRS = $(STDDIRS) $(TINYXDIRS) $(TRIODIR)
   
   TRIOOBJS = TinyxObjs
   TRIOLIBS = TinyPreFbLibs $(TRIO) TinyxLibs TinyFbPostFbLibs
TRIOSYSLIBS = StdTinyxSysLibs

#if HasParallelMake
MakeMutex($(TRIODIRS) $(TRIOOBJS) $(TRIOLIBS) $(TRIOSYSLIBS))
#endif
#if ForceServerRemake
$(TRIOOBJS) $(TRIOLIBS) $(TRIOSYSLIBS):: $(TRIODIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xtrio,$(TRIODIRS),$(TRIOOBJS), \
	$(TRIOLIBS),$(TRIOSYSLIBS))
#endif /* XTrioServer */

#if defined(XipaqServer) && XipaqServer
XCOMM
XCOMM server with Alan's HP VGA Out PCMCIA driver & fbdev
XCOMM

     FBDEVDIR = $(TINYXDIR)/fbdev
        FBDEV = $(FBDEVDIR)/LibraryTargetName(fbdev)

    PCMCIADIR = $(TINYXDIR)/pcmcia
       PCMCIA = $(PCMCIADIR)/LibraryTargetName(pcmcia)

      IPAQDIR = $(TINYXDIR)/ipaq
         IPAQ = $(IPAQDIR)/LibraryTargetName(ipaq)

    TINYXDIRS = StdTinyxDirs
     
     IPAQDIRS = $(STDDIRS) $(TINYXDIRS) $(FBDEVDIR) $(LAYERDIR) $(SHADOWDIR) $(PCMCIADIR) $(IPAQDIR)
    
     IPAQOBJS = TinyxObjs
     IPAQLIBS = TinyPreFbLibs $(IPAQ) $(FBDEV) $(LAYER) $(SHADOW) \
		$(PCMCIA) TinyxLibs TinyFbPostFbLibs
  IPAQSYSLIBS = StdTinyxSysLibs
    
#if HasParallelMake
MakeMutex($(IPAQDIRS) $(IPAQOBJS) $(IPAQLIBS) $(IPAQSYSLIBS))
#endif
#if ForceServerRemake
$(IPAQOBJS) $(IPAQLIBS) $(IPAQSYSLIBS):: $(IPAQDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xipaq,$(IPAQDIRS),$(IPAQOBJS), \
	$(IPAQLIBS),$(IPAQSYSLIBS))
#endif /* XIPAQServer */

#if defined(XTS300Server) && XTS300Server
XCOMM
XCOMM server with TinyX S3 Trio and SiS530 driver for the TS300/TS400
XCOMM

      TRIODIR = $(TINYXDIR)/trio
         TRIO = $(TRIODIR)/LibraryTargetName(trio)
	 
    SIS530DIR = $(TINYXDIR)/sis530
       SIS530 = $(SIS530DIR)/LibraryTargetName(sis530)

     TS300DIR = $(TINYXDIR)/ts300
        TS300 = $(TS300DIR)/LibraryTargetName(ts300)

    TINYXDIRS = StdTinyxDirs
     
    TS300DIRS = $(STDDIRS) $(TINYXDIRS) $(TRIODIR) $(SIS530DIR) $(TS300DIR)
    
    TS300OBJS = TinyxObjs
    TS300LIBS = TinyPreFbLibs $(TS300) $(TRIO) $(SIS530) TinyxLibs TinyFbPostFbLibs
 TS300SYSLIBS = StdTinyxSysLibs
    
#if HasParallelMake
MakeMutex($(TS300DIRS) $(TS300OBJS) $(TS300LIBS) $(TS300SYSLIBS))
#endif
#if ForceServerRemake
$(TS300OBJS) $(TS300LIBS) $(TS300SYSLIBS):: $(TS300DIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xts300,$(TS300DIRS),$(TS300OBJS), \
	$(TS300LIBS),$(TS300SYSLIBS))
#endif /* XTS300Server */

#if defined(XItsyServer) && XItsyServer
XCOMM
XCOMM server with TinyX FB driver only
XCOMM
    ITSYDIR = $(TINYXDIR)/itsy
       ITSY = $(ITSYDIR)/LibraryTargetName(itsy)

  TINYXDIRS = StdTinyxDirs

   ITSYDIRS = $(STDDIRS) $(TINYXDIRS) $(ITSYDIR)
   
   ITSYOBJS = TinyxObjs
   ITSYLIBS = TinyPreFbLibs $(ITSY) TinyxLibs TinyFbPostFbLibs
ITSYSYSLIBS = StdTinyxSysLibs
   
#if HasParallelMake
MakeMutex($(ITSYDIRS) $(ITSYOBJS) $(ITSYLIBS) $(ITSYSYSLIBS))
#endif
#if ForceServerRemake
$(ITSYOBJS) $(ITSYLIBS) $(ITSYSYSLIBS):: $(ITSYDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xitsy,$(ITSYDIRS),$(ITSYOBJS), \
	$(ITSYLIBS),$(ITSYSYSLIBS))
#endif /* XItsyServer */

#if defined(XvesaServer) && XvesaServer
XCOMM
XCOMM server with vesa driver only based on TinyX server
XCOMM

    VESADIR = $(TINYXDIR)/vesa
       VESA = $(VESADIR)/LibraryTargetName(vesa)

   TINYXDIRS = StdTinyxDirs

    VESADIRS = $(STDDIRS) $(TINYXDIRS) $(VESADIR) $(SHADOWDIR) $(LAYERDIR)

   VESAOBJS = TinyxObjs
   VESALIBS = TinyPreFbLibs $(VESA) $(LAYER) TinyxLibs TinyFbPostFbLibs
VESASYSLIBS = StdTinyxSysLibs

#if HasParallelMake
MakeMutex($(VESADIRS) $(VESAOBJS) $(VESALIBS) $(VESASYSLIBS))
#endif
#if ForceServerRemake
$(VESAOBJS) $(XVESA) $(VESALIBS) $(VESASYSLIBS):: $(VESADIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xvesa,$(VESADIRS),$(VESAOBJS), \
	$(VESALIBS),$(VESASYSLIBS))
#endif /* XvesaServer */

TINYXSUBDIRS=$(TINYXDIRS) $(FBDEVDIR) $(SAVAGEDIR) $(TRIDENTDIR) $(I810DIR) \
	   $(SIS530DIR) $(TRIODIR) $(TS300DIR) $(ITSYDIR) $(IGSDIR) \
	   $(VESADIR) $(PCMCIADIR) $(IPAQDIR) $(MACH64DIR) $(CHIPSDIR)
#endif	/* TinyXServer */

#if defined(XprtServer) && XprtServer
XCOMM
XCOMM Print Server
XCOMM
MFBSUBDIR  = mfb
CFB8SUBDIR = cfb
CFB32SUBDIR = cfb32
XPSUBDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB32DIR) $(DEPDIRS)
#if PrintOnlyServer
#if BuildDPMS
XPDPMSSTUBOBJS = Xprint/dpmsstubs.o
#endif
XPOBJS = Xprint/ddxInit.o Xprint/miinitext.o $(XPDPMSSTUBOBJS)
XPLIBS = PreFbLibs $(XPDDXLIBS) $(XPDDXFBLIBS) $(MI) $(XPEXTENSIONS)
#else
XPOBJS = Xprint/ddxInit.o
XPLIBS = PreFbLibs $(XPFBLIBS) BarePostFbLibs $(XPEXTENSIONS)
#endif
#if (defined(SunArchitecture) || defined(SparcArchitecture)) && \
    defined(SVR4Architecture)
XPSYSLIBS = $(FONT) $(CBRT) $(SYSLIBS) -lw
#else
XPSYSLIBS = $(FONT) $(CBRT) $(SYSLIBS)
#endif
#if HasParallelMake
MakeMutex($(XPSUBDIRS) $(XPOBJS) $(XPLIBS) $(XPSYSLIBS))
#endif
#if ForceServerRemake
$(XPOBJS) $(XPLIBS) $(XPSYSLIBS):: $(XPSUBDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xprt,$(XPSUBDIRS),$(XPOBJS), \
	$(XPLIBS),$(XPSYSLIBS))
#endif	/* XprtServer */

#if defined(XnestServer) && XnestServer
XCOMM
XCOMM Server with Xlib-based ddx
XCOMM
#ifndef Win32Architecture
XNESTDDXDIR = hw/xnest
#else
XNESTDDXDIR = hw
#endif
XNESTDIRS = $(STDDIRS) $(XNESTDDXDIR) $(DEPDIRS)
#if !defined(LynxOSArchitecture) && \
    !defined(Win32Architecture) && \
    !defined(QNX4Architecture)
XNESTOBJS = hw/xnest/miinitext.o
#else
XNESTOBJS = hw/xnest/miinitext.o dix/main.o
#endif
XNEST = hw/xnest/LibraryTargetName(xnest)
XNESTLIBS = PreFbLibs $(XNEST) NoMfbPostFbLibs $(XNEST)
XNESTSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XLIB) $(NOAUTH_SYSLIBS)
#if HasParallelMake
MakeMutex($(XNESTDIRS) $(XNESTOBJS) $(XNESTLIBS) $(XNESTSYSLIBS))
#endif
#if ForceServerRemake
$(XNESTOBJS) $(XNESTLIBS) $(XNESTSYSLIBS):: $(XNESTDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xnest,$(XNESTDIRS),$(XNESTOBJS) $(XNESTDEFFILE), \
	$(XNESTLIBS),$(XNESTSYSLIBS))
#endif /* XnestServer */


#if defined(XnonServer) && XnonServer
XCOMM
XCOMM non server, just compile sources for build test
XCOMM
MFBSUBDIR   = mfb
CFB8SUBDIR  = cfb
CFB16SUBDIR = cfb16
CFB32SUBDIR = cfb32
#if HasParallelMake
MakeMutex($(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB16DIR) $(CFB32DIR) $(DEPDIRS))
#endif
Xnon: $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB16DIR) $(CFB32DIR) $(DEPDIRS)
#endif /* XnonServer */


#if defined(XvaxMonoServer) && XvaxMonoServer
XCOMM
XCOMM NetBSD/vax Monochrome server
XCOMM
MFBSUBDIR  = mfb
VAXDDXDIR = hw/netbsd/vax
VAXDIRS = $(STDDIRS) $(MFBDIR) $(VAXDDXDIR) $(DEPDIRS)
VAXOBJS = hw/netbsd/vax/init.o hw/netbsd/vax/mono_io.o hw/netbsd/vax/lk201.o
VAXLIBS = MFBLibs
ServerTarget(Xmono,$(VAXDIRS),$(VAXOBJS),$(VAXLIBS),$(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall Xmono
#endif
#endif /* XvaxMonoServer */


#if defined(XVirtualFramebufferServer) && XVirtualFramebufferServer
XCOMM
XCOMM server with Virtual (malloced) framebuffer
XCOMM
MFBSUBDIR = mfb
FBSUBDIR  = fb
#if defined(Win32Architecture)
XVFBDDXDIR = hw
#else
XVFBDDXDIR = hw/vfb
#endif
XVFBDIRS = $(STDDIRS) $(MFBDIR) $(FBDIR) $(XVFBDDXDIR) $(DEPDIRS)
#ifndef Win32Architecture
#if BuildDPMS
XVFBDPMSSTUBOBJS = $(XVFBDDXDIR)/dpmsstubs.o
#endif
XVFBOBJS = $(XVFBDDXDIR)/stubs.o $(XVFBDDXDIR)/miinitext.o $(XVFBDPMSSTUBOBJS)
#else
XVFBOBJS = dix/main.o hw/vfb/stubs.o hw/vfb/miinitext.o
#endif
XVFB = $(XVFBDDXDIR)/LibraryTargetName(vfb)
XVFBLIBS = PreFbLibs $(XVFB) $(FB) PostFbLibs
XVFBSYSLIBS = $(FONTLIBS) $(SYSLIBS)
#if HasParallelMake
MakeMutex($(XVFBDIRS) $(XVFBOBJS) $(XVFB) $(XVFBLIBS) $(XVFBSYSLIBS))
#endif
#if ForceServerRemake
$(XVFBOBJS) $(XVFB) $(XVFBLIBS) $(XVFBSYSLIBS):: $(XVFBDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xvfb,$(XVFBDIRS),$(XVFBOBJS) $(XVFBDEFFILE), \
	$(XVFBLIBS),$(XVFBSYSLIBS))
#endif /* XVirtualFramebufferServer */

#if defined(XdmxServer) && XdmxServer
XCOMM
XCOMM distribued multihead Server
XCOMM
#ifndef Win32Architecture
XDMXDDXDIR = hw/dmx
#else
XDMXDDXDIR = hw
#endif
FBSUBDIR = fb
XDMXDIRS = $(STDDIRS) $(XDMXDDXDIR) $(SHADOWDIR) $(DEPDIRS) $(FBDIR)
#if BuildGlxInDmx
#if BuildXinerama
GLXPROXY_EXTRAOBJS = hw/dmx/panoramiX.o
#endif
GLXPROXYLIB = hw/dmx/glxProxy/LibraryTargetName(glxProxy)
#endif
#if !defined(LynxOSArchitecture) && \
    !defined(Win32Architecture) && \
    !defined(QNX4Architecture)
XDMXOBJS = hw/dmx/miinitext.o $(GLXPROXY_EXTRAOBJS)
#else
XDMXOBJS = hw/dmx/miinitext.o $(GLXPROXY_EXTRAOBJS) dix/main.o
#endif
XDMXINPUT  = hw/dmx/input/LibraryTargetName(dmxinput)
XDMXCONFIG = hw/dmx/config/LibraryTargetName(dmxconfig)
XDMX = hw/dmx/LibraryTargetName(dmxlib) $(XDMXCONFIG) $(GLXPROXYLIB)
XDMXLIBS = PreFbLibs $(XDMX) MiExtLibs $(FB) $(MI) $(DMXEXTENSIONS) $(XDMXINPUT)
#if BuildRender
XDMXRENDERLIB = $(XRENDERLIB)
#endif
XDMXSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XILIB) $(XMULIB) $(XDMXRENDERLIB) \
	      $(XLIB) $(NOAUTH_SYSLIBS)
#if HasParallelMake
MakeMutex($(XDMXDIRS) $(XDMXOBJS) $(XDMXLIBS) $(XDMXSYSLIBS))
#endif
#if ForceServerRemake
$(XDMXOBJS) $(XDMXLIBS) $(XDMXSYSLIBS):: $(XDMXDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xdmx,$(XDMXDIRS),$(XDMXOBJS) $(XDMXDEFFILE), \
       $(LIBCWRAPPER) $(XDMXLIBS),$(XDMXSYSLIBS))
#endif /* XdmxServer */

#if defined(XWinServer) && XWinServer
XCOMM
XCOMM X Server for MS Windows
XCOMM
FBSUBDIR = fb
#if 1
LAYERDIR = 
#endif
XWINDDXDIR = hw/xwin
XWINPARSERDIR = hw/xfree86/parser
XWINPARSERLIB = $(XWINPARSERDIR)/LibraryTargetName(xf86config)
XWINLIB = $(XWINDDXDIR)/LibraryTargetName(Xwin)
XWINDIRS = $(STDDIRS) $(FBDIR) $(SHADOWDIR) $(LAYERDIR) $(XWINDDXDIR) \
	   $(DEPDIRS) $(XWINPARSERDIR)
XWINOBJS = $(XWINDDXDIR)/stubs.o $(XWINDDXDIR)/XWin.res
#if 0
XWINLIBS = PreFbLibs $(XWINLIB) FbPostFbLibs $(LAYER) $(SHADOW) \
           $(XWINPARSERLIB)
#else
XWINLIBS = PreFbLibs $(XWINLIB) FbPostFbLibs $(SHADOW) \
           $(XWINPARSERLIB)
#endif
XWINSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XLIB) $(SYSLIBS) -lgdi32

/*
 * These flags cause XWin.exe to be a Windows executable, which
 * prevents XWin.exe from opening a Command Prompt window when it is
 * started.  However, the flags also prevent XWin.exe from outputting
 * its status and error message to a Command Prompt; thus, one most
 * implement a method to redirect status and error messages to a file
 * before enabling these flags.
 */
EXTRA_LDOPTIONS = -mwindows -e _mainCRTStartup

#if HasParallelMake
MakeMutex($(XWINDIRS) $(XWINOBJS) $(XWINLIB) $(XWINLIBS) $(XWINSYSLIBS))
#endif

#if ForceServerRemake
$(XWINOBJS) $(XWINLIB) $(XWINLIBS) $(XWINSYSLIBS):: $(XWINDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif

ServerTarget(XWin,$(XWINDIRS),$(XWINOBJS), \
	     $(XWINLIBS),$(XWINSYSLIBS)) 

#ifndef ServerToInstall
#define ServerToInstall XWin
#endif

#endif /* XWinServer */


#ifdef DarwinArchitecture
/*
 * To allow building even when building the client-side libraries is turned
 * off, libraries in ProjectRoot are listed as dependencies for some targets.
 * This causes problems unless we tell make where to find these dependencies.
 */
VPATH = $(BUILDLIBDIR):$(USRLIBDIR)
#endif

#if defined(XDarwinServer) && XDarwinServer
XCOMM
XCOMM X Darwin server for Mac OS X / Darwin
XCOMM
FBSUBDIR = fb
DARWINDDXDIR = hw/darwin
DARWINDIRS = $(STDDIRS) $(FBDIR) $(SHADOWDIR) $(DARWINDDXDIR) $(DEPDIRS)
DARWINOBJS = $(DARWINDDXDIR)/miinitext.o
DARWINLIBS = PreFbLibs $(DARWINDDXDIR)/LibraryTargetName(darwin)
DARWINEXTLIBS = MiExtLibs FbPostFbLibs $(DARWINDDXDIR)/LibraryTargetName(darwin)
DARWINSYSLIBS = $(FONTLIBS) $(SYSLIBS) -framework IOKit
IOKITLIB = $(DARWINDDXDIR)/iokit/LibraryTargetName(iokit)

/*
 * IOKit X server
 */
SetUIDServerTarget(XDarwin,$(DARWINDIRS),$(DARWINOBJS), \
	$(DARWINLIBS) $(IOKITLIB) $(DARWINEXTLIBS),$(DARWINSYSLIBS))

#if DarwinQuartzSupport

QUARTZDIR = $(DARWINDDXDIR)/quartz
QUARTZLIB = $(QUARTZDIR)/LibraryTargetName(XQuartz)
QUARTZSYSLIBS = -framework ApplicationServices -framework Cocoa \
                -framework CoreAudio -framework Carbon -ObjC
ROOTLESSLIB = $(ROOTLESSDIR)/LibraryTargetName(rootless) \
              $(ROOTLESSDIR)/safeAlpha/LibraryTargetName(safeAlpha) \
              $(ROOTLESSDIR)/accel/LibraryTargetName(rlAccel)
XPLUGINLIB = XpluginLibrary

#if NothingOutsideProjectRoot
XDARWINAPPDIR = $(BINDIR)/XDarwin.app/Contents
#else
XDARWINAPPDIR = /Applications/XDarwin.app/Contents
#endif

/*
 * Quartz X server (installed in its application bundle)
 */
SetUIDServerTarget(XDarwinApp,$(DARWINDIRS),$(DARWINOBJS), \
	$(DARWINLIBS) $(QUARTZLIB) $(DARWINEXTLIBS), \
	$(DARWINSYSLIBS) $(QUARTZSYSLIBS) -u _miDCInitialize)

install::
	$(MKDIRHIER) $(DESTDIR)$(XDARWINAPPDIR)/MacOS
	$(MV) $(DESTDIR)$(BINDIR)/XDarwinApp \
		$(DESTDIR)$(XDARWINAPPDIR)/MacOS/XDarwin
	-(cd $(DESTDIR)$(BINDIR); $(RM) XDarwinQuartz; \
		$(LN) $(XDARWINAPPDIR)/MacOS/XDarwin XDarwinQuartz)

/*
 * Display mode bundles for Quartz
 * (installed in their own bundles inside XDarwin's)
 */
#if HasXplugin
XPRDIRS = $(QUARTZDIR)/xpr $(ROOTLESSDIR) $(ROOTLESSDIR)/safeAlpha
XPRLIBS = $(QUARTZDIR)/xpr/LibraryTargetName(xpr) $(ROOTLESSLIB)

BundleProgramTarget(xpr,XDarwinApp,$(XPRDIRS),$(QUARTZDIR)/xpr/xprScreen.o, \
	$(XPRLIBS),-framework ApplicationServices \
	$(XPLUGINLIB),$(XDARWINAPPDIR)/Resources)
#endif

CRDIRS = $(QUARTZDIR)/cr $(ROOTLESSDIR) $(ROOTLESSDIR)/safeAlpha
CRLIBS = $(QUARTZDIR)/cr/LibraryTargetName(cr) $(ROOTLESSLIB)

BundleProgramTarget(cr,XDarwinApp,$(CRDIRS),$(QUARTZDIR)/cr/crScreen.o, \
	$(CRLIBS),-framework ApplicationServices -framework Cocoa \
	-framework Carbon -ObjC,$(XDARWINAPPDIR)/Resources)

FSDIRS = $(QUARTZDIR)/fullscreen $(SHADOWDIR)
FSLIBS = $(QUARTZDIR)/fullscreen/LibraryTargetName(fullscreen) $(SHADOW)

BundleProgramTarget(fullscreen,XDarwinApp,$(FSDIRS), \
	$(QUARTZDIR)/fullscreen/fullscreen.o,$(FSLIBS), \
	-framework ApplicationServices,$(XDARWINAPPDIR)/Resources)

/*
 * GLX bundles for Quartz
 * (installed in their own bundles inside XDarwin's)
 */
BundleProgramTarget(glxAGL,XDarwinApp,GL,GL/glx/glxext.o,GL/glx/libglx.a \
	GL/apple/libAGLcore.a, \
	-framework AGL -framework OpenGL,$(XDARWINAPPDIR)/Resources)

#if BuildAppleDRI
BundleProgramTarget(glxCGL,XDarwinApp,GL,GL/glx/glxext.o,GL/glx/libglx.a \
	GL/apple/libCGLcore.a, \
	-framework OpenGL $(XPLUGINLIB),$(XDARWINAPPDIR)/Resources)
#endif

BundleProgramTarget(glxMesa,XDarwinApp,GL,GL/glx/glxext.o,GL/glx/libglx.a \
	GL/mesa/GLcore/libGLcore.a,NullParameter,$(XDARWINAPPDIR)/Resources)

#else /* !DarwinQuartzSupport */

#define ServerToInstall XDarwin

#endif /* DarwinQuartzSupport */

#endif /* XDarwinServer */

#if defined(Xmac68kServer) && Xmac68kServer
XCOMM
XCOMM NetBSD/mac68k Xserver
XCOMM
MFBSUBDIR = mfb
CFB8SUBDIR = cfb
#if 0
CFB16SUBDIR = cfb16
CFB24SUBDIR = cfb24
CFB32SUBDIR = cfb32
#endif
MAC68KDDXDIR = hw/netbsd/mac68k
MAC68KDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) \
#if 0
	$(CFB16DIR) $(CFB24DIR) $(CFB32DIR) \
#endif
	$(MAC68KDDXDIR) $(DEPDIRS)
MAC68KOBJS = $(MAC68KDDXDIR)/mac68kInit.o $(MAC68KDDXDIR)/mac68kEvent.o
MAC68KLIBS = hw/netbsd/mac68k/libmac68k.a CFBLibs
ServerTarget(Xmac68k,$(MAC68KDIRS),$(MAC68KOBJS),$(MAC68KLIBS) $(LIBCWRAPPER), \
	$(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall Xmac68k
#endif
#endif /* XmacServer */


CFBSUBDIRS = $(CFB8SUBDIR) $(CFB16SUBDIR) $(CFB24SUBDIR) $(CFB32SUBDIR)
MIEXTDIRS = $(SHADOWDIR) $(LAYERDIR) $(ROOTLESSDIR)
IPLANDIRS = $(IPLAN2P2DIR) $(IPLAN2P4DIR) $(IPLAN2P8DIR)
DDXDIRS = $(DECWSDDXDIR) $(SUNDDXDIR) $(LYNXDDXDIR) \
	  $(ANBDDXDIR) \
	  $(DNBDDXDIR) \
	  $(DREAMCASTDDXDIR) \
	  $(EWS4800MIPSDDXDIR) \
	  $(HPCDDXDIR) \
	  $(MACPPCDDXDIR) $(MAC68KDDXDIR) \
	  $(VAXDDXDIR) \
	  $(X68DDXDIR) \
	  $(HPDDXDIR) $(XFREE86DDXDIR) $(XWINDDXDIR) $(DARWINDDXDIR) \
	  $(XVFBDDXDIR) $(XNESTDDXDIR) $(XDMXDDXDIR)
SUBDIRS = $(STDDIRS) $(MFBSUBDIR) $(CFBSUBDIRS) \
	  $(IPLANDIRS) $(ILBMDIR) $(AFBSUBDIR) \
          $(LMFCFBDIR) $(DDXDIRS) $(FBSUBDIR) $(TINYXSUBDIRS) $(MIEXTDIRS) \
	  $(XWINPARSERDIR)

#if  defined(ServerToInstall) && !defined(OS2Architecture)
install::
	-(cd $(DESTDIR)$(BINDIR); $(RM) X; $(LN) ServerToInstall X)
#endif

#define IHaveSubdirs

DependSubdirs($(SUBDIRS))
MakeLintLibSubdirs($(SUBDIRS))
LintSubdirs($(SUBDIRS))

ForceSubdirs($(DEPDIRS) $(SUBDIRS))

DEFAULTFONTPATH = DefaultFontPath
EXTRAMANDEFS = -D__default_font_path__="`echo $(DEFAULTFONTPATH) | sed -e 's/,/, /g'`"

InstallManPage(Xserver,$(MANDIR))
@


1.19
log
@Build Xews4800mips server.
@
text
@@


1.18
log
@Introduces a driver for USB graphics tablets (digitizers) using the libusbhid
interface into XFree86.

Closes PR xsrc/23964
Reviewed by tron@@NetBSD.org

Code submitted in above PR by Dave Huang, written by Lennart Augustsson,
adapted to XFree86 4.x by Matthieu Herrb for OpenBSD.
The patches to fit that driver into the existing xsrc have been slightly
changed to bring them up to date.

I'm using the driver with a Wacom Graphire 3 ("Sapphire").
@
text
@d772 18
d1632 1
@


1.17
log
@Resolve conflicts from import of XFree86 4.5.0.
@
text
@a313 1
#if UsbMouseSupport 
a318 1
#endif
@


1.16
log
@Add defines for XdecNetBSDServer.
Tested on Pelican, and make build on 3MIN is ongoing.
@
text
@a0 1
XCOMM $Xorg: Imakefile,v 1.4 2001/03/14 18:42:02 pookie Exp $
d4 48
a51 1
XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.297 2004/01/12 21:43:19 herrb Exp $
d66 1
d68 1
a68 1
#define BarePostFbLibs $(MFB) $(XPFBLIBS) $(MI)
d70 1
a70 2
#define NoMfbBarePostFbLibs $(XPFBLIBS) $(MI)
#if !BuildXinerama
a71 3
#else
#define NoMfbPostFbLibs $(EXTENSIONS) NoMfbBarePostFbLibs $(EXTENSIONS)
#endif
d90 1
d95 1
a95 1
#define AllFBLibs PreFbLibs $(FB) $(CFB) PostFbLibs
a163 4
#if DoLoadableServer
    LIBCWRAPPER = os/libcwrapper.o
#endif

a164 14

#ifndef XpRasterDDX
#define XpRasterDDX YES
#endif
#ifndef XpColorPclDDX
#define XpColorPclDDX YES
#endif
#ifndef XpMonoPclDDX
#define XpMonoPclDDX NO
#endif
#ifndef XpPostScriptDDX
#define XpPostScriptDDX YES
#endif

d180 1
a180 1
XPDDXFBLIBS = $(MFB) $(CFB32)
d182 1
a183 1
      XPDDX = $(XPDDXLIBS)
d193 6
a198 1
      RENDERLIB = $(RENDERDIR)/librender.a
d202 6
a207 1
      RANDRLIB = $(RANDRDIR)/librandr.a
d209 21
d231 1
a231 5
     EXTENSIONS = $(OTHEREXTS) $(RANDRLIB) $(RENDERLIB)
   LOADABLEEXTS = $(MISCEXT) $(DBEEXT) $(RECORDEXT) $(GLXEXT) $(XTRAPEXT)
        MISCEXT = Xext/LibraryTargetName(ext)
      OTHEREXTS = Xext/LibraryTargetName(exts) $(XKBEXT) $(XINPUTEXT) \
                  $(LBXEXT) $(SITEEXTS)
d233 1
a233 3
     EXTENSIONS = $(OTHEREXTS) $(GLXEXT) $(RANDRLIB) $(RENDERLIB)
      OTHEREXTS = Xext/LibraryTargetName(ext) $(XKBEXT) $(XINPUTEXT) \
                  $(LBXEXT) $(DBEEXT) $(RECORDEXT) $(SITEEXTS) $(XTRAPEXT)
d235 5
d247 5
d256 1
a256 2
            CFB = cfb/ModuleLibraryTargetName(cfb) \
		  cfb16/ModuleLibraryTargetName(cfb16) \
d258 2
a259 1
		  cfb32/ModuleLibraryTargetName(cfb32)
d261 8
a268 8
           CFB4 = cfb/ModuleLibraryTargetName(cfb) \
		  cfb4/ModuleLibraryTargetName(cfb4)
          CFB16 = cfb/ModuleLibraryTargetName(cfb) \
		  cfb16/ModuleLibraryTargetName(cfb16)
          CFB24 = cfb/ModuleLibraryTargetName(cfb) \
		  cfb24/ModuleLibraryTargetName(cfb24)
          CFB32 = cfb/ModuleLibraryTargetName(cfb) \
		  cfb32/ModuleLibraryTargetName(cfb32)
d296 6
d304 1
d307 1
d310 1
d313 1
d331 3
a333 1
		  $(PAMLIBS)  $(XAUTHLIB) $(XDMCPLIB) $(EXTRASYSLIBS)
d346 3
d455 2
a456 2
	$(LIBCWRAPPER) $(SUNLIBS) $(LOADABLEEXTS),$(SUNSYSLIBS))
#ifndef ServerToInstall
d484 2
a485 2
	$(LIBCWRAPPER) $(SUN24LIBS) $(LOADABLEEXTS),$(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
d503 1
a503 1
SUNMLIBS = hw/sun/LibraryTargetName(sun) MFBBareLibs $(EXTENSIONS)
d505 2
a506 2
	$(LIBCWRAPPER) $(SUNMLIBS) $(LOADABLEEXTS),$(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
d560 3
d569 1
d571 1
a571 1
MakeMutex($(XF86SERVER) $(XNEST) $(XVFB) $(XWIN))
a586 2
SHADOWDIR = miext/shadow
LAYERDIR = miext/layer
d591 1
d681 3
a683 3
	       $(FONTBASE) $(OTHEREXTS) $(XF86COMLIB) \
	       NoMfbPostFbLibs
XF86SERVERSYSLIBS = $(SYSLIBS) $(LIBDL) $(LIBREGEX)
d687 1
a687 1
XF86MAINLIBS = MiExtLibs AllFBLibs $(XF86COMLIB) $(MI)
d828 1
a828 1
#if defined(KDriveXServer) && KDriveXServer
d833 1
a833 1
        KDRIVE = hw/kdrive
d835 1
a835 1
       KDTSLIB = -lts
d838 2
a839 2
       KDOSDIR = $(KDRIVE)/linux
          KDOS = $(KDOSDIR)/LibraryTargetName(linux) $(KDTSLIB)
d843 2
a844 2
       KDOSDIR = $(KDRIVE)/vxworks
          KDOS = $(KDOSDIR)/LibraryTargetName(vxworks)
d847 3
a849 8
#if BuildPseudo8
       PSEUDO8 = $(KDRIVE)/pseudo8/LibraryTargetName(pseudo8)
    PSEUDO8DIR = $(KDRIVE)/pseudo8
#endif
     SHADOWDIR = miext/shadow
      LAYERDIR = miext/layer
            KD = $(KDRIVE)/LibraryTargetName(kdrive)
       KDFBDEV = $(KDRIVE)/fbdev/LibraryTargetName(fbdev)
d852 4
a855 3
#define StdKdDirs $(KDRIVE) $(KDOSDIR) $(PSEUDO8DIR) fb $(DEPDIRS)
#define StdKdSysLibs $(FONTLIBS) $(SYSLIBS)
#define KdLibs $(KD) $(KDOS) $(PSEUDO8) MiExtLibs $(RANDRLIB) $(RENDERLIB)
d859 1
a859 1
XCOMM server with Keith's fbdev driver only
d862 1
a862 1
    FBDEVDIR = $(KDRIVE)/fbdev
d865 1
a865 1
      KDDIRS = StdKdDirs
d867 1
a867 1
   FBDEVDIRS = $(STDDIRS) $(KDDIRS) $(FBDEVDIR) $(SHADOWDIR) $(LAYERDIR)
d869 3
a871 2
   FBDEVLIBS = PreFbLibs $(FBDEV) $(LAYER) KdLibs FbPostFbLibs
FBDEVSYSLIBS = StdKdSysLibs
d886 1
a886 1
XCOMM server with Keith's S3 Savage driver
d889 1
a889 1
    SAVAGEDIR = $(KDRIVE)/savage
d892 1
a892 1
       KDDIRS = StdKdDirs
d894 1
a894 1
   SAVAGEDIRS = $(STDDIRS) $(KDDIRS) $(SAVAGEDIR)
d896 3
a898 2
   SAVAGELIBS = PreFbLibs $(SAVAGE) KdLibs FbPostFbLibs
SAVAGESYSLIBS = StdKdSysLibs
d913 1
a913 1
XCOMM server with Keith's S3 Igs driver
d916 1
a916 1
       IGSDIR = $(KDRIVE)/igs
d919 1
a919 1
       KDDIRS = StdKdDirs
d921 1
a921 1
      IGSDIRS = $(STDDIRS) $(KDDIRS) $(IGSDIR)
d923 3
a925 2
      IGSLIBS = PreFbLibs $(IGS) KdLibs FbPostFbLibs
   IGSSYSLIBS = StdKdSysLibs
d940 1
a940 1
XCOMM server with Keith's TRIDENT Cyber9525 driver
d943 1
a943 1
      FBDEVDIR = $(KDRIVE)/fbdev
d945 1
a945 1
       VESADIR = $(KDRIVE)/vesa
d947 1
a947 1
    TRIDENTDIR = $(KDRIVE)/trident
d950 1
a950 1
        KDDIRS = StdKdDirs
d952 1
a952 1
   TRIDENTDIRS = $(STDDIRS) $(KDDIRS) \
d955 4
a958 2
   TRIDENTLIBS = PreFbLibs $(TRIDENT) $(FBDEV) $(VESA) $(LAYER) KdLibs FbPostFbLibs
TRIDENTSYSLIBS = StdKdSysLibs
d973 1
a973 1
XCOMM server with Keith's C&T driver
d976 1
a976 1
       VESADIR = $(KDRIVE)/vesa
d978 1
a978 1
      CHIPSDIR = $(KDRIVE)/chips
d981 1
a981 1
        KDDIRS = StdKdDirs
d983 1
a983 1
   CHIPSDIRS = $(STDDIRS) $(KDDIRS) \
d986 3
a988 2
   CHIPSLIBS = PreFbLibs $(CHIPS) $(VESA) $(LAYER) KdLibs FbPostFbLibs
CHIPSSYSLIBS = StdKdSysLibs
d1003 1
a1003 1
XCOMM server with Keith's Mach64 driver (for Mobility 1 machines)
d1006 1
a1006 1
       VESADIR = $(KDRIVE)/vesa
d1008 1
a1008 1
     MACH64DIR = $(KDRIVE)/mach64
d1011 1
a1011 1
        KDDIRS = StdKdDirs
d1013 1
a1013 1
   MACH64DIRS = $(STDDIRS) $(KDDIRS) \
d1016 3
a1018 2
   MACH64LIBS = PreFbLibs $(MACH64) $(VESA) $(LAYER) KdLibs FbPostFbLibs
MACH64SYSLIBS = StdKdSysLibs
d1036 1
a1036 1
      FBDEVDIR = $(KDRIVE)/fbdev
d1038 1
a1038 1
       VESADIR = $(KDRIVE)/vesa
d1040 1
a1040 1
       I810DIR = $(KDRIVE)/i810
d1043 1
a1043 1
        KDDIRS = StdKdDirs
d1045 1
a1045 1
      I810DIRS = $(STDDIRS) $(KDDIRS) $(SHADOWDIR) $(I810DIR)
d1047 3
a1049 2
      I810LIBS = PreFbLibs $(I810) KdLibs FbPostFbLibs
   I810SYSLIBS = StdKdSysLibs
d1065 1
a1065 1
XCOMM server with Keith's SiS 530 driver
d1068 1
a1068 1
    SIS530DIR = $(KDRIVE)/sis530
d1071 1
a1071 1
       KDDIRS = StdKdDirs
d1073 1
a1073 1
   SIS530DIRS = $(STDDIRS) $(KDDIRS) $(SIS530DIR)
d1075 3
a1077 2
   SIS530LIBS = PreFbLibs $(SIS530) KdLibs FbPostFbLibs
SIS530SYSLIBS = StdKdSysLibs
d1092 1
a1092 1
XCOMM server with Keith's S3 Trio driver
d1095 1
a1095 1
    TRIODIR = $(KDRIVE)/trio
d1098 1
a1098 1
     KDDIRS = StdKdDirs
d1100 1
a1100 1
   TRIODIRS = $(STDDIRS) $(KDDIRS) $(TRIODIR)
d1102 3
a1104 2
   TRIOLIBS = PreFbLibs $(TRIO) KdLibs FbPostFbLibs
TRIOSYSLIBS = StdKdSysLibs
d1122 1
a1122 1
     FBDEVDIR = $(KDRIVE)/fbdev
d1125 1
a1125 1
    PCMCIADIR = $(KDRIVE)/pcmcia
d1128 1
a1128 3
    SHADOWDIR = miext/shadow

      IPAQDIR = $(KDRIVE)/ipaq
d1131 1
a1131 1
       KDDIRS = StdKdDirs
d1133 1
a1133 1
     IPAQDIRS = $(STDDIRS) $(KDDIRS) $(FBDEVDIR) $(LAYERDIR) $(SHADOWDIR) $(PCMCIADIR) $(IPAQDIR)
d1135 4
a1138 2
     IPAQLIBS = PreFbLibs $(IPAQ) $(FBDEV) $(LAYER) $(SHADOW) $(PCMCIA) KdLibs FbPostFbLibs
  IPAQSYSLIBS = StdKdSysLibs
d1153 1
a1153 1
XCOMM server with Keith's S3 Trio and SiS530 driver for the TS300/TS400
d1156 1
a1156 1
      TRIODIR = $(KDRIVE)/trio
d1159 1
a1159 1
    SIS530DIR = $(KDRIVE)/sis530
d1162 1
a1162 1
     TS300DIR = $(KDRIVE)/ts300
d1165 1
a1165 1
       KDDIRS = StdKdDirs
d1167 1
a1167 1
    TS300DIRS = $(STDDIRS) $(KDDIRS) $(TRIODIR) $(SIS530DIR) $(TS300DIR)
d1169 3
a1171 2
    TS300LIBS = PreFbLibs $(TS300) $(TRIO) $(SIS530) KdLibs FbPostFbLibs
 TS300SYSLIBS = StdKdSysLibs
d1186 1
a1186 1
XCOMM server with Keith's FB driver only
d1188 1
a1188 1
    ITSYDIR = $(KDRIVE)/itsy
d1191 1
a1191 1
     KDDIRS = StdKdDirs
d1193 1
a1193 1
   ITSYDIRS = $(STDDIRS) $(KDDIRS) $(ITSYDIR)
d1195 3
a1197 2
   ITSYLIBS = PreFbLibs $(ITSY) KdLibs FbPostFbLibs
ITSYSYSLIBS = StdKdSysLibs
d1212 1
a1212 1
XCOMM server with vesa driver only based on Keith's server
d1215 1
a1215 1
    VESADIR = $(KDRIVE)/vesa
d1218 1
a1218 1
      KDDIRS = StdKdDirs
d1220 1
a1220 1
    VESADIRS = $(STDDIRS) $(KDDIRS) $(VESADIR) $(SHADOWDIR) $(LAYERDIR)
d1222 3
a1224 2
   VESALIBS = PreFbLibs $(VESA) $(LAYER) KdLibs FbPostFbLibs
VESASYSLIBS = StdKdSysLibs
d1237 1
a1237 1
KDRIVEDIRS=$(KDDIRS) $(FBDEVDIR) $(SAVAGEDIR) $(TRIDENTDIR) $(I810DIR) \
d1240 1
a1240 1
#endif	/* KDriveXServer */
d1255 1
a1255 1
XPLIBS = PreFbLibs $(XPDDXLIBS) $(XPDDXFBLIBS) PostFbLibs
d1258 1
a1258 1
XPLIBS = PreFbLibs PostFbLibs
d1262 1
a1262 1
XPSYSLIBS = $(FONTLIBS) $(CBRT) $(SYSLIBS) -lw
d1264 1
a1264 1
XPSYSLIBS = $(FONTLIBS) $(CBRT) $(SYSLIBS)
d1274 1
a1274 1
	$(LIBCWRAPPER) $(XPLIBS) $(LOADABLEEXTS),$(XPSYSLIBS))
d1296 1
a1296 1
XNESTSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XLIB) $(SYSLIBS)
d1305 1
a1305 1
	$(LIBCWRAPPER) $(XNESTLIBS) $(LOADABLEEXTS),$(XNESTSYSLIBS))
d1361 1
a1361 1
XVFBLIBS = PreFbLibs $(XVFB) $(FB) PostFbLibs $(MI)
d1371 1
a1371 1
	$(LIBCWRAPPER) $(XVFBLIBS) $(LOADABLEEXTS),$(XVFBSYSLIBS))
d1374 43
d1423 1
a1423 4
SHADOWDIR = miext/shadow
#if 0
LAYERDIR = miext/layer
#else
d1462 1
a1462 1
	     $(LIBCWRAPPER) $(XWINLIBS) $(LOADABLEEXTS),$(XWINSYSLIBS)) 
a1484 2
SHADOWDIR = miext/shadow
ROOTLESSDIR = miext/rootless
d1487 1
d1489 1
a1489 1
DARWINEXTLIBS = MiExtLibs FbPostFbLibs
a1500 11
/*
 * Quartz modes load a GLX extension dynamically, so we can't build it in.
 */
AQUAEXTENSIONS = $(OTHEREXTS) $(RANDRLIB) $(RENDERLIB)
#if !BuildXinerama
#define AquaPostFbLibs NoMfbBarePostFbLibs $(AQUAEXTENSIONS)
#else
#define AquaPostFbLibs $(AQUAEXTENSIONS) NoMfbBarePostFbLibs $(AQUAEXTENSIONS)
#endif
QUARTZEXTLIBS = MiExtLibs $(FB) AquaPostFbLibs

d1519 2
a1520 2
SetUIDServerTarget(XDarwinApp,$(DARWINDIRS),$(QUARTZOBJS), \
	$(DARWINLIBS) $(QUARTZLIB) $(QUARTZEXTLIBS), \
d1621 1
a1621 1
	  $(XVFBDDXDIR) $(XNESTDDXDIR)
d1624 1
a1624 1
          $(LMFCFBDIR) $(DDXDIRS) $(FBSUBDIR) $(KDRIVEDIRS) $(MIEXTDIRS) \
@


1.16.2.1
log
@Apply patch (requested by jmc in ticket #114):
Update XFree86 to version 4.5.0.
@
text
@d1 1
d5 1
a5 48
XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.310 2005/02/09 21:46:51 dawes Exp $

/*
 * Copyright (c) 1994-2004 by The XFree86 Project, Inc.
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 *
 *   1.  Redistributions of source code must retain the above copyright
 *       notice, this list of conditions, and the following disclaimer.
 *
 *   2.  Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer
 *       in the documentation and/or other materials provided with the
 *       distribution, and in the same place and form as other copyright,
 *       license and disclaimer information.
 *
 *   3.  The end-user documentation included with the redistribution,
 *       if any, must include the following acknowledgment: "This product
 *       includes software developed by The XFree86 Project, Inc
 *       (http://www.xfree86.org/) and its contributors", in the same
 *       place and form as other third-party acknowledgments.  Alternately,
 *       this acknowledgment may appear in the software itself, in the
 *       same form and location as other such third-party acknowledgments.
 *
 *   4.  Except as contained in this notice, the name of The XFree86
 *       Project, Inc shall not be used in advertising or otherwise to
 *       promote the sale, use or other dealings in this Software without
 *       prior written authorization from The XFree86 Project, Inc.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
a19 1
#define TinyPreFbLibs $(TINY_DIX) $(TINY_OS) $(XPDDX)
d21 1
a21 1
#define BarePostFbLibs $(MFB) $(MI)
d23 2
a24 1
#define NoMfbBarePostFbLibs $(MI)
d26 3
a46 1
#define TinyFbPostFbLibs $(FB) $(MI) $(TINY_EXTENSIONS)
d51 1
a51 1
#define BareAllFBLibs PreFbLibs $(FB) $(CFB) BarePostFbLibs
d120 4
d125 14
d154 1
a154 1
XPDDXFBLIBS = $(CFB32) $(MFB)
a155 1
      XPDDX    = $(XPDDXLIBS)
d157 1
d167 1
a167 6
      RENDERLIB = $(RENDERDIR)/LibraryTargetName(render)
#if BuildSeparateTinyDIX
 TINY_RENDERLIB = $(RENDERDIR)/tiny/LibraryTargetName(render)
#else
 TINY_RENDERLIB = $(RENDERLIB)
#endif
d171 1
a171 5
      RANDRLIB = $(RANDRDIR)/LibraryTargetName(randr)
#if BuildSeparateTinyDIX
 TINY_RANDRLIB = $(RANDRDIR)/tiny/LibraryTargetName(randr)
#else
 TINY_RANDRLIB = $(RANDRLIB)
d173 3
a175 4
#endif
       BASEEXTS = Xext/LibraryTargetName(exts)
     STATICEXTS = $(XKBEXT) $(XINPUTEXT) $(LBXEXT) $(SITEEXTS) $(RANDRLIB) \
		  $(RENDERLIB)
d177 2
a178 19
   LOADABLEEXTS = $(MISCEXT) $(DBEEXT) $(RECORDEXT) $(GLXEXT) $(XTRAPEXT)
     EXTENSIONS = $(LOADABLEEXTS) $(STATICEXTS) 

#if BuildSeparateTinyDIX
TINY_STATICEXTS = $(XKBEXT) $(XINPUTEXT) $(LBXEXT) $(SITEEXTS) \
	$(TINY_RANDRLIB) $(TINY_RENDERLIB)
   TINY_MISCEXT = Xext/tiny/LibraryTargetName(ext)
#else
TINY_STATICEXTS = $(STATICEXTS)
   TINY_MISCEXT = $(MISCEXT)
#endif
TINY_LOADABLEEXTS = $(TINY_MISCEXT) $(DBEEXT) $(RECORDEXT) $(GLXEXT) $(XTRAPEXT)
TINY_EXTENSIONS = $(TINY_STATICEXTS) $(TINY_LOADABLEEXTS)

 XPLOADABLEEXTS = $(MISCEXT) $(DBEEXT) $(RECORDEXT) $(XTRAPEXT)
   XPEXTENSIONS = $(XPLOADABLEEXTS) $(STATICEXTS) 

#if DoLoadableServer
 XF86EXTENSIONS = $(BASEEXTS) $(STATICEXTS)
d180 3
a182 1
 XF86EXTENSIONS = $(STATICEXTS) $(LOADABLEEXTS)
a183 5

  DMXSTATICEXTS = $(XKBEXT) $(XINPUTEXT) $(LBXEXT) $(SITEEXTS) $(RENDERLIB)
DMXLOADABLEEXTS = $(MISCEXT) $(RECORDEXT) $(XTRAPEXT)
  DMXEXTENSIONS = $(DMXLOADABLEEXTS) $(DMXSTATICEXTS) 

a190 5
#if BuildSeparateTinyDIX
        TINY_OS = os/tiny/LibraryTargetName(os)
#else
        TINY_OS = $(OS)
#endif
d195 2
a196 1
            CFB = cfb16/ModuleLibraryTargetName(cfb16) \
d198 1
a198 2
		  cfb32/ModuleLibraryTargetName(cfb32) \
		  cfb/ModuleLibraryTargetName(cfb)
d200 8
a207 8
           CFB4 = cfb4/ModuleLibraryTargetName(cfb4) \
		  cfb/ModuleLibraryTargetName(cfb)
          CFB16 = cfb16/ModuleLibraryTargetName(cfb16) \
		  cfb/ModuleLibraryTargetName(cfb)
          CFB24 = cfb24/ModuleLibraryTargetName(cfb24) \
		  cfb/ModuleLibraryTargetName(cfb)
          CFB32 = cfb32/ModuleLibraryTargetName(cfb32) \
		  cfb/ModuleLibraryTargetName(cfb)
a234 6
#if BuildSeparateTinyDIX
       TINY_DIX = dix/tiny/LibraryTargetName(dix)
#else
       TINY_DIX = $(DIX)
#endif
#if DoLoadableServer
a236 1
#endif
a238 1
      TINY_FONT = $(FONTLIBSRC)/LibraryTargetName(Xfont)
a240 1
      TINY_FONT = $(LDPRELIB) $(XFONTLIB)
a242 1
  TINY_FONTLIBS = $(TINY_FONT) $(XPFBLIBS)
d260 1
a260 3
		  $(PAMLIBS) $(XAUTHLIB) $(XDMCPLIB) $(EXTRASYSLIBS)
 NOAUTH_SYSLIBS = $(ZLIB) MathLibrary Krb5Libraries $(DBMLIBS) $(USB) \
		  $(PAMLIBS) $(XDMCPLIB) $(EXTRASYSLIBS)
a272 3
       LAYERDIR = miext/layer
    ROOTLESSDIR = miext/rootless
      SHADOWDIR = miext/shadow
d379 2
a380 2
	$(SUNLIBS),$(SUNSYSLIBS))
#if !defined(ServerToInstall) && (!defined(XF86Server) || !XF86Server)
d408 2
a409 2
	$(SUN24LIBS),$(FONTLIBS) $(SYSLIBS))
#if !defined(ServerToInstall) && (!defined(XF86Server) || !XF86Server)
d427 1
a427 1
SUNMLIBS = hw/sun/LibraryTargetName(sun) MFBLibs
d429 2
a430 2
	$(SUNMLIBS),$(FONTLIBS) $(SYSLIBS))
#if !defined(ServerToInstall) && (!defined(XF86Server) || !XF86Server)
a483 3
#if defined(XdmxServer) && XdmxServer
XDMX = Xdmx
#endif
a489 1
    (defined(XdmxServer) && XdmxServer) || \
d491 1
a491 1
MakeMutex($(XF86SERVER) $(XNEST) $(XVFB) $(XDMX) $(XWIN))
d507 2
a512 1
XDMXDEFFILE = Xdmx.def
d602 3
a604 3
	       $(FONTBASE) $(XF86COMLIB) \
	       NoMfbBarePostFbLibs $(XF86EXTENSIONS)
XF86SERVERSYSLIBS = $(XPFBLIBS) $(SYSLIBS) $(LIBDL) $(LIBREGEX)
d608 1
a608 1
XF86MAINLIBS = MiExtLibs BareAllFBLibs $(XF86EXTENSIONS) $(XF86COMLIB) $(MI)
d749 1
a749 1
#if defined(TinyXServer) && TinyXServer
d754 1
a754 1
      TINYXDIR = hw/tinyx
d756 1
a756 1
    TINYXTSLIB = -lts
d759 2
a760 2
    TINYXOSDIR = $(TINYXDIR)/linux
      TINYXOS = $(TINYXOSDIR)/LibraryTargetName(linux) $(TINYXTSLIB)
d764 2
a765 2
    TINYXOSDIR = $(TINYXDIR)/vxworks
       TINYXOS = $(TINYXOSDIR)/LibraryTargetName(vxworks)
d768 8
a775 3
      FBSUBDIR = fb
         TINYX = $(TINYXDIR)/LibraryTargetName(tinyx)
    TINYXFBDEV = $(TINYXDIR)/fbdev/LibraryTargetName(fbdev)
d778 3
a780 4
#define StdTinyxDirs $(TINYXDIR) $(TINYXOSDIR) $(DEPDIRS)
#define StdTinyxSysLibs $(TINY_FONTLIBS) $(SYSLIBS)
#define TinyxLibs $(TINYX) $(TINYXOS) MiExtLibs
#define TinyxObjs $(TINYXDIR)/miinitext.o $(TINYXDIR)/register.o $(TINYXDIR)/ffcheck.o $(TINYXDIR)/stubs.o os/tiny/lbxio.o
d784 1
a784 1
XCOMM server with TinyX fbdev driver only
d787 1
a787 1
    FBDEVDIR = $(TINYXDIR)/fbdev
d790 1
a790 1
   TINYXDIRS = StdTinyxDirs
d792 1
a792 1
   FBDEVDIRS = $(STDDIRS) $(TINYXDIRS) $(FBDEVDIR) $(SHADOWDIR) $(LAYERDIR)
d794 2
a795 3
   FBDEVLIBS = TinyPreFbLibs $(FBDEV) $(LAYER) TinyxLibs TinyFbPostFbLibs
   FBDEVOBJS = TinyxObjs
FBDEVSYSLIBS = StdTinyxSysLibs
d810 1
a810 1
XCOMM server with TinyX S3 Savage driver
d813 1
a813 1
    SAVAGEDIR = $(TINYXDIR)/savage
d816 1
a816 1
    TINYXDIRS = StdTinyxDirs
d818 1
a818 1
   SAVAGEDIRS = $(STDDIRS) $(TINYXDIRS) $(SAVAGEDIR)
d820 2
a821 3
   SAVAGEOBJS = TinyxObjs
   SAVAGELIBS = TinyPreFbLibs $(SAVAGE) TinyxLibs TinyFbPostFbLibs
SAVAGESYSLIBS = StdTinyxSysLibs
d836 1
a836 1
XCOMM server with TinyX S3 Igs driver
d839 1
a839 1
       IGSDIR = $(TINYXDIR)/igs
d842 1
a842 1
    TINYXDIRS = StdTinyxDirs
d844 1
a844 1
      IGSDIRS = $(STDDIRS) $(TINYXDIRS) $(IGSDIR)
d846 2
a847 3
      IGSOBJS = TinyxObjs
      IGSLIBS = TinyPreFbLibs $(IGS) TinyxLibs TinyFbPostFbLibs
   IGSSYSLIBS = StdTinyxSysLibs
d862 1
a862 1
XCOMM server with TinyX TRIDENT Cyber9525 driver
d865 1
a865 1
      FBDEVDIR = $(TINYXDIR)/fbdev
d867 1
a867 1
       VESADIR = $(TINYXDIR)/vesa
d869 1
a869 1
    TRIDENTDIR = $(TINYXDIR)/trident
d872 1
a872 1
     TINYXDIRS = StdTinyxDirs
d874 1
a874 1
   TRIDENTDIRS = $(STDDIRS) $(TINYXDIRS) \
d877 2
a878 4
   TRIDENTOBJS = TinyxObjs
   TRIDENTLIBS = TinyPreFbLibs $(TRIDENT) $(FBDEV) $(VESA) $(LAYER) \
		 TinyxLibs TinyFbPostFbLibs
TRIDENTSYSLIBS = StdTinyxSysLibs
d893 1
a893 1
XCOMM server with TinyX C&T driver
d896 1
a896 1
       VESADIR = $(TINYXDIR)/vesa
d898 1
a898 1
      CHIPSDIR = $(TINYXDIR)/chips
d901 1
a901 1
     TINYXDIRS = StdTinyxDirs
d903 1
a903 1
   CHIPSDIRS = $(STDDIRS) $(TINYXDIRS) \
d906 2
a907 3
   CHIPSOBJS = TinyxObjs
   CHIPSLIBS = TinyPreFbLibs $(CHIPS) $(VESA) $(LAYER) TinyxLibs TinyFbPostFbLibs
CHIPSSYSLIBS = StdTinyxSysLibs
d922 1
a922 1
XCOMM server with TinyX Mach64 driver (for Mobility 1 machines)
d925 1
a925 1
       VESADIR = $(TINYXDIR)/vesa
d927 1
a927 1
     MACH64DIR = $(TINYXDIR)/mach64
d930 1
a930 1
     TINYXDIRS = StdTinyxDirs
d932 1
a932 1
   MACH64DIRS = $(STDDIRS) $(TINYXDIRS) \
d935 2
a936 3
   MACH64OBJS = TinyxObjs
   MACH64LIBS = TinyPreFbLibs $(MACH64) $(VESA) $(LAYER) TinyxLibs TinyFbPostFbLibs
MACH64SYSLIBS = StdTinyxSysLibs
d954 1
a954 1
      FBDEVDIR = $(TINYXDIR)/fbdev
d956 1
a956 1
       VESADIR = $(TINYXDIR)/vesa
d958 1
a958 1
       I810DIR = $(TINYXDIR)/i810
d961 1
a961 1
     TINYXDIRS = StdTinyxDirs
d963 1
a963 1
      I810DIRS = $(STDDIRS) $(TINYXDIRS) $(SHADOWDIR) $(I810DIR)
d965 2
a966 3
     I810OBJS = TinyxObjs
      I810LIBS = TinyPreFbLibs $(I810) TinyxLibs TinyFbPostFbLibs
   I810SYSLIBS = StdTinyxSysLibs
d982 1
a982 1
XCOMM server with TinyX SiS 530 driver
d985 1
a985 1
    SIS530DIR = $(TINYXDIR)/sis530
d988 1
a988 1
    TINYXDIRS = StdTinyxDirs
d990 1
a990 1
   SIS530DIRS = $(STDDIRS) $(TINYXDIRS) $(SIS530DIR)
d992 2
a993 3
   SIS530OBJS = TinyxObjs
   SIS530LIBS = TinyPreFbLibs $(SIS530) TinyxLibs TinyFbPostFbLibs
SIS530SYSLIBS = StdTinyxSysLibs
d1008 1
a1008 1
XCOMM server with TinyX S3 Trio driver
d1011 1
a1011 1
    TRIODIR = $(TINYXDIR)/trio
d1014 1
a1014 1
  TINYXDIRS = StdTinyxDirs
d1016 1
a1016 1
   TRIODIRS = $(STDDIRS) $(TINYXDIRS) $(TRIODIR)
d1018 2
a1019 3
   TRIOOBJS = TinyxObjs
   TRIOLIBS = TinyPreFbLibs $(TRIO) TinyxLibs TinyFbPostFbLibs
TRIOSYSLIBS = StdTinyxSysLibs
d1037 1
a1037 1
     FBDEVDIR = $(TINYXDIR)/fbdev
d1040 1
a1040 1
    PCMCIADIR = $(TINYXDIR)/pcmcia
d1043 3
a1045 1
      IPAQDIR = $(TINYXDIR)/ipaq
d1048 1
a1048 1
    TINYXDIRS = StdTinyxDirs
d1050 1
a1050 1
     IPAQDIRS = $(STDDIRS) $(TINYXDIRS) $(FBDEVDIR) $(LAYERDIR) $(SHADOWDIR) $(PCMCIADIR) $(IPAQDIR)
d1052 2
a1053 4
     IPAQOBJS = TinyxObjs
     IPAQLIBS = TinyPreFbLibs $(IPAQ) $(FBDEV) $(LAYER) $(SHADOW) \
		$(PCMCIA) TinyxLibs TinyFbPostFbLibs
  IPAQSYSLIBS = StdTinyxSysLibs
d1068 1
a1068 1
XCOMM server with TinyX S3 Trio and SiS530 driver for the TS300/TS400
d1071 1
a1071 1
      TRIODIR = $(TINYXDIR)/trio
d1074 1
a1074 1
    SIS530DIR = $(TINYXDIR)/sis530
d1077 1
a1077 1
     TS300DIR = $(TINYXDIR)/ts300
d1080 1
a1080 1
    TINYXDIRS = StdTinyxDirs
d1082 1
a1082 1
    TS300DIRS = $(STDDIRS) $(TINYXDIRS) $(TRIODIR) $(SIS530DIR) $(TS300DIR)
d1084 2
a1085 3
    TS300OBJS = TinyxObjs
    TS300LIBS = TinyPreFbLibs $(TS300) $(TRIO) $(SIS530) TinyxLibs TinyFbPostFbLibs
 TS300SYSLIBS = StdTinyxSysLibs
d1100 1
a1100 1
XCOMM server with TinyX FB driver only
d1102 1
a1102 1
    ITSYDIR = $(TINYXDIR)/itsy
d1105 1
a1105 1
  TINYXDIRS = StdTinyxDirs
d1107 1
a1107 1
   ITSYDIRS = $(STDDIRS) $(TINYXDIRS) $(ITSYDIR)
d1109 2
a1110 3
   ITSYOBJS = TinyxObjs
   ITSYLIBS = TinyPreFbLibs $(ITSY) TinyxLibs TinyFbPostFbLibs
ITSYSYSLIBS = StdTinyxSysLibs
d1125 1
a1125 1
XCOMM server with vesa driver only based on TinyX server
d1128 1
a1128 1
    VESADIR = $(TINYXDIR)/vesa
d1131 1
a1131 1
   TINYXDIRS = StdTinyxDirs
d1133 1
a1133 1
    VESADIRS = $(STDDIRS) $(TINYXDIRS) $(VESADIR) $(SHADOWDIR) $(LAYERDIR)
d1135 2
a1136 3
   VESAOBJS = TinyxObjs
   VESALIBS = TinyPreFbLibs $(VESA) $(LAYER) TinyxLibs TinyFbPostFbLibs
VESASYSLIBS = StdTinyxSysLibs
d1149 1
a1149 1
TINYXSUBDIRS=$(TINYXDIRS) $(FBDEVDIR) $(SAVAGEDIR) $(TRIDENTDIR) $(I810DIR) \
d1152 1
a1152 1
#endif	/* TinyXServer */
d1167 1
a1167 1
XPLIBS = PreFbLibs $(XPDDXLIBS) $(XPDDXFBLIBS) $(MI) $(XPEXTENSIONS)
d1170 1
a1170 1
XPLIBS = PreFbLibs $(XPFBLIBS) BarePostFbLibs $(XPEXTENSIONS)
d1174 1
a1174 1
XPSYSLIBS = $(FONT) $(CBRT) $(SYSLIBS) -lw
d1176 1
a1176 1
XPSYSLIBS = $(FONT) $(CBRT) $(SYSLIBS)
d1186 1
a1186 1
	$(XPLIBS),$(XPSYSLIBS))
d1208 1
a1208 1
XNESTSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XLIB) $(NOAUTH_SYSLIBS)
d1217 1
a1217 1
	$(XNESTLIBS),$(XNESTSYSLIBS))
d1273 1
a1273 1
XVFBLIBS = PreFbLibs $(XVFB) $(FB) PostFbLibs
d1283 1
a1283 1
	$(XVFBLIBS),$(XVFBSYSLIBS))
a1285 43
#if defined(XdmxServer) && XdmxServer
XCOMM
XCOMM distribued multihead Server
XCOMM
#ifndef Win32Architecture
XDMXDDXDIR = hw/dmx
#else
XDMXDDXDIR = hw
#endif
FBSUBDIR = fb
XDMXDIRS = $(STDDIRS) $(XDMXDDXDIR) $(SHADOWDIR) $(DEPDIRS) $(FBDIR)
#if BuildGlxInDmx
#if BuildXinerama
GLXPROXY_EXTRAOBJS = hw/dmx/panoramiX.o
#endif
GLXPROXYLIB = hw/dmx/glxProxy/LibraryTargetName(glxProxy)
#endif
#if !defined(LynxOSArchitecture) && \
    !defined(Win32Architecture) && \
    !defined(QNX4Architecture)
XDMXOBJS = hw/dmx/miinitext.o $(GLXPROXY_EXTRAOBJS)
#else
XDMXOBJS = hw/dmx/miinitext.o $(GLXPROXY_EXTRAOBJS) dix/main.o
#endif
XDMXINPUT  = hw/dmx/input/LibraryTargetName(dmxinput)
XDMXCONFIG = hw/dmx/config/LibraryTargetName(dmxconfig)
XDMX = hw/dmx/LibraryTargetName(dmxlib) $(XDMXCONFIG) $(GLXPROXYLIB)
XDMXLIBS = PreFbLibs $(XDMX) MiExtLibs $(FB) $(MI) $(DMXEXTENSIONS) $(XDMXINPUT)
#if BuildRender
XDMXRENDERLIB = $(XRENDERLIB)
#endif
XDMXSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XILIB) $(XMULIB) $(XDMXRENDERLIB) \
	      $(XLIB) $(NOAUTH_SYSLIBS)
#if HasParallelMake
MakeMutex($(XDMXDIRS) $(XDMXOBJS) $(XDMXLIBS) $(XDMXSYSLIBS))
#endif
#if ForceServerRemake
$(XDMXOBJS) $(XDMXLIBS) $(XDMXSYSLIBS):: $(XDMXDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xdmx,$(XDMXDIRS),$(XDMXOBJS) $(XDMXDEFFILE), \
       $(LIBCWRAPPER) $(XDMXLIBS),$(XDMXSYSLIBS))
#endif /* XdmxServer */
d1292 4
a1295 1
#if 1
d1334 1
a1334 1
	     $(XWINLIBS),$(XWINSYSLIBS)) 
d1357 2
a1360 1
DARWINOBJS = $(DARWINDDXDIR)/miinitext.o
d1362 1
a1362 1
DARWINEXTLIBS = MiExtLibs FbPostFbLibs $(DARWINDDXDIR)/LibraryTargetName(darwin)
d1374 11
d1403 2
a1404 2
SetUIDServerTarget(XDarwinApp,$(DARWINDIRS),$(DARWINOBJS), \
	$(DARWINLIBS) $(QUARTZLIB) $(DARWINEXTLIBS), \
d1505 1
a1505 1
	  $(XVFBDDXDIR) $(XNESTDDXDIR) $(XDMXDDXDIR)
d1508 1
a1508 1
          $(LMFCFBDIR) $(DDXDIRS) $(FBSUBDIR) $(TINYXSUBDIRS) $(MIEXTDIRS) \
@


1.16.2.2
log
@Pull up following revision(s) (requested by ghen in ticket #1655):
	xfree/xc/programs/Xserver/hw/xfree86/input/usbtablet/usbtablet.man: revision 1.1
	xfree/xc/programs/Xserver/hw/xfree86/loader/xf86sym.c: revision 1.10
	xfree/xc/config/cf/NetBSD.cf: revision 1.82
	xfree/xc/programs/Xserver/hw/xfree86/input/usbtablet/xf86USBtablet.c: revision 1.1
	xfree/xc/programs/Xserver/hw/xfree86/input/usbtablet/Imakefile: revision 1.1
	xfree/xc/programs/Xserver/hw/xfree86/loader/Imakefile: revision 1.2
	xfree/xc/programs/Xserver/Imakefile: revision 1.18
Introduces a driver for USB graphics tablets (digitizers) using the libusbhid
interface into XFree86.
Closes PR xsrc/23964
Reviewed by tron@@NetBSD.org
Code submitted in above PR by Dave Huang, written by Lennart Augustsson,
adapted to XFree86 4.x by Matthieu Herrb for OpenBSD.
The patches to fit that driver into the existing xsrc have been slightly
changed to bring them up to date.
I'm using the driver with a Wacom Graphire 3 ("Sapphire").
@
text
@d314 1
d320 1
@


1.15
log
@Add definitions for XalphaNetBSDServer.
@
text
@d652 24
d1498 1
@


1.14
log
@Fix device dependent X directory definitions for vax and x68k. (untested)
DDXDIR[123] is no longer used on XF86_4.
@
text
@d632 20
d1473 1
@


1.13
log
@Add Xhpc server definitions.
Untested, but it should be similar with Xdreamcast.
@
text
@d695 1
a695 1
X68DIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB16DIR) $(X68DDXDIR1) $(DEPDIRS)
d1197 2
a1198 2
DDXDIR1 = hw/netbsd/vax
VAXDIRS = $(STDDIRS) $(MFBDIR) $(DDXDIR1) $(DEPDIRS)
d1456 2
@


1.12
log
@Required mfb/cfb* directories for each server should be specified by
like CFB8SUBDIR, not CFB8DIR which was used on XF86_3.
As per comments around lines 283-301.
@
text
@d651 18
d1454 1
@


1.11
log
@Add Xdreamcast server definitions.

(Not enabled yet until config/cf/NetBSD.cf is updated properly)
@
text
@d655 2
a656 2
MFBDIR   = mfb
CFB8DIR  = cfb
d673 3
a675 3
MFBDIR	= mfb
CFB8DIR	= cfb
CFB16DIR = cfb16
d1178 1
a1178 1
MFBDIR  = mfb
d1408 2
a1409 2
MFBDIR = mfb
CFB8DIR = cfb
d1411 3
a1413 3
CFB16DIR = cfb16
CFB24DIR = cfb24
CFB32DIR = cfb32
@


1.10
log
@Check if X68kServer is defined before referencing it
@
text
@d631 20
a650 1
  
d1435 1
@


1.9
log
@Resolve conflicts from import of XFree86 4.4.0.
@
text
@d650 1
a650 1
#if X68kServer
@


1.8
log
@Add X68k.
UNTESTED; please someone who has a 060.  it takes weeks with my 030...
@
text
@d5 1
a5 1
XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.278 2003/02/17 17:06:40 dawes Exp $
a52 14
#if BuildPexExt
         PEXLIBS = PEX5/dipex/dispatch/ModuleLibraryTargetName(didipex) \
                   PEX5/dipex/swap/ModuleLibraryTargetName(diswapex) \
                   PEX5/dipex/objects/ModuleLibraryTargetName(diobpex) \
                   PEX5/dipex/dispatch/ModuleLibraryTargetName(didipex) \
                   PEX5/ddpex/mi/level4/ModuleLibraryTargetName(ddpex4) \
                   PEX5/ddpex/mi/level3/ModuleLibraryTargetName(ddpex3) \
                   PEX5/ddpex/mi/shared/ModuleLibraryTargetName(ddpexs) \
                   PEX5/ddpex/mi/level2/ModuleLibraryTargetName(ddpex2) \
                   PEX5/ddpex/mi/level1/ModuleLibraryTargetName(ddpex1) \
		   PEX5/ospex/ModuleLibraryTargetName(ospex) 
          PEXDIR = PEX5
#endif

a53 8
#if GlxStubLib && !DoLoadableServer
      GLXLIB = glxStub/LibraryTargetName(ServerGlx) 
      GLXDIR = glxStub
#else
#if defined(GlxStaticServerLib) && !DoLoadableServer
      GLXLIB = GlxStaticServerLib
      GLXDIR = 
#else
a75 2
#endif
#endif
a80 5
#if BuildXIE 
         XIEEXT = XIE/dixie/ModuleLibraryTargetName(dixie) \
	          XIE/mixie/ModuleLibraryTargetName(mixie)
         XIEDIR = XIE
#endif
d175 1
a175 2
   LOADABLEEXTS = $(PEXLIBS) $(XIEEXT) $(MISCEXT) $(DBEEXT) $(RECORDEXT) \
                  $(GLXEXT) $(XTRAPEXT)
d180 1
a180 2
     EXTENSIONS = $(OTHEREXTS) $(PEXLIBS) $(GLXEXT) $(RANDRLIB) \
                  $(RENDERLIB)
d182 1
a182 2
                  $(XIEEXT) $(LBXEXT) $(DBEEXT) $(RECORDEXT) \
                  $(SITEEXTS) $(XTRAPEXT)
d184 1
a184 1
        EXTDIRS = Xext $(XKBDIR) $(XIDIR) $(XIEDIR) $(PEXDIR) $(GLXDIR) \
d240 1
a240 4
           FONT = $(LDPRELIB) $(XFONTLIB)
#endif
#if FontLibSharedFreeType
      SERVERFT2 = $(FREETYPE2LIB)
d242 1
a242 1
       FONTLIBS = $(FONT) $(XPFBLIBS) $(SERVERFT2)
d259 2
a260 2
        SYSLIBS = $(XAUTHLIB) $(XDMCPLIB) $(ZLIB) MathLibrary Krb5Libraries \
		  $(DBMLIBS) $(USB) $(PAMLIBS) $(EXTRASYSLIBS)
d265 8
d286 1
a286 1
 *  MFBDIR = mfb
d288 5
a292 5
 *  CFB4DIR  = cfb4  (if the server needs 4 bit cfb)
 *  CFB8DIR  = cfb   (8 bit cfb)
 *  CFB16DIR = cfb16 (16 bit cfb)
 *  CFB24DIR = cfb24 (24 bit cfb)
 *  CFB32DIR = cfb32 (32 bit cfb)
d310 2
a311 2
MFBDIR  = mfb
CFB8DIR = cfb
d337 5
a341 5
MFBDIR   = mfb
CFB8DIR  = cfb
CFB16DIR = cfb16
CFB24DIR = cfb24
CFB32DIR = cfb32
d360 2
a361 2
MFBDIR  = mfb
CFB8DIR = cfb
d379 1
a379 1
	$(SUNLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(SUNSYSLIBS))
d390 5
a394 5
MFBDIR = mfb
CFB8DIR = cfb
CFB16DIR = cfb16
CFB24DIR = cfb24
CFB32DIR = cfb32
d408 1
a408 1
	$(SUN24LIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(FONTLIBS) $(SYSLIBS))
d419 1
a419 1
MFBDIR = mfb
d429 1
a429 1
	$(SUNMLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(FONTLIBS) $(SYSLIBS))
d440 2
a441 2
MFBDIR = mfb
CFB8DIR = cfb
d458 1
a458 1
MFBDIR = mfb
a470 25
#if defined(XhpServer) && XhpServer
XCOMM
XCOMM Hewlett Packard CFB Server
XCOMM
MFBDIR  = mfb
CFB8DIR = cfb
CFB32DIR = cfb32
HPDDXDIR = hw/hp
HPOBJS = hw/hp/hp.o
#if BuildLowMem
HPSUBDIRS = $(STDDIRS) $(LMFCFBDIR) $(HPDDXDIR) $(DEPDIRS)
HPLIBS = LMFCFBLibs
#else
HPSUBDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB32DIR) $(HPDDXDIR) $(DEPDIRS)
HPLIBS = CFB32Libs
#endif
HPSYSLIBS = $(FONTLIBS) $(CBRT) $(SYSLIBS)
ServerTarget(Xhp,$(HPSUBDIRS),$(HPOBJS), \
	$(HPLIBS),$(HPSYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall Xhp
#endif
#endif	/* XhpServer */


d501 6
a506 6
FBDIR = fb
MFBDIR  = mfb
CFB8DIR = cfb
CFB16DIR = cfb16
CFB24DIR = cfb24
CFB32DIR = cfb32
d509 5
d515 1
a515 1
AFBDIR = afb
d622 1
a622 1
SetUIDServerTarget(XFree86,$(XF86SERVERSUBDIRS),$(XF86SERVEROBJS), \
d1077 3
a1079 3
MFBDIR  = mfb
CFB8DIR = cfb
CFB32DIR = cfb32
d1105 1
a1105 1
	$(XPLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(XPSYSLIBS))
d1135 2
a1136 2
ServerTarget(Xnest,$(XNESTDIRS),$(XNESTOBJS), \
	$(XNESTLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(XNESTSYSLIBS))
d1144 4
a1147 4
MFBDIR   = mfb
CFB8DIR  = cfb
CFB16DIR = cfb16
CFB32DIR = cfb32
d1175 2
a1176 2
MFBDIR = mfb
FBDIR  = fb
d1201 2
a1202 2
ServerTarget(Xvfb,$(XVFBDIRS),$(XVFBOBJS), \
	$(XVFBLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(XVFBSYSLIBS))
d1210 1
a1210 1
FBDIR = fb
d1253 1
a1253 1
	     $(XWINLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(XWINSYSLIBS)) 
d1275 1
a1275 1
FBDIR = fb
d1277 1
a1279 1
DARWINOBJS = $(DARWINDDXDIR)/xfIOKitStartup.o
d1283 1
d1289 1
a1289 1
	$(DARWINLIBS) $(DARWINEXTLIBS),$(DARWINSYSLIBS))
d1293 4
a1296 3
#if GlxUseAqua

AQUAEXTENSIONS = $(OTHEREXTS) $(PEXLIBS) $(RANDRLIB) $(RENDERLIB)
d1304 2
a1305 6
#else /* !GlxUseAqua */

QUARTZEXTLIBS = $(DARWINEXTLIBS)

#endif /* GlxUseAqua */

d1308 5
a1312 1
QUARTZOBJS = $(DARWINDDXDIR)/quartz/quartzStartup.o
a1317 2
AGLBUNDLEDIR = $(XDARWINAPPDIR)/Resources/glxAGL.bundle/Contents/MacOS
MESABUNDLEDIR = $(XDARWINAPPDIR)/Resources/glxMesa.bundle/Contents/MacOS
d1323 2
a1324 2
	$(DARWINLIBS) $(DARWINDDXDIR)/quartz/LibraryTargetName(XQuartz) \
	$(QUARTZEXTLIBS),$(DARWINSYSLIBS) $(QUARTZSYSLIBS))
d1334 2
a1335 1
 * GLX bundles for Quartz (installed in their own bundles inside XDarwin's)
d1337 39
a1375 13
AllTarget(glxAGL)
glxAGL: XDarwinApp
	$(CC) -bundle -o glxAGL GL/glx/glxext.o GL/glx/libglx.a \
		GL/aqua/libAquaGLcore.a -framework AGL -framework OpenGL \
		-bundle_loader XDarwinApp
InstallProgram(glxAGL,$(AGLBUNDLEDIR))

AllTarget(glxMesa)
glxMesa: XDarwinApp
	$(CC) -bundle -o glxMesa GL/glx/glxext.o \
		GL/glx/libglx.a GL/mesa/GLcore/libGLcore.a \
		-bundle_loader XDarwinApp
InstallProgram(glxMesa,$(MESABUNDLEDIR))
d1412 2
a1413 2
CFBDIRS = $(CFB8DIR) $(CFB16DIR) $(CFB24DIR) $(CFB32DIR)
MIEXTDIRS = $(SHADOWDIR) $(LAYERDIR)
d1419 3
a1421 2
SUBDIRS = $(STDDIRS) $(MFBDIR) $(CFBDIRS) $(IPLANDIRS) $(ILBMDIR) $(AFBDIR) \
          $(LMFCFBDIR) $(DDXDIRS) $(FBDIR) $(KDRIVEDIRS) $(MIEXTDIRS) \
d1437 3
@


1.7
log
@Commit framework to build native Xmac68k server, conditionally on
"Xmac68kServer". This isn't the default for mac68k, because it doesn't
quite work yet; it fails to recognize the keyboard and mouse.
@
text
@d697 18
@


1.6
log
@pull across vax Xmono sources from XF3 tree.  while it doesn't exactly
build (missing header file) right now, it works exactly as well as it
does in the XF3 tree...
@
text
@d1387 26
d1418 1
a1418 1
	  $(MACPPCDDXDIR) \
@


1.5
log
@Check XmacppcServer is defined before reference.
@
text
@d1184 16
@


1.4
log
@make Xmacppc build natively as well.
@
text
@d679 1
a679 1
#if XmacppcServer
@


1.3
log
@build Xmacppc Xserver for macppc as well.
@
text
@d689 3
a691 1
ServerTarget(Xmacppc,$(MACPPCDIRS),$(MACPPCOBJS),$(MACPPCLIBS),$(SYSLIBS))
@


1.2
log
@Arrange to link the X servers with FOOLIB rather than DEPFOOLIB.  It makes no
difference in the static-only case, but if SharedLibFoo is set then DEPFOOLIB
is empty.
@
text
@d678 16
d1374 1
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
XCOMM $TOG: Imakefile /main/249 1997/12/11 11:18:14 kaleb $
d5 1
a5 1
XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.205 2000/12/11 20:29:31 dawes Exp $
d24 1
a24 1
#ifndef BuildXinerama
d88 1
a88 1
               GL/mesa/src/ModuleLibraryTargetName(GLcore)
d91 1
a91 2
               GL/mesa/src/X/ModuleLibraryTargetName(GLcoreX) \
               GL/mesa/src/ModuleLibraryTargetName(GLcore) \
d106 3
a108 1
      XIEEXT = XIE/dixie/ModuleLibraryTargetName(dixie) XIE/mixie/ModuleLibraryTargetName(mixie)
d110 5
a114 2
#if BuildXIE || BuildXIElib
      XIEDIR = XIE
a115 3
#if BuildXKB
      XKBEXT = xkb/LibraryTargetName(xkb)
      XKBDIR = xkb
d129 1
a129 1
         RECORDEXT = record/LibraryTargetName(record)
d132 5
a136 1
         RECORDDIR = record
d139 1
a139 1
     SITEEXTS = SiteExtensionLibs
d142 1
a142 1
     SITEEXTDIRS = SiteExtensionDirs
d145 1
a145 1
        LIBDL = DlLibrary
d147 1
a147 1
     LIBREGEX = RegexLibrary
d150 1
a150 1
  LIBCWRAPPER = os/libcwrapper.o
d156 1
a156 1
#define XpRasterDDX NO
d181 2
a182 1
XPDDXLIBS = Xprint/LibraryTargetName(printer) $(XPRASTLIB) $(XPPCLLIB) $(XPMPCLLIB) $(XPPSLIB)
d198 4
d203 1
a203 1
     EXTENSIONS = $(OTHEREXTS) $(RENDERLIB)
d205 1
a205 1
                  $(GLXEXT)
d210 2
a211 1
     EXTENSIONS = $(OTHEREXTS) $(PEXLIBS) $(GLXEXT) $(RENDERLIB)
d213 2
a214 1
                  $(XIEEXT) $(LBXEXT) $(DBEEXT) $(RECORDEXT) $(SITEEXTS)
d217 2
a218 3
                  $(LBXDIRS) $(DBEDIR) $(RECORDDIR) $(SITEEXTDIRS) $(RENDERDIR)
         XAULIB = $(XAUTHSRC)/LibraryTargetName(Xau)
       XDMCPLIB = $(XDMCPLIBSRC)/LibraryTargetName(Xdmcp)
d222 1
a222 1
             OS = os/LibraryTargetName(os) $(XAULIB) $(XDMCPLIB)
d241 1
d245 4
a248 2
            CFB = cfb/LibraryTargetName(cfb) cfb16/LibraryTargetName(cfb16) \
		  cfb24/LibraryTargetName(cfb24) cfb32/LibraryTargetName(cfb32)
d250 8
a257 4
           CFB4 = cfb/LibraryTargetName(cfb) cfb4/LibraryTargetName(cfb4)
          CFB16 = cfb/LibraryTargetName(cfb) cfb16/LibraryTargetName(cfb16)
          CFB24 = cfb/LibraryTargetName(cfb) cfb24/LibraryTargetName(cfb24)
          CFB32 = cfb/LibraryTargetName(cfb) cfb32/LibraryTargetName(cfb32)
d259 1
d270 1
a270 1
           FONT = $(FONTLIBSRC)/LibraryTargetName(Xfont)
d274 4
a277 1
       FONTLIBS = $(FONT) $(XPFBLIBS)
d282 1
a282 1
	    USB = -lusb
d294 3
a296 2
        SYSLIBS = $(ZLIB) MathLibrary Krb5Libraries $(DBMLIBS) $(USB) \
	$(PAMLIBS) $(EXTRASYSLIBS)
d298 1
a323 7
 *  Additional ddx directories can be split across three variables:
 *  DDXDIR1, DDXDIR2, and DDXDIR3.  Most servers only use DDXDIR1,
 *  but if two servers can be built on a platform then DDXDIR1 is
 *  typically set to the ddx directories that are shared by both
 *  servers, DDXDIR2 is the directories unique to one of the servers,
 *  and DDXDIR3 is the directories unique to the other server.
 *  
d333 1
a333 1
#if XdecServer
d339 1
a339 1
DDXDIR1 = hw/dec/ws
d341 1
a341 1
DECDIRS = $(STDDIRS) $(LMFCFBDIR) $(DDXDIR1) $(DEPDIRS)
d343 1
a343 1
DECDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(DDXDIR1) $(DEPDIRS)
d351 2
a352 1
ServerTarget(Xdec,$(DECDIRS),$(DECOBJS),$(DECLIBS),$(FONTLIBS) $(SYSLIBS))
d359 1
a359 1
#if XdecMultiDepthServer
d369 4
a372 2
DDXDIR1  = hw/dec/ws
DECDIRS1 = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB16DIR) $(CFB24DIR) $(CFB32DIR) $(DDXDIR1) $(DEPDIRS)
d375 2
a376 1
ServerTarget(Xdec_md,$(DECDIRS1),$(DECOBJS1),$(DECLIBS1),$(FONTLIBS) $(SYSLIBS))
d383 1
a383 1
#if XsunServer
d389 6
a394 2
DDXDIR1 = hw/sun
#ifndef AmoebaArchitecture
a395 2
#else
SUNOBJS = hw/sun/sunInitColor.o
d398 1
a398 1
SUNDIRS = $(STDDIRS) $(LMFCFBDIR) $(DDXDIR1) $(DEPDIRS)
d401 1
a401 1
SUNDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(DDXDIR1) $(DEPDIRS)
d405 2
a406 1
SetUIDServerTarget(Xsun,$(SUNDIRS),$(SUNOBJS),$(SUNLIBS),$(SUNSYSLIBS))
d413 1
a413 1
#if Xsun24Server
d422 9
a430 2
DDXDIR1 = hw/sun
SUN24DIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB16DIR) $(CFB24DIR) $(CFB32DIR) $(DDXDIR1) $(DEPDIRS)
d432 1
d434 2
a435 1
SetUIDServerTarget(Xsun24,$(SUN24DIRS),$(SUN24OBJS),$(SUN24LIBS),$(FONTLIBS) $(SYSLIBS))
d442 1
a442 1
#if XsunMonoServer
d447 5
a451 2
DDXDIR1 = hw/sun
SUNMDIRS = $(STDDIRS) $(MFBDIR) $(DDXDIR1) $(DEPDIRS)
d453 4
a456 2
SUNMLIBS = hw/sun/LibraryTargetName(sun) MFBBareLibs $(OTHEREXTS)
SetUIDServerTarget(XsunMono,$(SUNMDIRS),$(SUNMOBJS),$(SUNMLIBS),$(FONTLIBS) $(SYSLIBS))
d463 1
a463 34
#if XsunAmoebaServer
XCOMM
XCOMM Sun server for Amoeba
XCOMM
MFBDIR = mfb
CFB8DIR = cfb
DDXDIR1 = hw/sunAmoeba
SUNDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(DDXDIR1) $(DEPDIRS)
SUNOBJS = hw/sunAmoeba/sunInitColor.o
SUNLIBS = hw/sunAmoeba/LibraryTargetName(sun) CFB8Libs
ServerTarget(Xsun,$(SUNDIRS),$(SUNOBJS),$(SUNLIBS),$(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall Xsun
#endif
#endif /* XsunAmoebaServer */


#if XsunAmoebaMonoServer
XCOMM
XCOMM Sun monochrome server for Amoeba
XCOMM
MFBDIR = mfb
DDXDIR1 = hw/sunAmoeba
SUNMDIRS = $(STDDIRS) $(MFBDIR) $(DDXDIR1) $(DEPDIRS)
SUNMOBJS = hw/sunAmoeba/sunInitMono.o hw/sunAmoeba/sunInExMono.o
SUNMLIBS = hw/sunAmoeba/LibraryTargetName(sun) MFBBareLibs $(OTHEREXTS)
ServerTarget(XsunMono,$(SUNMDIRS),$(SUNMOBJS),$(SUNMLIBS),$(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall XsunMono
#endif
#endif /* XsunAmoebaMonoServer */


#if XsunLynxServer
d469 2
a470 2
DDXDIR1 = hw/sunLynx
SUNDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(DDXDIR1) $(DEPDIRS)
d473 2
a474 1
ServerTarget(Xsun,$(SUNDIRS),$(SUNOBJS),$(SUNLIBS),$(FONTLIBS) $(SYSLIBS))
d481 1
a481 1
#if XsunLynxMonoServer
d486 2
a487 2
DDXDIR1 = hw/sunLynx
SUNMDIRS = $(STDDIRS) $(MFBDIR) $(DDXDIR1) $(DEPDIRS)
d490 2
a491 1
ServerTarget(XsunMono,$(SUNMDIRS),$(SUNMOBJS),$(SUNMLIBS),$(FONTLIBS) $(SYSLIBS))
d498 1
a498 23
#if XibmServer
XCOMM
XCOMM IBM server
XCOMM
#if SpecialMalloc
IBMALLOCLIB = hw/ibm/common/LibraryTargetName(ibmalloc)
#else
IBMALLOCLIB =
#endif
MFBDIR  = mfb
CFB8DIR = cfb
DDXDIR1 = hw/ibm
IBMDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(DDXDIR1) $(DEPDIRS)
IBMOBJS = hw/ibm/common/ibmcomm.o hw/ibm/common/ibmDate.o
IBMLIBS = hw/ibm/AIX/hft.o hw/ibm/LibraryTargetName(ibm) $(IBMALLOCLIB) CFB8Libs
ServerTarget(Xibm,$(IBMDIRS),$(IBMOBJS),$(IBMLIBS),$(FONTLIBS) $(SYSLIBS))
#ifndef ServerToInstall
#define ServerToInstall Xibm
#endif
#endif /* XibmServer */


#if XhpServer
d505 1
a505 1
DDXDIR1 = hw/hp
d508 1
a508 1
HPSUBDIRS = $(STDDIRS) $(LMFCFBDIR) $(DDXDIR1) $(DEPDIRS)
d511 1
a511 1
HPSUBDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB32DIR) $(DDXDIR1) $(DEPDIRS)
d515 2
a516 1
ServerTarget(Xhp,$(HPSUBDIRS),$(HPOBJS),$(HPLIBS),$(HPSYSLIBS))
d527 1
a527 1
#if XF86Server
d530 1
a530 1
#if XnestServer
d533 1
a533 1
#if XVirtualFramebufferServer
d536 1
a536 1
#if XWinServer && !MakeDllModules
d539 4
a542 4
#if defined(XF86Server) || \
    defined(XnestServer) || \
    defined(XVirtualFramebufferServer) || \
    (!MakeDllModules && defined(XWinServer))
d549 1
a549 1
#if XF86Server
d560 1
d564 4
a567 2
DDXDIR1  = hw/xfree86
XF86SERVERSUBDIRS = $(STDDIRS) $(MFBDIR) $(FBDIR) $(CFB8DIR) $(CFB16DIR) $(CFB24DIR) $(CFB32DIR) $(AFBDIR) $(SHADOWDIR) $(DDXDIR1) $(DEPDIRS)
a571 1
XF86HWLIB  = $(XF86HWSRC)/LibraryTargetName(common_hw)
d616 1
a616 1
XF86VBELIB = $(XF86OSSRC)/vbe/vbe.o
d626 3
d634 1
a634 1
	      $(XF8_32WIDLIB) $(XF8_32BPPLIB) $(XF86VBELIB) \
d640 2
a641 2
XF86LIBS  = $(XF86INIT) $(XF86COMLIB) $(XF86RACLIB) $(XF86PARSLIB) \
	    $(XF86OSLIB) $(XF86INT10LIB)
d643 2
a644 1
XF86LIBS  = $(XF86INIT) $(XF86COMLIB) $(XF86PARSLIB) $(XF86OSLIB) 
d648 2
a649 1
XF86MAINLIBS = MiExtLibs PreFbLibsNoFont $(FONTBASE) $(OTHEREXTS) $(XF86COMLIB) \
d652 2
d657 3
d661 1
a661 3
XF86SERVEROBJS = $(XF86DRVOBJS) $(XF86IDRVOBJS)
XF86SERVERLIBS = $(XF86DRVLIBS) $(XF86IDRVLIBS) $(XF86LIBS) $(XF86LOADERLIB) \
		 $(XF86COMLIB) $(XF86MAINLIBS) $(XF86SCANLIB) $(XF86OSLIB)
d667 1
a667 1
	@@if [ -f $@@ ]; then touch $@@; fi
d669 2
a670 1
SetUIDServerTarget(XFree86,$(XF86SERVERSUBDIRS),$(XF86SERVEROBJS),$(XF86SERVERLIBS),$(XF86SERVERSYSLIBS))
d679 1
a679 1
#ifdef KDriveXServer
d685 3
d690 1
a690 1
          KDOS = $(KDOSDIR)/LibraryTargetName(linux)
d703 1
d710 1
a710 1
#define KdLibs $(KD) $(KDOS) $(PSEUDO8) MiExtLibs $(RENDERLIB) 
d712 1
a712 1
#if XfbdevServer
d722 1
a722 3
     SHADOWDIR = miext/shadow
     
   FBDEVDIRS = $(STDDIRS) $(KDDIRS) $(FBDEVDIR) $(SHADOWDIR)
d724 1
a724 1
   FBDEVLIBS = PreFbLibs $(FBDEV) KdLibs FbPostFbLibs
d732 1
a732 1
	@@if [ -f $@@ ]; then touch $@@; fi
d734 3
a736 2
ServerTarget(Xfbdev,$(FBDEVDIRS),$(FBDEVOBJS),$(FBDEVLIBS),$(FBDEVSYSLIBS))
#endif /* XFBDEVServer */
d738 1
a738 1
#if XSavageServer
d758 1
a758 1
	@@if [ -f $@@ ]; then touch $@@; fi
d760 3
a762 2
ServerTarget(Xsavage,$(SAVAGEDIRS),$(SAVAGEOBJS),$(SAVAGELIBS),$(SAVAGESYSLIBS))
#endif /* XSAVAGEServer */
d764 1
a764 1
#if XIgsServer
d784 1
a784 1
	@@if [ -f $@@ ]; then touch $@@; fi
d786 3
a788 2
ServerTarget(Xigs,$(IGSDIRS),$(IGSOBJS),$(IGSLIBS),$(IGSSYSLIBS))
#endif /* XIGSServer */
d790 1
a790 1
#if XTridentServer
a798 1
     SHADOWDIR = miext/shadow
d804 2
a805 1
   TRIDENTDIRS = $(STDDIRS) $(KDDIRS) $(FBDEVDIR) $(VESADIR) $(SHADOWDIR) $(TRIDENTDIR)
d807 1
a807 1
   TRIDENTLIBS = PreFbLibs $(TRIDENT) $(FBDEV) $(VESA) KdLibs FbPostFbLibs
d815 55
a869 1
	@@if [ -f $@@ ]; then touch $@@; fi
d871 7
a877 2
ServerTarget(Xtrident,$(TRIDENTDIRS),$(TRIDENTOBJS),$(TRIDENTLIBS),$(TRIDENTSYSLIBS))
#endif /* XTRIDENTServer */
d879 32
a910 1
#if XSis530Server
d930 1
a930 1
	@@if [ -f $@@ ]; then touch $@@; fi
d932 3
a934 2
ServerTarget(Xsis530,$(SIS530DIRS),$(SIS530OBJS),$(SIS530LIBS),$(SIS530SYSLIBS))
#endif /* XSIS530Server */
d936 1
a936 1
#if XTrioServer
d956 35
a990 1
	@@if [ -f $@@ ]; then touch $@@; fi
d992 3
a994 2
ServerTarget(Xtrio,$(TRIODIRS),$(TRIOOBJS),$(TRIOLIBS),$(TRIOSYSLIBS))
#endif /* XTRIOServer */
d996 1
a996 1
#if XTS300Server
d1022 1
a1022 1
	@@if [ -f $@@ ]; then touch $@@; fi
d1024 2
a1025 1
ServerTarget(Xts300,$(TS300DIRS),$(TS300OBJS),$(TS300LIBS),$(TS300SYSLIBS))
d1028 1
a1028 1
#if XItsyServer
d1047 1
a1047 1
	@@if [ -f $@@ ]; then touch $@@; fi
d1049 2
a1050 1
ServerTarget(Xitsy,$(ITSYDIRS),$(ITSYOBJS),$(ITSYLIBS),$(ITSYSYSLIBS))
d1053 1
a1053 1
#if XvesaServer
d1063 1
a1063 1
   SHADOWDIR = miext/shadow
d1065 1
a1065 3
    VESADIRS = $(STDDIRS) $(KDDIRS) $(VESADIR) $(SHADOWDIR)

   VESALIBS = PreFbLibs $(VESA) KdLibs FbPostFbLibs
d1073 1
a1073 1
	@@if [ -f $@@ ]; then touch $@@; fi
d1075 2
a1076 1
ServerTarget(Xvesa,$(VESADIRS),$(VESAOBJS),$(VESALIBS),$(VESASYSLIBS))
d1079 3
a1081 2
KDRIVEDIRS=$(KDDIRS) $(FBDEVDIR) $(SAVAGEDIR) $(TRIDENTDIR) $(SIS530DIR) \
	$(TRIODIR) $(TS300DIR) $(ITSYDIR) $(IGSDIR) $(VESADIR)
d1084 1
a1084 1
#if XprtServer
d1102 2
a1103 1
#if (defined(SunArchitecture) || defined(SparcArchitecture)) && defined(SVR4Architecture)
d1113 1
a1113 1
	@@if [ -f $@@ ]; then touch $@@; fi
d1115 2
a1116 1
ServerTarget(Xprt,$(XPSUBDIRS),$(XPOBJS),$(XPLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(XPSYSLIBS))
d1119 1
a1119 1
#if XnestServer
d1129 3
a1131 1
#if !defined(LynxOSArchitecture) && !defined(Win32Architecture) && !defined(QNX4Architecture)
a1136 1
#if DoLoadableServer
a1137 3
#else
XNESTLIBS = PreFbLibs $(XNEST) NoMfbPostFbLibs $(XF86OSLIB) $(XNEST)
#endif
d1144 1
a1144 1
	@@if [ -f $@@ ]; then touch $@@; fi
d1151 1
a1151 1
#if XnonServer
d1166 1
a1166 1
#if XVirtualFramebufferServer
d1170 1
a1170 1
MFBDIR   = mfb
a1186 1
#if DoLoadableServer
a1187 3
#else
XVFBLIBS = PreFbLibs $(XVFB) $(FB) PostFbLibs $(XF86OSLIB) $(MI)
#endif
d1194 1
a1194 1
	@@if [ -f $@@ ]; then touch $@@; fi
d1201 1
a1201 1
#if XWinServer
d1203 1
a1203 1
XCOMM server with DirectX framebuffer for Windows
d1205 7
a1211 5
MFBDIR   = mfb
CFB8DIR  = cfb
CFB16DIR = cfb16
CFB24DIR = cfb24
CFB32DIR = cfb32
d1213 9
a1221 4
DDXDIR2 = $(XWINDDXDIR)
XWINDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB16DIR) $(CFB24DIR) $(CFB32DIR) $(XWINDDXDIR) $(DEPDIRS)
#if BuildDPMS
XWINOBJS = hw/xwin/InitInput.o hw/xwin/InitOutput.o hw/xwin/stubs.o hw/xwin/directx.o hw/xwin/dpmsstubs.o dix/main.o
d1223 2
a1224 1
XWINOBJS = hw/xwin/InitInput.o hw/xwin/InitOutput.o hw/xwin/stubs.o hw/xwin/directx.o dix/main.o
d1226 12
a1237 3
XWIN = hw/xwin/LibraryTargetName(XWin)
XWINLIBS = PreFbLibs $(XWIN) $(CFB) PostFbLibs $(MI) $(SURFLIB) 
XWINSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XLIB) $(SYSLIBS)
d1239 1
a1239 1
MakeMutex($(XWINDIRS) $(XWINOBJS) $(XWIN) $(XWINLIBS) $(XWINSYSLIBS))
d1241 1
d1243 2
a1244 2
$(XWINOBJS) $(XWIN) $(XWINLIBS) $(XWINSYSLIBS):: $(XWINDIRS)
	@@if [ -f $@@ ]; then touch $@@; fi
d1246 1
d1248 1
a1248 1
	$(XWINLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(XWINSYSLIBS)) 
d1253 1
d1256 11
a1266 1
#if XDarwinServer 
d1270 78
a1347 12
MFBDIR  = mfb  /* mfb is needed for font stuff, even though we don't support a 1bpp screen */
CFB8DIR = cfb
CFB16DIR = cfb16
CFB32DIR = cfb32
DDXDIR1 = hw/darwin
DARWINDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB16DIR) $(CFB32DIR) $(DDXDIR1) $(DEPDIRS)
DARWINOBJS = 
DARWINLIBS = PreFbLibs hw/darwin/libdarwin.a $(CFB16) $(CFB32) $(CFB8) PostFbLibs ../../lib/font/libXfont.a ../../lib/font/stubs/libfntstubs.a

XCOMM we need extra link flags for IOKit stuff
EXTRA_LOAD_FLAGS = -framework IOKit
SetUIDServerTarget(Xdarwin,$(DARWINDIRS),$(DARWINOBJS),$(DARWINLIBS),$(SYSLIBS))
d1349 1
a1349 1
#define ServerToInstall Xdarwin
d1355 1
a1355 1
MIEXTDIRS = $(SHADOWDIR)
d1357 3
a1359 1
DDXDIRS = $(DDXDIR1) $(DDXDIR2) $(DDXDIR3) $(XVFBDDXDIR) $(XNESTDDXDIR)
d1361 2
a1362 1
          $(LMFCFBDIR) $(DDXDIRS) $(FBDIR) $(KDRIVEDIRS) $(MIEXTDIRS)
d1364 1
a1364 1
#if defined(ServerToInstall) && !defined(OS2Architecture) && !defined(QNX4Architecture)
a1376 1
CppManTarget(Xserver,)
@


1.1.1.1
log
@Initial import of XFree86 4.x
@
text
@@


1.1.1.2
log
@Import of XFree86 4.0.3
@
text
@d5 1
a5 1
XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.204 2000/11/30 23:30:01 dawes Exp $
@


1.1.1.3
log
@Import of XFree86 4.1.0.
@
text
@d1 1
a1 1
XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:47:01 cpqbld Exp $
d5 1
a5 1
XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.229 2001/05/18 17:48:30 torrey Exp $
d24 1
a24 1
#if !BuildXinerama
d107 1
a107 2
      XIEEXT = XIE/dixie/ModuleLibraryTargetName(dixie) \
	       XIE/mixie/ModuleLibraryTargetName(mixie)
d176 1
a176 2
XPDDXLIBS = Xprint/LibraryTargetName(printer) \
	    $(XPRASTLIB) $(XPPCLLIB) $(XPMPCLLIB) $(XPPSLIB)
d233 2
a234 4
            CFB = cfb/LibraryTargetName(cfb) \
		  cfb16/LibraryTargetName(cfb16) \
		  cfb24/LibraryTargetName(cfb24) \
		  cfb32/LibraryTargetName(cfb32)
d236 4
a239 8
           CFB4 = cfb/LibraryTargetName(cfb) \
		  cfb4/LibraryTargetName(cfb4)
          CFB16 = cfb/LibraryTargetName(cfb) \
		  cfb16/LibraryTargetName(cfb16)
          CFB24 = cfb/LibraryTargetName(cfb) \
		  cfb24/LibraryTargetName(cfb24)
          CFB32 = cfb/LibraryTargetName(cfb) \
		  cfb32/LibraryTargetName(cfb32)
d273 1
a273 1
		  $(PAMLIBS) $(EXTRASYSLIBS)
d334 1
a334 2
ServerTarget(Xdec,$(DECDIRS),$(DECOBJS), \
	$(DECLIBS),$(FONTLIBS) $(SYSLIBS))
d352 1
a352 3
DECDIRS1 = $(STDDIRS) $(MFBDIR) \
	   $(CFB8DIR) $(CFB16DIR) $(CFB24DIR) $(CFB32DIR) \
	   $(DDXDIR1) $(DEPDIRS)
d355 1
a355 2
ServerTarget(Xdec_md,$(DECDIRS1),$(DECOBJS1), \
	$(DECLIBS1),$(FONTLIBS) $(SYSLIBS))
d382 1
a382 2
SetUIDServerTarget(Xsun,$(SUNDIRS),$(SUNOBJS), \
	$(SUNLIBS),$(SUNSYSLIBS))
d399 1
a399 3
SUN24DIRS = $(STDDIRS) $(MFBDIR) \
	    $(CFB8DIR) $(CFB16DIR) $(CFB24DIR) $(CFB32DIR) \
	    $(DDXDIR1) $(DEPDIRS)
d402 1
a402 2
SetUIDServerTarget(Xsun24,$(SUN24DIRS),$(SUN24OBJS), \
	$(SUN24LIBS),$(FONTLIBS) $(SYSLIBS))
d417 2
a418 3
SUNMLIBS = hw/sun/LibraryTargetName(sun) MFBBareLibs $(EXTENSIONS)
SetUIDServerTarget(XsunMono,$(SUNMDIRS),$(SUNMOBJS), \
	$(SUNMLIBS),$(FONTLIBS) $(SYSLIBS))
d435 1
a435 2
ServerTarget(Xsun,$(SUNDIRS),$(SUNOBJS), \
	$(SUNLIBS),$(FONTLIBS) $(SYSLIBS))
d451 1
a451 2
ServerTarget(XsunMono,$(SUNMDIRS),$(SUNMOBJS), \
	$(SUNMLIBS),$(FONTLIBS) $(SYSLIBS))
d468 1
a468 2
ServerTarget(Xsun,$(SUNDIRS),$(SUNOBJS), \
	$(SUNLIBS),$(FONTLIBS) $(SYSLIBS))
d484 1
a484 2
ServerTarget(XsunMono,$(SUNMDIRS),$(SUNMOBJS), \
	$(SUNMLIBS),$(FONTLIBS) $(SYSLIBS))
d491 22
d530 1
a530 2
ServerTarget(Xhp,$(HPSUBDIRS),$(HPOBJS), \
	$(HPLIBS),$(HPSYSLIBS))
d578 1
a578 3
XF86SERVERSUBDIRS = $(STDDIRS) $(MFBDIR) $(FBDIR) $(AFBDIR) \
		    $(CFB8DIR) $(CFB16DIR) $(CFB24DIR) $(CFB32DIR) \
		    $(SHADOWDIR) $(DDXDIR1) $(DEPDIRS)
a637 3
#if UseMemLeak
MEMDEBUGLIB = $(TOP)/util/memleak/LibraryTargetName(memleak)
#endif
d649 2
a650 2
XF86LIBS  = $(MEMDEBUGLIB) $(XF86INIT) $(XF86COMLIB) $(XF86RACLIB) \
	    $(XF86PARSLIB) $(XF86OSLIB) $(XF86INT10LIB) 
d652 1
a652 2
XF86LIBS  = $(MEMDEBUGLIB) $(XF86INIT) $(XF86COMLIB) \
	    $(XF86PARSLIB) $(XF86OSLIB) 
d656 1
a656 2
XF86MAINLIBS = MiExtLibs PreFbLibsNoFont \
	       $(FONTBASE) $(OTHEREXTS) $(XF86COMLIB) \
d665 1
a665 2
		 $(XF86COMLIB) $(XF86MAINLIBS) $(XF86SCANLIB) $(XF86OSLIB) \
		 $(XF86DDCLIB)
d673 1
a673 2
SetUIDServerTarget(XFree86,$(XF86SERVERSUBDIRS),$(XF86SERVEROBJS), \
	$(XF86SERVERLIBS),$(XF86SERVERSYSLIBS))
d735 2
a736 3
ServerTarget(Xfbdev,$(FBDEVDIRS),$(FBDEVOBJS), \
	$(FBDEVLIBS),$(FBDEVSYSLIBS))
#endif /* XfbdevServer */
d760 2
a761 3
ServerTarget(Xsavage,$(SAVAGEDIRS),$(SAVAGEOBJS), \
	$(SAVAGELIBS),$(SAVAGESYSLIBS))
#endif /* XSavageServer */
d785 2
a786 3
ServerTarget(Xigs,$(IGSDIRS),$(IGSOBJS), \
	$(IGSLIBS),$(IGSSYSLIBS))
#endif /* XIgsServer */
d803 1
a803 2
   TRIDENTDIRS = $(STDDIRS) $(KDDIRS) \
		 $(FBDEVDIR) $(VESADIR) $(SHADOWDIR) $(TRIDENTDIR)
d815 2
a816 35
ServerTarget(Xtrident,$(TRIDENTDIRS),$(TRIDENTOBJS), \
	$(TRIDENTLIBS),$(TRIDENTSYSLIBS))
#endif /* XTridentServer */

#if Xi810Server
XCOMM
XCOMM server with Intel i810 driver
XCOMM

      FBDEVDIR = $(KDRIVE)/fbdev
         FBDEV = $(FBDEVDIR)/LibraryTargetName(fbdev)
       VESADIR = $(KDRIVE)/vesa
          VESA = $(VESADIR)/LibraryTargetName(vesa)
     SHADOWDIR = miext/shadow
       I810DIR = $(KDRIVE)/i810
          I810 = $(I810DIR)/LibraryTargetName(i810)

        KDDIRS = StdKdDirs
  
      I810DIRS = $(STDDIRS) $(KDDIRS) $(SHADOWDIR) $(I810DIR)
   
      I810LIBS = PreFbLibs $(I810) KdLibs FbPostFbLibs
   I810SYSLIBS = StdKdSysLibs

#if HasParallelMake
MakeMutex($(I810DIRS) $(I810LIBS) $(I810SYSLIBS))
#endif
#if ForceServerRemake
$(I810OBJS) $(I810LIBS) $(I810SYSLIBS):: $(I810DIRS)
	@@if [ -f $@@ ]; then touch $@@; fi
#endif
ServerTarget(Xi810,$(I810DIRS),$(I810OBJS), \
	$(I810LIBS),$(I810SYSLIBS))
#endif /* Xi810Server */

d840 2
a841 3
ServerTarget(Xsis530,$(SIS530DIRS),$(SIS530OBJS), \
	$(SIS530LIBS),$(SIS530SYSLIBS))
#endif /* XSis530Server */
d865 2
a866 3
ServerTarget(Xtrio,$(TRIODIRS),$(TRIOOBJS), \
	$(TRIOLIBS),$(TRIOSYSLIBS))
#endif /* XTrioServer */
d896 1
a896 2
ServerTarget(Xts300,$(TS300DIRS),$(TS300OBJS), \
	$(TS300LIBS),$(TS300SYSLIBS))
d920 1
a920 2
ServerTarget(Xitsy,$(ITSYDIRS),$(ITSYOBJS), \
	$(ITSYLIBS),$(ITSYSYSLIBS))
d947 1
a947 2
ServerTarget(Xvesa,$(VESADIRS),$(VESAOBJS), \
	$(VESALIBS),$(VESASYSLIBS))
d950 2
a951 2
KDRIVEDIRS=$(KDDIRS) $(FBDEVDIR) $(SAVAGEDIR) $(TRIDENTDIR) $(I810DIR) \
	   $(SIS530DIR) $(TRIODIR) $(TS300DIR) $(ITSYDIR) $(IGSDIR) $(VESADIR)
d972 1
a972 2
#if (defined(SunArchitecture) || defined(SparcArchitecture)) && \
    defined(SVR4Architecture)
d984 1
a984 2
ServerTarget(Xprt,$(XPSUBDIRS),$(XPOBJS), \
	$(XPLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(XPSYSLIBS))
d997 1
a997 3
#if !defined(LynxOSArchitecture) && \
    !defined(Win32Architecture) && \
    !defined(QNX4Architecture)
d1003 1
d1005 3
d1040 1
a1040 1
MFBDIR = mfb
d1057 1
d1059 3
d1077 1
a1077 1
XCOMM X Server for MS Windows
d1079 8
a1086 11
FBDIR = fb
SHADOWDIR = miext/shadow
XWINDIR = hw/xwin
XWIN = $(XWINDIR)/LibraryTargetName(Xwin)
XWINGDI32 = -lgdi32
XWINDDRAW = -lddraw
DDXDIR1 = $(XWINDIR)
XWINDIRS = $(STDDIRS) $(FBDIR) $(SHADOWDIR) $(XWINDIR) $(DEPDIRS)

XWINOBJSA = $(XWINDIR)/stubs.o

d1088 3
a1090 1
XWINOBJSB = $(XWINDIR)/dpmsstubs.o
d1092 3
a1094 8

XWINOBJS = $(XWINOBJSA) $(XWINOBJSB)

XWINLIBS = PreFbLibs $(XWIN) FbPostFbLibs $(SHADOW)

XWINSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XLIB) $(SYSLIBS) \
	$(XWINGDI32) $(XWINDDRAW)

a1097 1

a1101 1

d1103 1
a1103 1
	     $(XWINLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(XWINSYSLIBS)) 
a1107 1

d1110 1
a1110 2

#if XDarwinServer
d1114 12
a1125 46
FBDIR    = fb
DDXDIR1  = hw/darwin
DDXDIR2  = hw/darwin/bundle
DARWINDIRS = $(STDDIRS) $(FBDIR) $(DDXDIR1) $(DEPDIRS)
DARWINOBJS = $(DDXDIR1)/xfIOKitStartup.o
DARWINLIBS = PreFbLibs $(DDXDIR1)/LibraryTargetName(darwin) FbPostFbLibs
DARWINSYSLIBS = $(FONTLIBS) $(SYSLIBS) -framework IOKit

/*
 * IOKit X server
 */
SetUIDServerTarget(XDarwin,$(DARWINDIRS),$(DARWINOBJS), \
	$(DARWINLIBS),$(DARWINSYSLIBS))

#if DarwinQuartzSupport

/*
 * We need the IOKit framework. For Quartz support, we also need
 * CoreGraphics in ApplicationServices, HIToolbox in Carbon, CoreAudio
 * and Cocoa.
 */
QUARTZSYSLIBS = -framework ApplicationServices -framework Cocoa \
                -framework CoreAudio -framework Carbon -ObjC
QUARTZOBJS = $(DDXDIR2)/quartzStartup.o
#if NothingOutsideProjectRoot
XDARWINAPPDIR = $(BINDIR)/XDarwin.app/Contents/MacOS
#else
XDARWINAPPDIR = /Applications/XDarwin.app/Contents/MacOS
#endif

/*
 * Quartz X server (installed in its application bundle)
 */
SetUIDServerTarget(XDarwinApp,$(DARWINDIRS),$(QUARTZOBJS), \
	$(DARWINLIBS) $(DDXDIR2)/LibraryTargetName(XQuartz), \
	$(DARWINSYSLIBS) $(QUARTZSYSLIBS))

install::
	mkdir -p $(DESTDIR)$(XDARWINAPPDIR)
	mv $(DESTDIR)$(BINDIR)/XDarwinApp $(DESTDIR)$(XDARWINAPPDIR)/XDarwin
	-(cd $(DESTDIR)$(BINDIR); $(RM) XDarwinQuartz; \
		$(LN) $(XDARWINAPPDIR)/XDarwin XDarwinQuartz)

#else /* !DarwinQuartzSupport */

#define ServerToInstall XDarwin
d1127 1
a1127 1
#endif /* DarwinQuartzSupport */
d1139 1
a1139 3
#if  defined(ServerToInstall) && \
    !defined(OS2Architecture) && \
    !defined(QNX4Architecture)
d1152 1
@


1.1.1.4
log
@Import of XFree86 4.2.0.
@
text
@d1 1
a1 1
XCOMM $Xorg: Imakefile,v 1.4 2001/03/14 18:42:02 pookie Exp $
d5 1
a5 1
XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.254 2002/01/07 20:38:21 dawes Exp $
d107 5
a111 3
         XIEEXT = XIE/dixie/ModuleLibraryTargetName(dixie) \
	          XIE/mixie/ModuleLibraryTargetName(mixie)
         XIEDIR = XIE
d114 2
a115 2
         XKBEXT = xkb/LibraryTargetName(xkb)
         XKBDIR = xkb
d129 1
a129 1
      RECORDEXT = record/LibraryTargetName(record)
d132 1
a132 5
      RECORDDIR = record
#endif
#if BuildXTrap
       XTRAPEXT = XTrap/LibraryTargetName(xtrap)
       XTRAPDIR = XTrap
d135 1
a135 1
       SITEEXTS = SiteExtensionLibs
d138 1
a138 1
    SITEEXTDIRS = SiteExtensionDirs
d141 1
a141 1
          LIBDL = DlLibrary
d143 1
a143 1
       LIBREGEX = RegexLibrary
d146 1
a146 1
    LIBCWRAPPER = os/libcwrapper.o
d152 1
a152 1
#define XpRasterDDX YES
a193 4
#if BuildRandR
      RANDRDIR = randr
      RANDRLIB = $(RANDRDIR)/librandr.a
#endif
d195 1
a195 1
     EXTENSIONS = $(OTHEREXTS) $(RENDERLIB) $(RANDRLIB)
d197 1
a197 1
                  $(GLXEXT) $(XTRAPEXT)
d202 1
a202 1
     EXTENSIONS = $(OTHEREXTS) $(PEXLIBS) $(GLXEXT) $(RENDERLIB) $(RANDRLIB)
d204 1
a204 2
                  $(XIEEXT) $(LBXEXT) $(DBEEXT) $(RECORDEXT) \
                  $(SITEEXTS) $(XTRAPEXT)
d207 3
a209 2
                  $(LBXDIRS) $(DBEDIR) $(RECORDDIR) $(SITEEXTDIRS) \
                  $(RENDERDIR) $(RANDRDIR) $(XTRAPDIR)
d213 1
a213 1
             OS = os/LibraryTargetName(os) $(DEPXAUTHLIB) $(DEPXDMCPLIB)
a231 1
          LAYER = miext/layer/ModuleLibraryTargetName(layer) 
a248 1
          LAYER = miext/layer/LibraryTargetName(layer) 
d268 1
a268 1
            USB = UsbHidLib
d308 7
d330 1
a330 1
DECWSDDXDIR = hw/dec/ws
d332 1
a332 1
DECDIRS = $(STDDIRS) $(LMFCFBDIR) $(DECWSDDXDIR) $(DEPDIRS)
d334 1
a334 1
DECDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(DECWSDDXDIR) $(DEPDIRS)
d360 1
a360 1
DECWSDDXDIR  = hw/dec/ws
d363 1
a363 1
	   $(DECWSDDXDIR) $(DEPDIRS)
d380 3
a382 5
SUNDDXDIR = hw/sun
#if DoLoadableServer
SUNOBJS = hw/sun/sunInit.o hw/sun/sunInitExt.o hw/sun/stubs.o
#elif XF86Server
SUNOBJS = hw/sun/sunInit.o hw/sun/stubs.o
d384 1
a384 1
SUNOBJS = hw/sun/sunInit.o
d387 1
a387 1
SUNDIRS = $(STDDIRS) $(LMFCFBDIR) $(SUNDDXDIR) $(DEPDIRS)
d390 1
a390 1
SUNDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(SUNDDXDIR) $(DEPDIRS)
d395 1
a395 1
	$(SUNLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(SUNSYSLIBS))
d411 1
a411 1
SUNDDXDIR = hw/sun
d414 1
a414 6
	    $(SUNDDXDIR) $(DEPDIRS)
#if DoLoadableServer
SUN24OBJS = hw/sun/sunInitMulti.o hw/sun/sunInitExt.o hw/sun/stubs.o
#elif XF86Server
SUN24OBJS = hw/sun/sunInitMulti.o hw/sun/stubs.o
#else
a415 1
#endif
d418 1
a418 1
	$(SUN24LIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(FONTLIBS) $(SYSLIBS))
d430 2
a431 5
SUNDDXDIR = hw/sun
SUNMDIRS = $(STDDIRS) $(MFBDIR) $(SUNDDXDIR) $(DEPDIRS)
#if XF86Server
SUNMOBJS = hw/sun/sunInitMono.o hw/sun/sunInExMono.o hw/sun/stubs.o
#else
a432 1
#endif
d435 1
a435 1
	$(SUNMLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(FONTLIBS) $(SYSLIBS))
d442 35
d483 2
a484 2
LYNXDDXDIR = hw/sunLynx
SUNDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(LYNXDDXDIR) $(DEPDIRS)
d500 2
a501 2
LYNXDDXDIR = hw/sunLynx
SUNMDIRS = $(STDDIRS) $(MFBDIR) $(LYNXDDXDIR) $(DEPDIRS)
d519 1
a519 1
HPDDXDIR = hw/hp
d522 1
a522 1
HPSUBDIRS = $(STDDIRS) $(LMFCFBDIR) $(HPDDXDIR) $(DEPDIRS)
d525 1
a525 1
HPSUBDIRS = $(STDDIRS) $(MFBDIR) $(CFB8DIR) $(CFB32DIR) $(HPDDXDIR) $(DEPDIRS)
a573 1
LAYERDIR = miext/layer
d577 1
a577 1
XFREE86DDXDIR  = hw/xfree86
d580 1
a580 1
		    $(SHADOWDIR) $(LAYERDIR) $(XFREE86DDXDIR) $(DEPDIRS)
d585 1
a711 1
      LAYERDIR = miext/layer
d718 1
a718 1
#define KdLibs $(KD) $(KDOS) $(PSEUDO8) MiExtLibs $(RENDERLIB) $(RANDRLIB)
d730 3
a732 1
   FBDEVDIRS = $(STDDIRS) $(KDDIRS) $(FBDEVDIR) $(SHADOWDIR) $(LAYERDIR)
d734 1
a734 1
   FBDEVLIBS = PreFbLibs $(FBDEV) $(LAYER) KdLibs FbPostFbLibs
d809 1
d816 1
a816 1
		 $(FBDEVDIR) $(VESADIR) $(SHADOWDIR) $(LAYERDIR) $(TRIDENTDIR)
d818 1
a818 1
   TRIDENTLIBS = PreFbLibs $(TRIDENT) $(FBDEV) $(VESA) $(LAYER) KdLibs FbPostFbLibs
a831 58
#if XchipsServer
XCOMM
XCOMM server with Keith's C&T driver
XCOMM

       VESADIR = $(KDRIVE)/vesa
          VESA = $(VESADIR)/LibraryTargetName(vesa)
      CHIPSDIR = $(KDRIVE)/chips
         CHIPS = $(CHIPSDIR)/LibraryTargetName(chips)

        KDDIRS = StdKdDirs
  
   CHIPSDIRS = $(STDDIRS) $(KDDIRS) \
		 $(FBDEVDIR) $(VESADIR) $(SHADOWDIR) $(LAYERDIR) $(CHIPSDIR)
   
   CHIPSLIBS = PreFbLibs $(CHIPS) $(VESA) $(LAYER) KdLibs FbPostFbLibs
CHIPSSYSLIBS = StdKdSysLibs

#if HasParallelMake
MakeMutex($(CHIPSDIRS) $(CHIPSLIBS) $(CHIPSSYSLIBS))
#endif
#if ForceServerRemake
$(CHIPSOBJS) $(CHIPSLIBS) $(CHIPSSYSLIBS):: $(CHIPSDIRS)
	@@if [ -f $@@ ]; then touch $@@; fi
#endif
ServerTarget(Xchips,$(CHIPSDIRS),$(CHIPSOBJS), \
	$(CHIPSLIBS),$(CHIPSSYSLIBS))
#endif /* XchipsServer */

#if Xmach64Server
XCOMM
XCOMM server with Keith's Mach64 driver (for Mobility 1 machines)
XCOMM

       VESADIR = $(KDRIVE)/vesa
          VESA = $(VESADIR)/LibraryTargetName(vesa)
     MACH64DIR = $(KDRIVE)/mach64
        MACH64 = $(MACH64DIR)/LibraryTargetName(mach64)

        KDDIRS = StdKdDirs
  
   MACH64DIRS = $(STDDIRS) $(KDDIRS) \
		 $(VESADIR) $(SHADOWDIR) $(LAYERDIR) $(MACH64DIR)
   
   MACH64LIBS = PreFbLibs $(MACH64) $(VESA) $(LAYER) KdLibs FbPostFbLibs
MACH64SYSLIBS = StdKdSysLibs

#if HasParallelMake
MakeMutex($(MACH64DIRS) $(MACH64LIBS) $(MACH64SYSLIBS))
#endif
#if ForceServerRemake
$(MACH64OBJS) $(MACH64LIBS) $(MACH64SYSLIBS):: $(MACH64DIRS)
	@@if [ -f $@@ ]; then touch $@@; fi
#endif
ServerTarget(Xmach64,$(MACH64DIRS),$(MACH64OBJS), \
	$(MACH64LIBS),$(MACH64SYSLIBS))
#endif /* Xmach64Server */

d841 1
a915 34
#if XipaqServer
XCOMM
XCOMM server with Alan's HP VGA Out PCMCIA driver & fbdev
XCOMM

     FBDEVDIR = $(KDRIVE)/fbdev
        FBDEV = $(FBDEVDIR)/LibraryTargetName(fbdev)

    PCMCIADIR = $(KDRIVE)/pcmcia
       PCMCIA = $(PCMCIADIR)/LibraryTargetName(pcmcia)

    SHADOWDIR = miext/shadow

      IPAQDIR = $(KDRIVE)/ipaq
         IPAQ = $(IPAQDIR)/LibraryTargetName(ipaq)

       KDDIRS = StdKdDirs
     
     IPAQDIRS = $(STDDIRS) $(KDDIRS) $(FBDEVDIR) $(LAYERDIR) $(SHADOWDIR) $(PCMCIADIR) $(IPAQDIR)
    
     IPAQLIBS = PreFbLibs $(IPAQ) $(FBDEV) $(LAYER) $(SHADOW) $(PCMCIA) KdLibs FbPostFbLibs
  IPAQSYSLIBS = StdKdSysLibs
    
#if HasParallelMake
MakeMutex($(IPAQDIRS) $(IPAQOBJS) $(IPAQLIBS) $(IPAQSYSLIBS))
#endif
#if ForceServerRemake
$(IPAQOBJS) $(IPAQLIBS) $(IPAQSYSLIBS):: $(IPAQDIRS)
	@@if [ -f $@@ ]; then touch $@@; fi
#endif
ServerTarget(Xipaq,$(IPAQDIRS),$(IPAQOBJS), \
	$(IPAQLIBS),$(IPAQSYSLIBS))
#endif /* XIPAQServer */

d983 1
a983 1
    VESADIRS = $(STDDIRS) $(KDDIRS) $(VESADIR) $(SHADOWDIR) $(LAYERDIR)
d985 3
a987 1
   VESALIBS = PreFbLibs $(VESA) $(LAYER) KdLibs FbPostFbLibs
d1002 1
a1002 2
	   $(SIS530DIR) $(TRIODIR) $(TS300DIR) $(ITSYDIR) $(IGSDIR) \
	   $(VESADIR) $(PCMCIADIR) $(IPAQDIR) $(MACH64DIR) $(CHIPSDIR)
d1128 8
a1135 8
LAYERDIR = miext/layer
XWINDDXDIR = hw/xwin
XWINLIB = $(XWINDDXDIR)/LibraryTargetName(Xwin)
XWINDIRS = $(STDDIRS) $(FBDIR) $(SHADOWDIR) $(LAYERDIR) $(XWINDDXDIR) \
	   $(DEPDIRS)
XWINOBJS = $(XWINDDXDIR)/stubs.o
XWINLIBS = PreFbLibs $(XWINLIB) FbPostFbLibs $(LAYER) $(SHADOW)
XWINSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XLIB) $(SYSLIBS) -lgdi32 -lddraw
d1137 10
a1146 9
/*
 * These flags cause XWin.exe to be a Windows executable, which
 * prevents XWin.exe from opening a Command Prompt window when it is
 * started.  However, the flags also prevent XWin.exe from outputting
 * its status and error message to a Command Prompt; thus, one most
 * implement a method to redirect status and error messages to a file
 * before enabling these flags.
 */
EXTRA_LDOPTIONS = -mwindows -e _mainCRTStartup
d1149 1
a1149 1
MakeMutex($(XWINDIRS) $(XWINOBJS) $(XWINLIB) $(XWINLIBS) $(XWINSYSLIBS))
d1153 1
a1153 1
$(XWINOBJS) $(XWINLIB) $(XWINLIBS) $(XWINSYSLIBS):: $(XWINDIRS)
a1166 9
#ifdef DarwinArchitecture
/*
 * To allow building even when building the client-side libraries is turned
 * off, libraries in ProjectRoot are listed as dependencies for some targets.
 * This causes problems unless we tell make where to find these dependencies.
 */
VPATH = $(BUILDLIBDIR):$(USRLIBDIR)
#endif

d1171 6
a1176 5
FBDIR = fb
DARWINDDXDIR = hw/darwin
DARWINDIRS = $(STDDIRS) $(FBDIR) $(DARWINDDXDIR) $(DEPDIRS)
DARWINOBJS = $(DARWINDDXDIR)/xfIOKitStartup.o
DARWINLIBS = PreFbLibs $(DARWINDDXDIR)/LibraryTargetName(darwin) FbPostFbLibs
d1194 1
a1194 1
QUARTZOBJS = $(DARWINDDXDIR)/bundle/quartzStartup.o
d1205 1
a1205 1
	$(DARWINLIBS) $(DARWINDDXDIR)/bundle/LibraryTargetName(XQuartz), \
d1224 1
a1224 1
MIEXTDIRS = $(SHADOWDIR) $(LAYERDIR)
d1226 1
a1226 3
DDXDIRS = $(DECWSDDXDIR) $(SUNDDXDIR) $(LYNXDDXDIR) \
	  $(HPDDXDIR) $(XFREE86DDXDIR) $(XWINDDXDIR) $(DARWINDDXDIR) \
	  $(XVFBDDXDIR) $(XNESTDDXDIR)
d1231 2
a1232 1
    !defined(OS2Architecture)
@


1.1.1.5
log
@Import of XFree86 4.3.0.
@
text
@d5 1
a5 1
XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.278 2003/02/17 17:06:40 dawes Exp $
d88 1
a88 1
               GL/mesa/GLcore/ModuleLibraryTargetName(GLcore)
d91 2
a92 1
               GL/mesa/GLcore/ModuleLibraryTargetName(GLcore) \
a113 3
#ifdef XFree86Version
    XF86XKBOBJS = xkb/xf86KillSrv.o xkb/xf86VT.o xkb/xf86Private.o
#endif
d201 1
a201 1
     EXTENSIONS = $(OTHEREXTS) $(RANDRLIB) $(RENDERLIB)
d208 1
a208 2
     EXTENSIONS = $(OTHEREXTS) $(PEXLIBS) $(GLXEXT) $(RANDRLIB) \
                  $(RENDERLIB)
d215 1
a215 1
                  $(RANDRDIR) $(RENDERDIR) $(XTRAPDIR)
d242 2
a243 1
            CFB = cfb16/LibraryTargetName(cfb16) \
d245 1
a245 2
		  cfb32/LibraryTargetName(cfb32) \
		  cfb/LibraryTargetName(cfb)
d247 8
a254 8
           CFB4 = cfb4/LibraryTargetName(cfb4) \
		  cfb/LibraryTargetName(cfb)
          CFB16 = cfb16/LibraryTargetName(cfb16) \
		  cfb/LibraryTargetName(cfb)
          CFB24 = cfb24/LibraryTargetName(cfb24) \
		  cfb/LibraryTargetName(cfb)
          CFB32 = cfb32/LibraryTargetName(cfb32) \
		  cfb/LibraryTargetName(cfb)
d267 1
a267 1
           FONT = $(FONTLIBSRC)/LibraryTargetName(Xfont) $(FREETYPE2LIB)
d271 1
a271 4
#if FontLibSharedFreeType
      SERVERFT2 = $(FREETYPE2LIB)
#endif
       FONTLIBS = $(FONT) $(XPFBLIBS) $(SERVERFT2)
a289 1
#if !HasCbrt
a290 1
#endif
d325 1
a325 1
#if defined(XdecServer) && XdecServer
d351 1
a351 1
#if defined(XdecMultiDepthServer) && XdecMultiDepthServer
d375 1
a375 1
#if defined(XsunServer) && XsunServer
d384 1
a384 1
#elif defined(XF86Server) && XF86Server
d405 1
a405 1
#if defined(Xsun24Server) && Xsun24Server
d420 1
a420 1
#elif defined(XF86Server) && XF86Server
d434 1
a434 1
#if defined(XsunMonoServer) && XsunMonoServer
d441 1
a441 1
#if defined(XF86Server) && XF86Server
d455 1
a455 1
#if defined(XsunLynxServer) && XsunLynxServer
d473 1
a473 1
#if defined(XsunLynxMonoServer) && XsunLynxMonoServer
d490 1
a490 1
#if defined(XhpServer) && XhpServer
d519 1
a519 1
#if defined(XF86Server) && XF86Server
d522 1
a522 1
#if defined(XnestServer) && XnestServer
d525 1
a525 1
#if defined(XVirtualFramebufferServer) && XVirtualFramebufferServer
d528 1
a528 1
#if defined(XWinServer) && XWinServer && !MakeDllModules
d531 4
a534 4
#if (defined(XF86Server) && XF86Server) || \
    (defined(XnestServer) && XnestServer) || \
    (defined(XVirtualFramebufferServer) && XVirtualFramebufferServer) || \
    (!MakeDllModules && defined(XWinServer) && XWinServer)
d541 1
a541 1
#if defined(XF86Server) && XF86Server
d608 1
a608 1
XF86VBELIB = $(XF86SRC)/vbe/LibraryTargetName(vbe)
d626 1
a626 1
	      $(XF8_32WIDLIB) $(XF8_32BPPLIB) \
d633 1
a633 1
	    $(XF86PARSLIB) $(XF86VBELIB) $(XF86OSLIB) $(XF86INT10LIB) 
d640 1
a640 1
XF86MAINLIBS = PreFbLibsNoFont \
a643 2
XF86SERVERLIBS = $(XF86DRVLIBS) $(XF86IDRVLIBS) $(XF86LIBS) $(XF86LOADERLIB) \
		 $(XF86COMLIB) $(XF86MAINLIBS) $(XF86SCANLIB) $(XF86OSLIB)
d647 2
a651 2
#endif
XF86SERVEROBJS = $(XF86XKBOBJS) $(XF86DRVOBJS) $(XF86IDRVOBJS)
d657 1
a657 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d669 1
a669 1
#if defined(KDriveXServer) && KDriveXServer
a674 3
#if HasTsLib
       KDTSLIB = -lts
#endif
d677 1
a677 1
          KDOS = $(KDOSDIR)/LibraryTargetName(linux) $(KDTSLIB)
d697 1
a697 1
#define KdLibs $(KD) $(KDOS) $(PSEUDO8) MiExtLibs $(RANDRLIB) $(RENDERLIB)
d699 1
a699 1
#if defined(XfbdevServer) && XfbdevServer
d719 1
a719 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d725 1
a725 1
#if defined(XSavageServer) && XSavageServer
d745 1
a745 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d751 1
a751 1
#if defined(XIgsServer) && XIgsServer
d771 1
a771 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d777 1
a777 1
#if defined(XTridentServer) && XTridentServer
d802 1
a802 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d808 1
a808 1
#if defined(XchipsServer) && XchipsServer
d831 1
a831 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d837 1
a837 1
#if defined(Xmach64Server) && Xmach64Server
d860 1
a860 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d866 1
a866 1
#if defined(Xi810Server) && Xi810Server
d890 1
a890 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d897 1
a897 1
#if defined(XSis530Server) && XSis530Server
d917 1
a917 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d923 1
a923 1
#if defined(XTrioServer) && XTrioServer
d943 1
a943 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d949 1
a949 1
#if defined(XipaqServer) && XipaqServer
d977 1
a977 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d983 1
a983 1
#if defined(XTS300Server) && XTS300Server
d1009 1
a1009 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d1015 1
a1015 1
#if defined(XItsyServer) && XItsyServer
d1034 1
a1034 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d1040 1
a1040 1
#if defined(XvesaServer) && XvesaServer
d1060 1
a1060 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d1071 1
a1071 1
#if defined(XprtServer) && XprtServer
d1100 1
a1100 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d1106 1
a1106 1
#if defined(XnestServer) && XnestServer
d1131 1
a1131 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d1138 1
a1138 1
#if defined(XnonServer) && XnonServer
d1153 1
a1153 1
#if defined(XVirtualFramebufferServer) && XVirtualFramebufferServer
d1181 1
a1181 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d1188 1
a1188 1
#if defined(XWinServer) && XWinServer
a1193 1
#if 0
a1194 3
#else
LAYERDIR = 
#endif
a1195 2
XWINPARSERDIR = hw/xfree86/parser
XWINPARSERLIB = $(XWINPARSERDIR)/LibraryTargetName(xf86config)
d1198 4
a1201 10
	   $(DEPDIRS) $(XWINPARSERDIR)
XWINOBJS = $(XWINDDXDIR)/stubs.o $(XWINDDXDIR)/XWin.res
#if 0
XWINLIBS = PreFbLibs $(XWINLIB) FbPostFbLibs $(LAYER) $(SHADOW) \
           $(XWINPARSERLIB)
#else
XWINLIBS = PreFbLibs $(XWINLIB) FbPostFbLibs $(SHADOW) \
           $(XWINPARSERLIB)
#endif
XWINSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XLIB) $(SYSLIBS) -lgdi32
d1219 1
a1219 1
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
d1241 1
a1241 1
#if defined(XDarwinServer) && XDarwinServer
a1245 1
SHADOWDIR = miext/shadow
d1247 1
a1247 1
DARWINDIRS = $(STDDIRS) $(FBDIR) $(SHADOWDIR) $(DARWINDDXDIR) $(DEPDIRS)
d1249 1
a1249 2
DARWINLIBS = PreFbLibs $(DARWINDDXDIR)/LibraryTargetName(darwin)
DARWINEXTLIBS = MiExtLibs FbPostFbLibs
d1256 1
a1256 1
	$(DARWINLIBS) $(DARWINEXTLIBS),$(DARWINSYSLIBS))
d1260 5
a1264 16
#if GlxUseAqua

AQUAEXTENSIONS = $(OTHEREXTS) $(PEXLIBS) $(RANDRLIB) $(RENDERLIB)
#if !BuildXinerama
#define AquaPostFbLibs NoMfbBarePostFbLibs $(AQUAEXTENSIONS)
#else
#define AquaPostFbLibs $(AQUAEXTENSIONS) NoMfbBarePostFbLibs $(AQUAEXTENSIONS)
#endif
QUARTZEXTLIBS = MiExtLibs $(FB) AquaPostFbLibs

#else /* !GlxUseAqua */

QUARTZEXTLIBS = $(DARWINEXTLIBS)

#endif /* GlxUseAqua */

d1267 1
a1267 1
QUARTZOBJS = $(DARWINDDXDIR)/quartz/quartzStartup.o
d1269 1
a1269 1
XDARWINAPPDIR = $(BINDIR)/XDarwin.app/Contents
d1271 1
a1271 1
XDARWINAPPDIR = /Applications/XDarwin.app/Contents
a1272 2
AGLBUNDLEDIR = $(XDARWINAPPDIR)/Resources/glxAGL.bundle/Contents/MacOS
MESABUNDLEDIR = $(XDARWINAPPDIR)/Resources/glxMesa.bundle/Contents/MacOS
d1278 2
a1279 2
	$(DARWINLIBS) $(DARWINDDXDIR)/quartz/LibraryTargetName(XQuartz) \
	$(QUARTZEXTLIBS),$(DARWINSYSLIBS) $(QUARTZSYSLIBS))
d1282 2
a1283 3
	$(MKDIRHIER) $(DESTDIR)$(XDARWINAPPDIR)/MacOS
	$(MV) $(DESTDIR)$(BINDIR)/XDarwinApp \
		$(DESTDIR)$(XDARWINAPPDIR)/MacOS/XDarwin
d1285 1
a1285 18
		$(LN) $(XDARWINAPPDIR)/MacOS/XDarwin XDarwinQuartz)

/*
 * GLX bundles for Quartz (installed in their own bundles inside XDarwin's)
 */
AllTarget(glxAGL)
glxAGL: XDarwinApp
	$(CC) -bundle -o glxAGL GL/glx/glxext.o GL/glx/libglx.a \
		GL/aqua/libAquaGLcore.a -framework AGL -framework OpenGL \
		-bundle_loader XDarwinApp
InstallProgram(glxAGL,$(AGLBUNDLEDIR))

AllTarget(glxMesa)
glxMesa: XDarwinApp
	$(CC) -bundle -o glxMesa GL/glx/glxext.o \
		GL/glx/libglx.a GL/mesa/GLcore/libGLcore.a \
		-bundle_loader XDarwinApp
InstallProgram(glxMesa,$(MESABUNDLEDIR))
d1303 1
a1303 2
          $(LMFCFBDIR) $(DDXDIRS) $(FBDIR) $(KDRIVEDIRS) $(MIEXTDIRS) \
	  $(XWINPARSERDIR)
d1305 2
a1306 1
#if  defined(ServerToInstall) && !defined(OS2Architecture)
@


1.1.1.6
log
@Import of XFree86 4.4.0.
@
text
@d5 1
a5 1
XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.297 2004/01/12 21:43:19 herrb Exp $
d53 14
d68 8
d98 2
d105 5
d204 2
a205 1
   LOADABLEEXTS = $(MISCEXT) $(DBEEXT) $(RECORDEXT) $(GLXEXT) $(XTRAPEXT)
d210 2
a211 1
     EXTENSIONS = $(OTHEREXTS) $(GLXEXT) $(RANDRLIB) $(RENDERLIB)
d213 2
a214 1
                  $(LBXEXT) $(DBEEXT) $(RECORDEXT) $(SITEEXTS) $(XTRAPEXT)
d216 1
a216 1
        EXTDIRS = Xext $(XKBDIR) $(XIDIR) $(GLXDIR) \
d222 1
a222 1
             OS = os/LibraryTargetName(os)
d272 4
a275 1
           FONT = $(LDPRELIB) $(XFONTLIB) $(FREETYPE2LIB)
d277 1
a277 1
       FONTLIBS = $(FONT) $(XPFBLIBS)
d295 1
a295 1
		  $(PAMLIBS)  $(XAUTHLIB) $(XDMCPLIB) $(EXTRASYSLIBS)
a299 8
          FBDIR = fb
         MFBDIR = mfb
        CFB4DIR = cfb4
        CFB8DIR = cfb
       CFB16DIR = cfb16
       CFB24DIR = cfb24
       CFB32DIR = cfb32
         AFBDIR = afb
d313 1
a313 1
 *  MFBSUBDIR = mfb
d315 5
a319 5
 *  CFB4SUBDIR  = cfb4  (if the server needs 4 bit cfb)
 *  CFB8SUBDIR  = cfb   (8 bit cfb)
 *  CFB16SUBDIR = cfb16 (16 bit cfb)
 *  CFB24SUBDIR = cfb24 (24 bit cfb)
 *  CFB32SUBDIR = cfb32 (32 bit cfb)
d337 2
a338 2
MFBSUBDIR  = mfb
CFB8SUBDIR = cfb
d364 5
a368 5
MFBSUBDIR   = mfb
CFB8SUBDIR  = cfb
CFB16SUBDIR = cfb16
CFB24SUBDIR = cfb24
CFB32SUBDIR = cfb32
d387 2
a388 2
MFBSUBDIR  = mfb
CFB8SUBDIR = cfb
d406 1
a406 1
	$(LIBCWRAPPER) $(SUNLIBS) $(LOADABLEEXTS),$(SUNSYSLIBS))
d417 5
a421 5
MFBSUBDIR = mfb
CFB8SUBDIR = cfb
CFB16SUBDIR = cfb16
CFB24SUBDIR = cfb24
CFB32SUBDIR = cfb32
d435 1
a435 1
	$(LIBCWRAPPER) $(SUN24LIBS) $(LOADABLEEXTS),$(FONTLIBS) $(SYSLIBS))
d446 1
a446 1
MFBSUBDIR = mfb
d456 1
a456 1
	$(LIBCWRAPPER) $(SUNMLIBS) $(LOADABLEEXTS),$(FONTLIBS) $(SYSLIBS))
d467 2
a468 2
MFBSUBDIR = mfb
CFB8SUBDIR = cfb
d485 1
a485 1
MFBSUBDIR = mfb
d498 25
d553 6
a558 6
FBSUBDIR = fb
MFBSUBDIR  = mfb
CFB8SUBDIR = cfb
CFB16SUBDIR = cfb16
CFB24SUBDIR = cfb24
CFB32SUBDIR = cfb32
a560 5
#ifdef OS2Architecture
SERVERDEFFILE = XFree86.def
XNESTDEFFILE = Xnest.def
XVFBDEFFILE = Xvfb.def
#endif
d562 1
a562 1
AFBSUBDIR = afb
d669 1
a669 1
SetUIDServerTarget(XFree86,$(XF86SERVERSUBDIRS),$(XF86SERVEROBJS) $(SERVERDEFFILE), \
d1088 3
a1090 3
MFBSUBDIR  = mfb
CFB8SUBDIR = cfb
CFB32SUBDIR = cfb32
d1116 1
a1116 1
	$(LIBCWRAPPER) $(XPLIBS) $(LOADABLEEXTS),$(XPSYSLIBS))
d1146 2
a1147 2
ServerTarget(Xnest,$(XNESTDIRS),$(XNESTOBJS) $(XNESTDEFFILE), \
	$(LIBCWRAPPER) $(XNESTLIBS) $(LOADABLEEXTS),$(XNESTSYSLIBS))
d1155 4
a1158 4
MFBSUBDIR   = mfb
CFB8SUBDIR  = cfb
CFB16SUBDIR = cfb16
CFB32SUBDIR = cfb32
d1170 2
a1171 2
MFBSUBDIR = mfb
FBSUBDIR  = fb
d1196 2
a1197 2
ServerTarget(Xvfb,$(XVFBDIRS),$(XVFBOBJS) $(XVFBDEFFILE), \
	$(LIBCWRAPPER) $(XVFBLIBS) $(LOADABLEEXTS),$(XVFBSYSLIBS))
d1205 1
a1205 1
FBSUBDIR = fb
d1248 1
a1248 1
	     $(LIBCWRAPPER) $(XWINLIBS) $(LOADABLEEXTS),$(XWINSYSLIBS)) 
d1270 1
a1270 1
FBSUBDIR = fb
a1271 1
ROOTLESSDIR = miext/rootless
d1274 1
a1277 1
IOKITLIB = $(DARWINDDXDIR)/iokit/LibraryTargetName(iokit)
d1283 1
a1283 1
	$(DARWINLIBS) $(IOKITLIB) $(DARWINEXTLIBS),$(DARWINSYSLIBS))
d1287 3
a1289 4
/*
 * Quartz modes load a GLX extension dynamically, so we can't build it in.
 */
AQUAEXTENSIONS = $(OTHEREXTS) $(RANDRLIB) $(RENDERLIB)
d1297 6
a1302 2
QUARTZDIR = $(DARWINDDXDIR)/quartz
QUARTZLIB = $(QUARTZDIR)/LibraryTargetName(XQuartz)
d1305 1
a1305 5
ROOTLESSLIB = $(ROOTLESSDIR)/LibraryTargetName(rootless) \
              $(ROOTLESSDIR)/safeAlpha/LibraryTargetName(safeAlpha) \
              $(ROOTLESSDIR)/accel/LibraryTargetName(rlAccel)
XPLUGINLIB = XpluginLibrary

d1311 2
d1318 2
a1319 2
	$(DARWINLIBS) $(QUARTZLIB) $(QUARTZEXTLIBS), \
	$(DARWINSYSLIBS) $(QUARTZSYSLIBS) -u _miDCInitialize)
d1329 1
a1329 29
 * Display mode bundles for Quartz
 * (installed in their own bundles inside XDarwin's)
 */
#if HasXplugin
XPRDIRS = $(QUARTZDIR)/xpr $(ROOTLESSDIR) $(ROOTLESSDIR)/safeAlpha
XPRLIBS = $(QUARTZDIR)/xpr/LibraryTargetName(xpr) $(ROOTLESSLIB)

BundleProgramTarget(xpr,XDarwinApp,$(XPRDIRS),$(QUARTZDIR)/xpr/xprScreen.o, \
	$(XPRLIBS),-framework ApplicationServices \
	$(XPLUGINLIB),$(XDARWINAPPDIR)/Resources)
#endif

CRDIRS = $(QUARTZDIR)/cr $(ROOTLESSDIR) $(ROOTLESSDIR)/safeAlpha
CRLIBS = $(QUARTZDIR)/cr/LibraryTargetName(cr) $(ROOTLESSLIB)

BundleProgramTarget(cr,XDarwinApp,$(CRDIRS),$(QUARTZDIR)/cr/crScreen.o, \
	$(CRLIBS),-framework ApplicationServices -framework Cocoa \
	-framework Carbon -ObjC,$(XDARWINAPPDIR)/Resources)

FSDIRS = $(QUARTZDIR)/fullscreen $(SHADOWDIR)
FSLIBS = $(QUARTZDIR)/fullscreen/LibraryTargetName(fullscreen) $(SHADOW)

BundleProgramTarget(fullscreen,XDarwinApp,$(FSDIRS), \
	$(QUARTZDIR)/fullscreen/fullscreen.o,$(FSLIBS), \
	-framework ApplicationServices,$(XDARWINAPPDIR)/Resources)

/*
 * GLX bundles for Quartz
 * (installed in their own bundles inside XDarwin's)
d1331 13
a1343 12
BundleProgramTarget(glxAGL,XDarwinApp,GL,GL/glx/glxext.o,GL/glx/libglx.a \
	GL/apple/libAGLcore.a, \
	-framework AGL -framework OpenGL,$(XDARWINAPPDIR)/Resources)

#if BuildAppleDRI
BundleProgramTarget(glxCGL,XDarwinApp,GL,GL/glx/glxext.o,GL/glx/libglx.a \
	GL/apple/libCGLcore.a, \
	-framework OpenGL $(XPLUGINLIB),$(XDARWINAPPDIR)/Resources)
#endif

BundleProgramTarget(glxMesa,XDarwinApp,GL,GL/glx/glxext.o,GL/glx/libglx.a \
	GL/mesa/GLcore/libGLcore.a,NullParameter,$(XDARWINAPPDIR)/Resources)
d1354 2
a1355 2
CFBSUBDIRS = $(CFB8SUBDIR) $(CFB16SUBDIR) $(CFB24SUBDIR) $(CFB32SUBDIR)
MIEXTDIRS = $(SHADOWDIR) $(LAYERDIR) $(ROOTLESSDIR)
d1360 2
a1361 3
SUBDIRS = $(STDDIRS) $(MFBSUBDIR) $(CFBSUBDIRS) \
	  $(IPLANDIRS) $(ILBMDIR) $(AFBSUBDIR) \
          $(LMFCFBDIR) $(DDXDIRS) $(FBSUBDIR) $(KDRIVEDIRS) $(MIEXTDIRS) \
a1376 3
DEFAULTFONTPATH = DefaultFontPath
EXTRAMANDEFS = -D__default_font_path__="`echo $(DEFAULTFONTPATH) | sed -e 's/,/, /g'`"

@


1.1.1.7
log
@Import of XFree86 4.5.0.
@
text
@d1 1
d5 1
a5 48
XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.310 2005/02/09 21:46:51 dawes Exp $

/*
 * Copyright (c) 1994-2004 by The XFree86 Project, Inc.
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 *
 *   1.  Redistributions of source code must retain the above copyright
 *       notice, this list of conditions, and the following disclaimer.
 *
 *   2.  Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer
 *       in the documentation and/or other materials provided with the
 *       distribution, and in the same place and form as other copyright,
 *       license and disclaimer information.
 *
 *   3.  The end-user documentation included with the redistribution,
 *       if any, must include the following acknowledgment: "This product
 *       includes software developed by The XFree86 Project, Inc
 *       (http://www.xfree86.org/) and its contributors", in the same
 *       place and form as other third-party acknowledgments.  Alternately,
 *       this acknowledgment may appear in the software itself, in the
 *       same form and location as other such third-party acknowledgments.
 *
 *   4.  Except as contained in this notice, the name of The XFree86
 *       Project, Inc shall not be used in advertising or otherwise to
 *       promote the sale, use or other dealings in this Software without
 *       prior written authorization from The XFree86 Project, Inc.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
a19 1
#define TinyPreFbLibs $(TINY_DIX) $(TINY_OS) $(XPDDX)
d21 1
a21 1
#define BarePostFbLibs $(MFB) $(MI)
d23 2
a24 1
#define NoMfbBarePostFbLibs $(MI)
d26 3
a46 1
#define TinyFbPostFbLibs $(FB) $(MI) $(TINY_EXTENSIONS)
d51 1
a51 1
#define BareAllFBLibs PreFbLibs $(FB) $(CFB) BarePostFbLibs
d120 4
d125 14
d154 1
a154 1
XPDDXFBLIBS = $(CFB32) $(MFB)
a155 1
      XPDDX    = $(XPDDXLIBS)
d157 1
d167 1
a167 6
      RENDERLIB = $(RENDERDIR)/LibraryTargetName(render)
#if BuildSeparateTinyDIX
 TINY_RENDERLIB = $(RENDERDIR)/tiny/LibraryTargetName(render)
#else
 TINY_RENDERLIB = $(RENDERLIB)
#endif
d171 1
a171 5
      RANDRLIB = $(RANDRDIR)/LibraryTargetName(randr)
#if BuildSeparateTinyDIX
 TINY_RANDRLIB = $(RANDRDIR)/tiny/LibraryTargetName(randr)
#else
 TINY_RANDRLIB = $(RANDRLIB)
d173 3
a175 4
#endif
       BASEEXTS = Xext/LibraryTargetName(exts)
     STATICEXTS = $(XKBEXT) $(XINPUTEXT) $(LBXEXT) $(SITEEXTS) $(RANDRLIB) \
		  $(RENDERLIB)
d177 2
a178 19
   LOADABLEEXTS = $(MISCEXT) $(DBEEXT) $(RECORDEXT) $(GLXEXT) $(XTRAPEXT)
     EXTENSIONS = $(LOADABLEEXTS) $(STATICEXTS) 

#if BuildSeparateTinyDIX
TINY_STATICEXTS = $(XKBEXT) $(XINPUTEXT) $(LBXEXT) $(SITEEXTS) \
	$(TINY_RANDRLIB) $(TINY_RENDERLIB)
   TINY_MISCEXT = Xext/tiny/LibraryTargetName(ext)
#else
TINY_STATICEXTS = $(STATICEXTS)
   TINY_MISCEXT = $(MISCEXT)
#endif
TINY_LOADABLEEXTS = $(TINY_MISCEXT) $(DBEEXT) $(RECORDEXT) $(GLXEXT) $(XTRAPEXT)
TINY_EXTENSIONS = $(TINY_STATICEXTS) $(TINY_LOADABLEEXTS)

 XPLOADABLEEXTS = $(MISCEXT) $(DBEEXT) $(RECORDEXT) $(XTRAPEXT)
   XPEXTENSIONS = $(XPLOADABLEEXTS) $(STATICEXTS) 

#if DoLoadableServer
 XF86EXTENSIONS = $(BASEEXTS) $(STATICEXTS)
d180 3
a182 1
 XF86EXTENSIONS = $(STATICEXTS) $(LOADABLEEXTS)
a183 5

  DMXSTATICEXTS = $(XKBEXT) $(XINPUTEXT) $(LBXEXT) $(SITEEXTS) $(RENDERLIB)
DMXLOADABLEEXTS = $(MISCEXT) $(RECORDEXT) $(XTRAPEXT)
  DMXEXTENSIONS = $(DMXLOADABLEEXTS) $(DMXSTATICEXTS) 

a190 5
#if BuildSeparateTinyDIX
        TINY_OS = os/tiny/LibraryTargetName(os)
#else
        TINY_OS = $(OS)
#endif
d195 2
a196 1
            CFB = cfb16/ModuleLibraryTargetName(cfb16) \
d198 1
a198 2
		  cfb32/ModuleLibraryTargetName(cfb32) \
		  cfb/ModuleLibraryTargetName(cfb)
d200 8
a207 8
           CFB4 = cfb4/ModuleLibraryTargetName(cfb4) \
		  cfb/ModuleLibraryTargetName(cfb)
          CFB16 = cfb16/ModuleLibraryTargetName(cfb16) \
		  cfb/ModuleLibraryTargetName(cfb)
          CFB24 = cfb24/ModuleLibraryTargetName(cfb24) \
		  cfb/ModuleLibraryTargetName(cfb)
          CFB32 = cfb32/ModuleLibraryTargetName(cfb32) \
		  cfb/ModuleLibraryTargetName(cfb)
a234 6
#if BuildSeparateTinyDIX
       TINY_DIX = dix/tiny/LibraryTargetName(dix)
#else
       TINY_DIX = $(DIX)
#endif
#if DoLoadableServer
a236 1
#endif
a238 1
      TINY_FONT = $(FONTLIBSRC)/LibraryTargetName(Xfont)
a240 1
      TINY_FONT = $(LDPRELIB) $(XFONTLIB)
a242 1
  TINY_FONTLIBS = $(TINY_FONT) $(XPFBLIBS)
d260 1
a260 3
		  $(PAMLIBS) $(XAUTHLIB) $(XDMCPLIB) $(EXTRASYSLIBS)
 NOAUTH_SYSLIBS = $(ZLIB) MathLibrary Krb5Libraries $(DBMLIBS) $(USB) \
		  $(PAMLIBS) $(XDMCPLIB) $(EXTRASYSLIBS)
a272 3
       LAYERDIR = miext/layer
    ROOTLESSDIR = miext/rootless
      SHADOWDIR = miext/shadow
d379 2
a380 2
	$(SUNLIBS),$(SUNSYSLIBS))
#if !defined(ServerToInstall) && (!defined(XF86Server) || !XF86Server)
d408 2
a409 2
	$(SUN24LIBS),$(FONTLIBS) $(SYSLIBS))
#if !defined(ServerToInstall) && (!defined(XF86Server) || !XF86Server)
d427 1
a427 1
SUNMLIBS = hw/sun/LibraryTargetName(sun) MFBLibs
d429 2
a430 2
	$(SUNMLIBS),$(FONTLIBS) $(SYSLIBS))
#if !defined(ServerToInstall) && (!defined(XF86Server) || !XF86Server)
a483 3
#if defined(XdmxServer) && XdmxServer
XDMX = Xdmx
#endif
a489 1
    (defined(XdmxServer) && XdmxServer) || \
d491 1
a491 1
MakeMutex($(XF86SERVER) $(XNEST) $(XVFB) $(XDMX) $(XWIN))
d507 2
a512 1
XDMXDEFFILE = Xdmx.def
d602 3
a604 3
	       $(FONTBASE) $(XF86COMLIB) \
	       NoMfbBarePostFbLibs $(XF86EXTENSIONS)
XF86SERVERSYSLIBS = $(XPFBLIBS) $(SYSLIBS) $(LIBDL) $(LIBREGEX)
d608 1
a608 1
XF86MAINLIBS = MiExtLibs BareAllFBLibs $(XF86EXTENSIONS) $(XF86COMLIB) $(MI)
d632 1
a632 1
#if defined(TinyXServer) && TinyXServer
d637 1
a637 1
      TINYXDIR = hw/tinyx
d639 1
a639 1
    TINYXTSLIB = -lts
d642 2
a643 2
    TINYXOSDIR = $(TINYXDIR)/linux
      TINYXOS = $(TINYXOSDIR)/LibraryTargetName(linux) $(TINYXTSLIB)
d647 2
a648 2
    TINYXOSDIR = $(TINYXDIR)/vxworks
       TINYXOS = $(TINYXOSDIR)/LibraryTargetName(vxworks)
d651 8
a658 3
      FBSUBDIR = fb
         TINYX = $(TINYXDIR)/LibraryTargetName(tinyx)
    TINYXFBDEV = $(TINYXDIR)/fbdev/LibraryTargetName(fbdev)
d661 3
a663 4
#define StdTinyxDirs $(TINYXDIR) $(TINYXOSDIR) $(DEPDIRS)
#define StdTinyxSysLibs $(TINY_FONTLIBS) $(SYSLIBS)
#define TinyxLibs $(TINYX) $(TINYXOS) MiExtLibs
#define TinyxObjs $(TINYXDIR)/miinitext.o $(TINYXDIR)/register.o $(TINYXDIR)/ffcheck.o $(TINYXDIR)/stubs.o os/tiny/lbxio.o
d667 1
a667 1
XCOMM server with TinyX fbdev driver only
d670 1
a670 1
    FBDEVDIR = $(TINYXDIR)/fbdev
d673 1
a673 1
   TINYXDIRS = StdTinyxDirs
d675 1
a675 1
   FBDEVDIRS = $(STDDIRS) $(TINYXDIRS) $(FBDEVDIR) $(SHADOWDIR) $(LAYERDIR)
d677 2
a678 3
   FBDEVLIBS = TinyPreFbLibs $(FBDEV) $(LAYER) TinyxLibs TinyFbPostFbLibs
   FBDEVOBJS = TinyxObjs
FBDEVSYSLIBS = StdTinyxSysLibs
d693 1
a693 1
XCOMM server with TinyX S3 Savage driver
d696 1
a696 1
    SAVAGEDIR = $(TINYXDIR)/savage
d699 1
a699 1
    TINYXDIRS = StdTinyxDirs
d701 1
a701 1
   SAVAGEDIRS = $(STDDIRS) $(TINYXDIRS) $(SAVAGEDIR)
d703 2
a704 3
   SAVAGEOBJS = TinyxObjs
   SAVAGELIBS = TinyPreFbLibs $(SAVAGE) TinyxLibs TinyFbPostFbLibs
SAVAGESYSLIBS = StdTinyxSysLibs
d719 1
a719 1
XCOMM server with TinyX S3 Igs driver
d722 1
a722 1
       IGSDIR = $(TINYXDIR)/igs
d725 1
a725 1
    TINYXDIRS = StdTinyxDirs
d727 1
a727 1
      IGSDIRS = $(STDDIRS) $(TINYXDIRS) $(IGSDIR)
d729 2
a730 3
      IGSOBJS = TinyxObjs
      IGSLIBS = TinyPreFbLibs $(IGS) TinyxLibs TinyFbPostFbLibs
   IGSSYSLIBS = StdTinyxSysLibs
d745 1
a745 1
XCOMM server with TinyX TRIDENT Cyber9525 driver
d748 1
a748 1
      FBDEVDIR = $(TINYXDIR)/fbdev
d750 1
a750 1
       VESADIR = $(TINYXDIR)/vesa
d752 1
a752 1
    TRIDENTDIR = $(TINYXDIR)/trident
d755 1
a755 1
     TINYXDIRS = StdTinyxDirs
d757 1
a757 1
   TRIDENTDIRS = $(STDDIRS) $(TINYXDIRS) \
d760 2
a761 4
   TRIDENTOBJS = TinyxObjs
   TRIDENTLIBS = TinyPreFbLibs $(TRIDENT) $(FBDEV) $(VESA) $(LAYER) \
		 TinyxLibs TinyFbPostFbLibs
TRIDENTSYSLIBS = StdTinyxSysLibs
d776 1
a776 1
XCOMM server with TinyX C&T driver
d779 1
a779 1
       VESADIR = $(TINYXDIR)/vesa
d781 1
a781 1
      CHIPSDIR = $(TINYXDIR)/chips
d784 1
a784 1
     TINYXDIRS = StdTinyxDirs
d786 1
a786 1
   CHIPSDIRS = $(STDDIRS) $(TINYXDIRS) \
d789 2
a790 3
   CHIPSOBJS = TinyxObjs
   CHIPSLIBS = TinyPreFbLibs $(CHIPS) $(VESA) $(LAYER) TinyxLibs TinyFbPostFbLibs
CHIPSSYSLIBS = StdTinyxSysLibs
d805 1
a805 1
XCOMM server with TinyX Mach64 driver (for Mobility 1 machines)
d808 1
a808 1
       VESADIR = $(TINYXDIR)/vesa
d810 1
a810 1
     MACH64DIR = $(TINYXDIR)/mach64
d813 1
a813 1
     TINYXDIRS = StdTinyxDirs
d815 1
a815 1
   MACH64DIRS = $(STDDIRS) $(TINYXDIRS) \
d818 2
a819 3
   MACH64OBJS = TinyxObjs
   MACH64LIBS = TinyPreFbLibs $(MACH64) $(VESA) $(LAYER) TinyxLibs TinyFbPostFbLibs
MACH64SYSLIBS = StdTinyxSysLibs
d837 1
a837 1
      FBDEVDIR = $(TINYXDIR)/fbdev
d839 1
a839 1
       VESADIR = $(TINYXDIR)/vesa
d841 1
a841 1
       I810DIR = $(TINYXDIR)/i810
d844 1
a844 1
     TINYXDIRS = StdTinyxDirs
d846 1
a846 1
      I810DIRS = $(STDDIRS) $(TINYXDIRS) $(SHADOWDIR) $(I810DIR)
d848 2
a849 3
     I810OBJS = TinyxObjs
      I810LIBS = TinyPreFbLibs $(I810) TinyxLibs TinyFbPostFbLibs
   I810SYSLIBS = StdTinyxSysLibs
d865 1
a865 1
XCOMM server with TinyX SiS 530 driver
d868 1
a868 1
    SIS530DIR = $(TINYXDIR)/sis530
d871 1
a871 1
    TINYXDIRS = StdTinyxDirs
d873 1
a873 1
   SIS530DIRS = $(STDDIRS) $(TINYXDIRS) $(SIS530DIR)
d875 2
a876 3
   SIS530OBJS = TinyxObjs
   SIS530LIBS = TinyPreFbLibs $(SIS530) TinyxLibs TinyFbPostFbLibs
SIS530SYSLIBS = StdTinyxSysLibs
d891 1
a891 1
XCOMM server with TinyX S3 Trio driver
d894 1
a894 1
    TRIODIR = $(TINYXDIR)/trio
d897 1
a897 1
  TINYXDIRS = StdTinyxDirs
d899 1
a899 1
   TRIODIRS = $(STDDIRS) $(TINYXDIRS) $(TRIODIR)
d901 2
a902 3
   TRIOOBJS = TinyxObjs
   TRIOLIBS = TinyPreFbLibs $(TRIO) TinyxLibs TinyFbPostFbLibs
TRIOSYSLIBS = StdTinyxSysLibs
d920 1
a920 1
     FBDEVDIR = $(TINYXDIR)/fbdev
d923 1
a923 1
    PCMCIADIR = $(TINYXDIR)/pcmcia
d926 3
a928 1
      IPAQDIR = $(TINYXDIR)/ipaq
d931 1
a931 1
    TINYXDIRS = StdTinyxDirs
d933 1
a933 1
     IPAQDIRS = $(STDDIRS) $(TINYXDIRS) $(FBDEVDIR) $(LAYERDIR) $(SHADOWDIR) $(PCMCIADIR) $(IPAQDIR)
d935 2
a936 4
     IPAQOBJS = TinyxObjs
     IPAQLIBS = TinyPreFbLibs $(IPAQ) $(FBDEV) $(LAYER) $(SHADOW) \
		$(PCMCIA) TinyxLibs TinyFbPostFbLibs
  IPAQSYSLIBS = StdTinyxSysLibs
d951 1
a951 1
XCOMM server with TinyX S3 Trio and SiS530 driver for the TS300/TS400
d954 1
a954 1
      TRIODIR = $(TINYXDIR)/trio
d957 1
a957 1
    SIS530DIR = $(TINYXDIR)/sis530
d960 1
a960 1
     TS300DIR = $(TINYXDIR)/ts300
d963 1
a963 1
    TINYXDIRS = StdTinyxDirs
d965 1
a965 1
    TS300DIRS = $(STDDIRS) $(TINYXDIRS) $(TRIODIR) $(SIS530DIR) $(TS300DIR)
d967 2
a968 3
    TS300OBJS = TinyxObjs
    TS300LIBS = TinyPreFbLibs $(TS300) $(TRIO) $(SIS530) TinyxLibs TinyFbPostFbLibs
 TS300SYSLIBS = StdTinyxSysLibs
d983 1
a983 1
XCOMM server with TinyX FB driver only
d985 1
a985 1
    ITSYDIR = $(TINYXDIR)/itsy
d988 1
a988 1
  TINYXDIRS = StdTinyxDirs
d990 1
a990 1
   ITSYDIRS = $(STDDIRS) $(TINYXDIRS) $(ITSYDIR)
d992 2
a993 3
   ITSYOBJS = TinyxObjs
   ITSYLIBS = TinyPreFbLibs $(ITSY) TinyxLibs TinyFbPostFbLibs
ITSYSYSLIBS = StdTinyxSysLibs
d1008 1
a1008 1
XCOMM server with vesa driver only based on TinyX server
d1011 1
a1011 1
    VESADIR = $(TINYXDIR)/vesa
d1014 1
a1014 1
   TINYXDIRS = StdTinyxDirs
d1016 1
a1016 1
    VESADIRS = $(STDDIRS) $(TINYXDIRS) $(VESADIR) $(SHADOWDIR) $(LAYERDIR)
d1018 2
a1019 3
   VESAOBJS = TinyxObjs
   VESALIBS = TinyPreFbLibs $(VESA) $(LAYER) TinyxLibs TinyFbPostFbLibs
VESASYSLIBS = StdTinyxSysLibs
d1032 1
a1032 1
TINYXSUBDIRS=$(TINYXDIRS) $(FBDEVDIR) $(SAVAGEDIR) $(TRIDENTDIR) $(I810DIR) \
d1035 1
a1035 1
#endif	/* TinyXServer */
d1050 1
a1050 1
XPLIBS = PreFbLibs $(XPDDXLIBS) $(XPDDXFBLIBS) $(MI) $(XPEXTENSIONS)
d1053 1
a1053 1
XPLIBS = PreFbLibs $(XPFBLIBS) BarePostFbLibs $(XPEXTENSIONS)
d1057 1
a1057 1
XPSYSLIBS = $(FONT) $(CBRT) $(SYSLIBS) -lw
d1059 1
a1059 1
XPSYSLIBS = $(FONT) $(CBRT) $(SYSLIBS)
d1069 1
a1069 1
	$(XPLIBS),$(XPSYSLIBS))
d1091 1
a1091 1
XNESTSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XLIB) $(NOAUTH_SYSLIBS)
d1100 1
a1100 1
	$(XNESTLIBS),$(XNESTSYSLIBS))
d1140 1
a1140 1
XVFBLIBS = PreFbLibs $(XVFB) $(FB) PostFbLibs
d1150 1
a1150 1
	$(XVFBLIBS),$(XVFBSYSLIBS))
a1152 43
#if defined(XdmxServer) && XdmxServer
XCOMM
XCOMM distribued multihead Server
XCOMM
#ifndef Win32Architecture
XDMXDDXDIR = hw/dmx
#else
XDMXDDXDIR = hw
#endif
FBSUBDIR = fb
XDMXDIRS = $(STDDIRS) $(XDMXDDXDIR) $(SHADOWDIR) $(DEPDIRS) $(FBDIR)
#if BuildGlxInDmx
#if BuildXinerama
GLXPROXY_EXTRAOBJS = hw/dmx/panoramiX.o
#endif
GLXPROXYLIB = hw/dmx/glxProxy/LibraryTargetName(glxProxy)
#endif
#if !defined(LynxOSArchitecture) && \
    !defined(Win32Architecture) && \
    !defined(QNX4Architecture)
XDMXOBJS = hw/dmx/miinitext.o $(GLXPROXY_EXTRAOBJS)
#else
XDMXOBJS = hw/dmx/miinitext.o $(GLXPROXY_EXTRAOBJS) dix/main.o
#endif
XDMXINPUT  = hw/dmx/input/LibraryTargetName(dmxinput)
XDMXCONFIG = hw/dmx/config/LibraryTargetName(dmxconfig)
XDMX = hw/dmx/LibraryTargetName(dmxlib) $(XDMXCONFIG) $(GLXPROXYLIB)
XDMXLIBS = PreFbLibs $(XDMX) MiExtLibs $(FB) $(MI) $(DMXEXTENSIONS) $(XDMXINPUT)
#if BuildRender
XDMXRENDERLIB = $(XRENDERLIB)
#endif
XDMXSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XILIB) $(XMULIB) $(XDMXRENDERLIB) \
	      $(XLIB) $(NOAUTH_SYSLIBS)
#if HasParallelMake
MakeMutex($(XDMXDIRS) $(XDMXOBJS) $(XDMXLIBS) $(XDMXSYSLIBS))
#endif
#if ForceServerRemake
$(XDMXOBJS) $(XDMXLIBS) $(XDMXSYSLIBS):: $(XDMXDIRS)
	@@if [ -f $@@ ]; then touch $@@ >/dev/null 2>&1 || exit 0; fi
#endif
ServerTarget(Xdmx,$(XDMXDIRS),$(XDMXOBJS) $(XDMXDEFFILE), \
       $(LIBCWRAPPER) $(XDMXLIBS),$(XDMXSYSLIBS))
#endif /* XdmxServer */
d1159 4
a1162 1
#if 1
d1201 1
a1201 1
	     $(XWINLIBS),$(XWINSYSLIBS)) 
d1224 2
a1227 1
DARWINOBJS = $(DARWINDDXDIR)/miinitext.o
d1229 1
a1229 1
DARWINEXTLIBS = MiExtLibs FbPostFbLibs $(DARWINDDXDIR)/LibraryTargetName(darwin)
d1241 11
d1270 2
a1271 2
SetUIDServerTarget(XDarwinApp,$(DARWINDIRS),$(DARWINOBJS), \
	$(DARWINLIBS) $(QUARTZLIB) $(DARWINEXTLIBS), \
d1339 1
a1339 1
	  $(XVFBDDXDIR) $(XNESTDDXDIR) $(XDMXDDXDIR)
d1342 1
a1342 1
          $(LMFCFBDIR) $(DDXDIRS) $(FBSUBDIR) $(TINYXSUBDIRS) $(MIEXTDIRS) \
@


