autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Packing" binary data into object files using autotools


From: Thomas Nyberg
Subject: Re: "Packing" binary data into object files using autotools
Date: Mon, 14 Aug 2017 17:41:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Hello,

I figured out the issue and wanted to resolve it on the list. It was
quite trivial to do this using BUILT_SOURCES (not so sure why I had so
much trouble...). Basically something like the following suffices:

    # Makefile.am
    -------------------------------------------------------------------
    [...]

    BUILT_SOURCES = code.tar

    code.tar:
        tar c code/ > code.tar

    CLEANFILES = code.tar

    library_la_SOURCES = \
        ... [A bunch of files...]
        src/resources/code_archive.S
    -------------------------------------------------------------------

This produces the necessary tar file in the current directory before
doing the rest of the compilation. The CLEANFILES target cleans it again
afterwards.

Cheers,
Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]