avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Make question (how to)


From: Artur Lipowski
Subject: Re: [avr-gcc-list] Make question (how to)
Date: Sun, 08 May 2005 20:15:49 +0200
User-agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324)

Joerg Wunsch wrote:
"Larry Barello" <address@hidden> wrote:


target1:
        MCU=mega128
...

That cannot work that way.  Makefiles do only parse *all* their macro
definitions first, then evaluate the macros, and only then start to
consider which targets to make.  Thus, you cannot create
target-dependant macros.  Also, make macros must start right at the
...
I'm afraid it is possible.  >:-)
Below excerpt from GNU make manual - subsection "Target-specific Variable Values".

   The other exception is "target-specific variable values".  This
feature allows you to define different values for the same variable,
based on the target that `make' is currently building.  As with
automatic variables, these values are only available within the context
of a target's command script (and in other target-specific assignments).
   Set a target-specific variable value like this:
     TARGET ... : VARIABLE-ASSIGNMENT
or like this:
     TARGET ... : override VARIABLE-ASSIGNMENT


Regards,
--
Artur Lipowski




reply via email to

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