From da132f2fdfcff9ad7642acf802de0a7b67aae567 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 28 Feb 2005 00:40:29 +0000 Subject: Add a little more detail about the configuration process for projects. llvm-svn: 20368 --- llvm/docs/Projects.html | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) (limited to 'llvm/docs/Projects.html') diff --git a/llvm/docs/Projects.html b/llvm/docs/Projects.html index db1838d5c88..c7ab6cf0263 100644 --- a/llvm/docs/Projects.html +++ b/llvm/docs/Projects.html @@ -89,39 +89,52 @@ the name of your project.
  • Add your source code and Makefiles to your source tree.
  • -
  • If you want your Makefiles to be configured by the configure -script, or if you want to support multiple object directories, add your -Makefiles to the configure script by adding them into the -autoconf/configure.ac file. The macro AC_CONFIG_MAKEFILE will -copy a file, unmodified, from the source directory to the object directory.
  • +
  • If you want your project to be configured with the configure script +then you need to edit autoconf/configure.ac as follows: + +
  • After updating autoconf/configure.ac, regenerate the configure script with these commands:

    % cd autoconf
    - % autoconf -o ../configure

    + % AutoRegen.sh

    -

    You must be using Autoconf version 2.57 or higher.

  • +

    You must be using Autoconf version 2.59 or later and your aclocal version +should 1.9 or later.

  • Run configure in the directory in which you want to place object code. Use the following options to tell your project where it can find LLVM:
    -
    --with-llvmsrc=<directory> -
    - Tell your project where the LLVM source tree is located. -

    -

    --with-llvmobj=<directory> -
    - Tell your project where the LLVM object tree is located. +
    --with-llvmsrc=<directory>
    +
    Tell your project where the LLVM source tree is located.
    +

    --with-llvmobj=<directory>
    +
    Tell your project where the LLVM object tree is located.
    +

    --prefix=<directory>
    +
    Tell your project where it should get installed.
    -

    That's it! Now all you have to do is type gmake in the root of -your object directory, and your project should build.

    +

    That's it! Now all you have to do is type gmake (or make +if your on a GNU/Linux system) in the root of your object directory, and your +project should build.

    -- cgit v1.2.3