Skip to Main Content
Autotools
book

Autotools

by John Calcote
July 2010
Intermediate to advanced content levelIntermediate to advanced
360 pages
11h 12m
English
No Starch Press
Content preview from Autotools

Building the New Library

Next, we need to edit the SUBDIRS variable in the top-level Makefile.am file in order to include the new common directory we just added. We also need to add the new makefile that was generated in the common directory to the list of files generated from templates in the AC_CONFIG_FILES macro call in configure.ac. These changes are shown in Example 5-19 and Example 5-20.

Example 5-19. Makefile.am: Adding the common directory to the SUBDIRS variable

SUBDIRS = common src

Example 5-20. configure.ac: Adding common/Makefile to the AC_CONFIG_FILES macro

...
AC_CONFIG_FILES([Makefile
                 common/Makefile
                 src/Makefile])
...

Now let's give our updated build system a try. Add the -i option to the autoreconf command line so that it will install ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

GNU Autoconf, Automake, and Libtool

GNU Autoconf, Automake, and Libtool

Gary V. Vaughan, Ben Elliston, Tom Tromey, Ian Lance Taylor
Red Hat® Linux® 7 Unleashed

Red Hat® Linux® 7 Unleashed

Bill Ball, David Pitts

Publisher Resources

ISBN: 9781593272067Errata