|
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) |
target1: MCU=mega128 SRC="this.c that.c ..." ASRC="this.S that.S ..." target2: MCU=mega16 ... 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" Rolf P.S. I had some nasty bugs in older versions of GNU make with a syntax like target: FOO += toto.ci.e. appending to a variable depending on the target. It sometimes gave very strange results...
[Prev in Thread] | Current Thread | [Next in Thread] |