automake
[Top][All Lists]
Advanced

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

Re: Generate Custom Compiler / Build Rules?


From: Ralf Wildenhues
Subject: Re: Generate Custom Compiler / Build Rules?
Date: Tue, 21 Sep 2010 07:15:03 +0200
User-agent: Mutt/1.5.20 (2010-08-04)

* Xochitl Lunde wrote on Mon, Sep 20, 2010 at 11:59:24PM CEST:
> Ralf Wildenhues wrote on 09/13/2009 12:09:31 PM:
> > That's due to (quoting automake/NEWS for 1.10):
> > 
> >   - `-Wportability' has finally been turned on by default for `gnu' and
> >     `gnits' strictness.  This means, automake will complain about %-rules
> >     or $(GNU Make functions) unless you switch to `foreign' strictness or
> >     use `-Wno-portability'.
> 
> I have long since fixed the "$(shell pwd)" in my makefile, but I still
> get it complaining about '%' rules being a GNU make extension.  I
> added "-Wno-portability" to CFLAGS & CXXFLAGS, but that did not change
> anything.  What do I add -Wno-portability to?

To the list of Automake options, not to the list of C or C++ flags.
See <http://www.gnu.org/software/automake/manual/html_node/Options.html>
for how options may be set.

> How could I change this rule to not be a % rule?
> 
> %$(BIN_EXT) : %$(EXEEXT)
>         f=`echo "$<" | sed 's/$(EXEEXT)//'`; \
>         make $$f$(SYM_EXT); \
>         cp $< $$f-monimage$(EXEEXT);
>         $(OBJCOPY) -Obinary $< $$f$(ac_uncompress_ext) 
>         $(ac_netos_imgcompress) $$f$(ac_uncompress_ext) 
> $$f$(ac_compress_ext) 
>         $(ac_netos_boothdr) $(ac_netos_imgheader_cfg) 
> $$f$(ac_compress_ext) $@ $(PLATFORM) $(ac_netos_l2b_endian)
>         $(RM) $$f$(ac_compress_ext)
>         ../../$(ac_netos_binpack) $(PLATFORM) 
> $(ac_netos_ldscripts)/rom.bin $@
>         mv rom.bin $@
>         mv rom.bin.md5 address@hidden

Not possible, since at least $(EXEEXT) may be empty, and inference rules
do not work from empty suffixes.

Cheers,
Ralf



reply via email to

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