[Top][All Lists]

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

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

From: Rolf Ebert
Subject: Re: [avr-gcc-list] FW: Make question (how to)
Date: Mon, 02 May 2005 21:56:44 +0200
User-agent: Opera M2/7.54 (Win32, build 3929)

On Mon, 2 May 2005 10:53:42 -0700, Larry Barello <address@hidden> wrote:

        SRC="this.c that.c ..."
        ASRC="this.S that.S ..."

        ... etc.

It is just a question of syntax. You can set variables depending on the target they are for like this:

variant1: SRC = "foo.c"

variant2: SRC = "bar.c"

This syntax is limited to one varaible per line (at least I think so)

Your case should be written as:

target1: MCU = mega128
target1: SRC="this.c that.c ..."
target1: ASRC="this.S that.S ..."

target2: MCU=mega16
target2: ...

See the GNU Make Manual on topic "Target-specific Variable Values"


P.S. I had some nasty bugs in older versions of GNU make with a syntax like

target: FOO += toto.c

i.e. appending to a variable depending on the target. It sometimes gave very strange results...

reply via email to

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