>>>>> "Carl" == Carl van Schaik <[EMAIL PROTECTED]> writes:

Carl> Also, there any way to get automake to compile a .c file to .o
Carl> and not make a library or program out of it?

Carl> I'm doing some cross-compiling stuff that only seems to work if
Carl> I compile files to .o and use the linker to create a
Carl> binary... this is a pain in automake ...

You can override the linker on a per-executable basis.  This might be
what you want to do.

Failing that, here is the standard way to build a .o without building
anything else:

    EXTRA_LIBRARIES = libdummy.a
    libdummy_a_SOURCES = my-program.c

Then arrange for my-program.o to be a target somehow, e.g., arrange
for it to be installed.

Tom

Reply via email to