[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] FIXED: Flags to use in Building a Library
From: |
Jeff Epler |
Subject: |
Re: [avr-gcc-list] FIXED: Flags to use in Building a Library |
Date: |
Tue, 26 Jul 2005 21:50:14 -0500 |
User-agent: |
Mutt/1.5.9i |
On Tue, Jul 26, 2005 at 06:47:57PM -0700, User Tomdean wrote:
> So, I had to force lorder to use avr-nm. This means it has to be in
> the shell environment. No way to get there from make. All I know how
> to do is force an error if NM is not set to avr-nm in the shell
> environment.
At least if you are using GNU make, you can use "export". Here is a
simple Makefile that shows you the general idea:
#-----------------------------------------------------------------------
NM=avr-nm
export NM
default:
export | grep -w NM
#-----------------------------------------------------------------------
$ make -f /tmp/exporting.mk
export | grep -w NM
export NM="avr-nm"
Jeff
pgpFvvAeLG9dc.pgp
Description: PGP signature