2 1. unpack the source tarball and cd to the resulting dir
5 this reads configure.in and generates the ./configure script
8 this probes your system and then, for each "file" named
9 in the AC_OUTPUT() macro near the end of configure.in,
10 read "file".in and generate "file". Variables named @somevariable@
11 will be substituted with literal values.
13 4. step (3) produces several files. These files are generated by
14 configure from their respective .in file in the same directory.
15 You should have a read of these generated files and diff them
16 against their respective .in files to see what was substituted
20 common definitions for the build environment. This is included
21 by all Makefiles, in conjunction with src/include/buildrules.
22 Note that most autoconf/configure build environments generate
23 Makefile (from Makefile.in) in every src dir. Instead, we
24 generate builddefs, and then include it in every Makefile.
26 src/include/platform_defs.h
27 header containing conditional macros defining the C run-time
28 environment discovered by the configure script.
30 5. read some or all of the GNU tool chain documentation
32 http://www.delorie.com/gnu/docs/make/make_toc.html
34 http://www.delorie.com/gnu/docs/autoconf/autoconf_toc.html
36 http://www.delorie.com/gnu/docs/libtool/libtool_toc.html
38 http://www.delorie.com/gnu/docs/gcc/gcc_toc.html
40 6. Makefiles and build environment
41 First have a look at some Makefiles
43 example using SUBDIRS : acl/Makefile
44 example static library: acl/libacl/Makefile
45 example command : acl/getfacl/Makefile
47 All Makefiles must define TOPDIR as the root of the project. This
48 allows other stuff to be found relative to $(TOPDIR).
50 All Makefiles should have the following structure, which is
51 much like commondefs and commonrules in the IRIX build environment, e.g.
53 # ----------------------------------------------------------------------
54 # TOPDIR must point to the root of the project
55 # The builddefs file defines lots of things. Read it.
57 include $(TOPDIR)/include/builddefs
59 # first rule should always be "default"
61 commands to build targets, if necessary
63 # $(BUILDRULES) is defined in builddefs and includes rules for
64 # descending subdirs, building targets and installation rules
68 $(INSTALL) sometargets somewhere
69 # ----------------------------------------------------------------------
74 this script generates all of the packages supported - each has a
75 subdirectory below acl/build where knowledge specific to each
76 package type is maintained.
78 The script produces logs of each stage of the build (this info is
79 also echoed to the screen when the "verbose" option is provided):
81 acl/Logs/configure - `autoconf; ./configure' output
82 acl/Logs/default - `make default' output
83 acl/Logs/dist - `make build dist' output
85 On successful completion, the script echoes the names of packages
86 successfully generated.