I have a library that I must link against and I need to select the right 
version. I.e. something like this:

if x86
        LIB = -lx86Version
else
        LIB = -larmVersion
endif

Or is there some other way to achieve this?

Mikko

-----Original Message-----
From: Santtu Lakkala [mailto:[EMAIL PROTECTED] 
Sent: 17. kesäkuuta 2008 13:39
To: Mikko Mehtonen
Cc: [email protected]
Subject: Re: How to know target in makefile?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mikko Mehtonen wrote:
> Is there a way to know in Makefile which target we are building (arm 
> or x86)? There seems to be a variable $target in scratchbox, but it 
> isn't exported so it's not visible in Makefile.

May I ask why do you need this information. Sbox is meant to be "transparent" 
and the target name shouldn't make any difference.

- --
Santtu Lakkala

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIV5QnX9Rc0+po4p0RAs6fAJ9lK86FfkvpBKO4Wk606ayeSXv+iACgshtH
Nshgvpg+6mCAYmaMdGUMTZg=
=AboO
-----END PGP SIGNATURE-----
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to