How to add an (S)VGA driver to XFree86 : Building The New Server
Previous: The FbInit() function
Next: Debugging

## 7. Building The New Server

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:

- If you are working in the source tree, follow these steps: Go to xc/programs/Xserver, and enter ``make Makefile`', then ``make Makefiles depend all`'
- If you are working in the Link Kit, follow these steps:
  1. Go to /usr/X11R6/lib/Server, and enter ``./mkmf`'
  2. In the same directory, enter ``make`'

To rebuild the server after the initial build (e.g. after making changes to your driver):

- If you are working in the source tree, follow these steps:
  1. Go to the appropriate drivers/ directory (e.g., xc/programs/Xserver/hw/xfree86/vga256/drivers), and enter ``make`'.
  2. Go to xc/programs/Xserver, and enter ``make loadXF86_SVGA`' (to link the color server), ``make loadXF86_VGA16`' (to link the 16 color server) or ``make loadXF86_Mono`' (to link the mono server).
- If you are working in the Link Kit, follow these steps:
  1. Go to the appropriate driver directory, and enter ``make`'.
  2. Go to /usr/X11R6/lib/server, and enter ``make loadXF86_SVGA`' (to link the color server) or ``make loadXF86_VGA16`' (to link the 16 color server) or ``make loadXF86_Mono`' (to link the mono server).

How to add an (S)VGA driver to XFree86 : Building The New Server
Previous: The FbInit() function
Next: Debugging