This link has been bookmarked by 50 people . It was first bookmarked on 07 Jul 2006, by Richard Powell.
-
16 Feb 14
-
20 Sep 13
-
14 May 13
-
27 Dec 12
-
22 Aug 12
-
04 May 11
-
24 Apr 11
-
06 Mar 11
-
09 Jul 10
-
16 Feb 10
-
19 Dec 09
-
25 Oct 09
-
22 Oct 09
-
08 Jul 09
-
22 Jun 09
-
23 Feb 09
-
The make tool can be used to manage multi-file projects. make uses the Makefile file in your project folder, which lists the various compiling and linking steps, targets, and dependencies. make is well explained in C-Scene: Multi-File Projects and the GNU Make Utility.
A configure script can be used to aid cross-platform compiling. A suitable configure script should interpret a Makefile.in file and then create a platform-specific Makefile file. It will do this after performing several tests to determine the characteristics of the platform.
This allows a user to type './configure' and then 'make' to compile a project on his platform.
-
-
04 Dec 08
-
30 Nov 08
-
11 Jul 08
-
However, you need a stamp-h file in your project to ensure that automake regenerates config.h from config.h.in. Type 'touch stamp-h' to add this file to your project.
-
If you do not want these GNU-style files, then you could add the following to your Makefile.am instead:
AUTOMAKE_OPTIONS = foreign
-
- 'autoheader' - creates config.h.in
- 'touch NEWS README AUTHORS ChangeLog'
- 'touch stamp-h'
- aclocal - adds aclocal.m4 to directory. Defines some m4 macros used by the auto tools.
- 'autoconf '- creates configure from configure.ac
- 'automake' - Creates Makefile.in from Makefile.am
- './configure' - creates Makefile from Makefile.in >
- 'make'
Assuming that you have written appropriate Makefile.am and configure.ac files (there are examples below), you should be able to build your project by entering the following commands:
Just repeat the last 5 steps to completely rebuild the project. Most projects have an autogen.sh script that runs everything up to the configure step.
-
-
21 Jun 08
-
06 Nov 07
-
19 Oct 07
-
04 Aug 07
-
25 Jul 07
-
24 Mar 07
-
06 Mar 07
-
15 Feb 07
-
04 Sep 06
-
03 Aug 06
-
18 Jul 06
-
13 Jan 06
-
01 Jul 05
Page Comments
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.