[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4.4.1 GNU make

Building Crystal Space requires GNU's `make' utility. NextStep does not ship with GNU `make', so it must be downloaded and installed before this project can be built. MacOS/X, MacOS/X Server 1.0 (Rhapsody), and OpenStep all ship with GNU `make' already installed. On these platforms, it is named `gnumake'. MacOS/X, MacOS/X Server 1.0 (Rhapsody), and OpenStep users may ignore this section and safely skip to the next one.

NextStep users can find pre-built binaries of GNU `make' at these locations:

http://www.peak.org/next/apps/devtools/make.3.76.1.NIHS.bs.tar.gz
http://www.peak.org/next/apps/devtools/gnumake.3.74.b.NIHS.tar.gz

The source code for the latest version of GNU `make' can be downloaded from one of the standard GNU mirror sites; a couple of which are listed here:

http://wuarchive.wustl.edu/systems/gnu/make/make-3.79.1.tar.gz
ftp://ftp.uu.net/systems/gnu/make/make-3.79.1.tar.gz

The current version of GNU `make' (3.79.1 at the time of this writing), does not correctly perform filename wildcard expansion out-of-the-box when used with NextStep 3.3. Fortunately, this problem can be easily corrected. Build the program by following these instructions:

  1. Unpack the source:

     
    gnutar xfz make-3.79.1.tar.gz
    

  2. Run the configuration script:

     
    cd make-3.79.1
    ./configure
    

  3. Edit the files `dir.c' and `glob/glob.c', and in each file find the line which reads:

     
    # define NAMLEN(dirent) (dirent)->d_namlen
    

    Replace this line with:

     
    # define NAMLEN(dirent) strlen((dirent)->d_name)
    

  4. Build the project:

     
    make install
    

In order to be consistent with the MacOS/X, MacOS/X Server 1.0 (Rhapsody), and OpenStep installations, it is probably best to rename the installed executable to `gnumake' rather than the default name, `make'. The remaining instructions in this document assume that the utility is installed under the name `gnumake'.



This document was generated using texi2html