<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Building The New Server </TITLE>
</HEAD>
<BODY BGCOLOR="#efefef" TEXT="black" LINK="blue" VLINK="#551A8B" ALINK="red">

<A HREF="VGADriver.html"><EM> How to add an (S)VGA driver to XFree86</EM></A>
 <b>:</b> <EM>Building The New Server </EM><BR>
<b>Previous:</b> <A HREF="VGADriver6.html"><EM>The Driver Itself </EM></A><BR>
<b>Next:</b> <A HREF="VGADriver8.html"><EM>Debugging </EM></A>


<HR NOSHADE>
  <H2><A NAME="21"></A>7. Building The New Server </H2>
<p>As in the setup work, the steps for building the server depend whether
you are working in the source tree or in the Link Kit.  Here are the
steps for the initial build after installing your new driver files:
<ul>
<li>If you are working in the source tree, follow these steps:

Go to xc/programs/Xserver, and enter
`<code>make Makefile</code>', then
`<code>make Makefiles depend all</code>'
</li>
<li>If you are working in the Link Kit, follow these steps:

<ol>
<li>Go to /usr/X11R6/lib/Server, and enter
`<code>./mkmf</code>'</li>
<li>In the same directory, enter `<code>make</code>'</li>
</ol>
</li>
</ul>

To rebuild the server after the initial build (e.g. after making changes
to your driver):</p>
<p>
<ul>
<li>	If you are working in the source tree, follow these steps:
		
<ol>
<li>	Go to the appropriate drivers/ directory (e.g.,
xc/programs/Xserver/hw/xfree86/vga256/drivers),
and enter `<code>make</code>'.</li>
<li>	Go to xc/programs/Xserver, and enter
`<code>make loadXF86_SVGA</code>' (to link the color server),
`<code>make loadXF86_VGA16</code>' (to link the 16 color server) or
`<code>make loadXF86_Mono</code>' (to link the mono server).</li>
</ol>

</li>
<li>	If you are working in the Link Kit, follow these steps:

<ol>
<li>	Go to the appropriate driver directory, and enter
`<code>make</code>'.</li>
<li>	Go to /usr/X11R6/lib/server, and enter 
`<code>make loadXF86_SVGA</code>' (to link the color server) or 
`<code>make loadXF86_VGA16</code>' (to link the 16 color server) or 
`<code>make loadXF86_Mono</code>' (to link the mono server).</li>
</ol>
</li>
</ul>
</p>

 <HR NOSHADE>
<A HREF="VGADriver.html"><EM> How to add an (S)VGA driver to XFree86</EM></A>
 <b>:</b> <EM>Building The New Server </EM><BR>
<b>Previous:</b> <A HREF="VGADriver6.html"><EM>The Driver Itself </EM></A><BR>
<b>Next:</b> <A HREF="VGADriver8.html"><EM>Debugging </EM></A>



</BODY>
</HTML>
