[Top][All Lists]

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

Re: Changing build steps with automake

From: Ralf Wildenhues
Subject: Re: Changing build steps with automake
Date: Tue, 5 Apr 2011 20:23:03 +0200
User-agent: Mutt/1.5.20 (2010-08-04)

Hi Jan,

* Honza wrote on Tue, Apr 05, 2011 at 03:29:37PM CEST:
> I'm new to autotools and have not found the answer to my question in
> documentation so I decided to ask here. I need to change/add compilation
> steps in opencore-amr project, which uses autotools to generate makefiles.
> I'd like to have following procedure
> 1. run gcc with -S producing asm code
> 2. perform a sed editing on resulting asm files
> 3. compile edited asm files
> Is there any way how to alter to reach demanded behaviour,
> please? It would be easy when using simple Makefile, but I have no idea in
> this situation.

Automake is surprisingly inflexible in this area.  Here's a couple of

1) If your project doesn't use per-target compile flags, you can just


and maybe

rules that do this for you.  Look at what automake puts in,
use that as staring point in your and adjust.

2) If your project uses per-target compile flags, the most fool-proof
way would be to use a wrapper script for the compiler, and then near the
end of

CC="\${top_srcdir}/path/to/wrapper $CC"
(or top_builddir if you need to generate the wrapper)

and let the wrapper do the steps for you.

Hope that helps.  If not, it can help to show what you've got, and


reply via email to

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