xmkmf Command

Purpose

Creates a Makefile from an Imakefile.

Syntax

xmkmf-a ] [  TopDir CurDir ] ]

Description

The xmkmf command creates a Makefile from an Imakefile shipped with third-party software. When invoked with no arguments or variables in a directory containing an Imakefile file, the imake command runs with arguments appropriate for your system (configured into xmkmf when X was built) and generates a Makefile.

Flag

Item Description
-a First builds the Makefile in the current directory, then automatically executes make Makefiles, make includes, and make depend. This is how to configure software that is outside of the MIT X build tree.

Variables

Specify TopDir and CurDir if you are working inside the MIT X build tree (highly unlikely unless you are an X developer).

Item Description
TopDir Specify as the relative path name from the current directory to the top of the build tree.
CurDir Specify as a relative path name from the top of the build tree to the current directory.

The CurDir variable is required if the current directory has subdirectories; otherwise, the Makefile will not be able to build the subdirectories. If a TopDir variable is given in its place, xmkmf assumes nothing is installed on your system and searches for files in the build tree instead of using the installed versions.