Skip to content

An example to describe how works GNU Autotools toolchain.

License

Notifications You must be signed in to change notification settings

gmarcha/autotools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autotools

Sample describing autotools usage.

Usage

  • Create and write configure.ac in root directory and a Makefile.am in root directory and each subdirectory containing source code.

  • Run autoreconf --install to perform configuration files and Makefile/Makefile.in generation
    (autoreconf runs autotools toolchain in right order: aclocal, autoconf, autoheader, automake).

  • Use ./configure && make && sudo make install to install package.

  • Use ./configure --prefix=/usr to change installation path.

  • Use make CC=<pathToCompiler> CFLAGS="<compilerFlags>" to change compiler and compiler options (default to gcc and -g -O2 respectively).

Links

About

An example to describe how works GNU Autotools toolchain.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages