Using autoconf for a shared library

2016-08-15 Thread Thomas Nyberg
Hello, I've been reading the manuals for autoconf/automake and have been unable to get a setup working correctly with autoconf. I've written up a toy shared library and right now the Makefile has a rule to install the library directly to `/usr/local`. All I really want from autoconf is to be

Using autoconf for a shared library

2016-08-15 Thread Thomas Nyberg
Hello, I've been reading the manuals for autoconf/automake and have been unable to get a setup working correctly with autoconf. I've written up a toy shared library and right now the Makefile has a rule to install the library directly to `/usr/local`. All I really want from autoconf is to be

Using autoconf for a shared library

2016-08-15 Thread Thomas Nyberg
Hello, I've been reading the manuals for autoconf/automake and have been unable to get a setup working correctly with autoconf. I've written up a toy shared library and right now the Makefile has a rule to install the library directly to `/usr/local`. All I really want from autoconf is to be

Re: Using autoconf for a shared library

2016-08-16 Thread Thomas Nyberg
On 08/16/2016 09:47 AM, Marco Maggi wrote: It is a bit overkill, but: when I start a new project I copy this template project: and customise it. It is just a template for a C language library project, it does nothing in it

"Packing" binary data into object files using autotools

2017-08-14 Thread Thomas Nyberg
Hello, I have a Makefile which I'm trying to convert to an autotools setup. It's complicated by the fact that some code is not compiled until runtime. I'll try to be as detailed as possible. In my hand-written Makefile I have the following setup. I have a rule which tars up some files and puts it

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

2017-08-14 Thread Thomas Nyberg
Hello, I just wanted to simplify my previous question. Say I'm starting with this file: # Makefile.am --- [...] library_la_SOURCES = \ ... [A bunch of files...] src/resources/code_archive.S --

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

2017-08-14 Thread Thomas Nyberg
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 -