This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: automake-1.7.7 and AM_CFLAGS/CFLAGS
- From: Alexandre Duret-Lutz <aduret at src dot lip6 dot fr>
- To: Harlan Stenn <hstenn at cisco dot com>
- Cc: automake at gnu dot org
- Date: Fri, 10 Oct 2003 09:00:42 +0200
- Subject: Re: automake-1.7.7 and AM_CFLAGS/CFLAGS
- References: <29350.1065745416@cisco.com>
>>> "Harlan" == Harlan Stenn <hstenn@cisco.com> writes:
Harlan> I'm trying hard to keep the warnings, as I want the
Harlan> developers to write cleaner code...
Ah, sorry.
Then it's probably better not to append anything to CFLAGS from
./configure. Put all your extra flags in SOFTW_CFLAGS or
KMOD_CFLAGS, AC_SUBST these, and define `AM_CFLAGS =
$(SOFTW_CFLAGS)' or `AM_CFLAGS = $(KMOD_CFLAGS)' in each
Makefile.
Note that if you use per-target _CFLAGS, you will also have to
append $(AM_CFLAGS) to each such variables.
Probably only of these translation can be automated so you
don't hand-edit your 100+ Makefiles.
--
Alexandre Duret-Lutz