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

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

 



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

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux