1.3. AVR-LIBC

1.3.1. Downloading the Source

The AVR standard library archive used in this document is version 20020203. The archive can be obtained using the URL in Table 1-1. Download this file and place it in your working directory.

1.3.2. Building the Libraries

Before we can build the libraries, we need to unarchive the tarball.

    % tar zxf avr-libc-20020203.tar.gz
    % cd avr-libc-20020203

Now simply build the project.

Note: At this point, the user can configure some library options, like setting whether the watchdog can be initialized through the linker hack.

    % cd src
    % make prefix=/usr/local/avr

1.3.3. Installing the Libraries and Header Files

Once the libraries have been built, you need to install them with the rest of the tools.

    % make prefix=/usr/local/avr install