[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Testing integers in a Makefile?
From: |
John Graham-Cumming |
Subject: |
Re: Testing integers in a Makefile? |
Date: |
Tue, 08 Mar 2005 15:11:21 -0500 |
On Tue, 2005-03-08 at 18:01 +0100, Gilles DELIFER wrote:
> I'd like to write something like:
> $(if ($(_HARDWARE_REVISION) > 005),DEFS+=-D_ADD_THIS,DEFS+=-D_ADD_THAT)
> but I cannot find the right syntax for doing this...
Gilles,
Take a look at my "GNU Make Standard Library" (URL is in my sig). There
are functions in there for doing integer arithmetic and comparisons.
John.
--
John Graham-Cumming
Home: http://www.jgc.org/
Work: http://www.electric-cloud.com/
POPFile: http://getpopfile.org/
GNU Make Standard Library: http://gmsl.sf.net/