Thank you for your help and such a quick reply, sorry I
didn't give
enough information. I plan on upgrading to 3.81 though
currently at 3.79
I am converting nmake make file to gnumake.
Converting this over:
ifeq "$(HW_PROCESSOR)" "PROCESSOR_1"
|| "$(HW_PROCESSOR)" "PROCESSOR_2"
|| "$(HW_PROCESSOR)" "PROCESSOR_3"
$(OBJ_DIR)\herc_pollserial.o
...
Endif
How would you use the $(or condition1, condition2) in the
above
statement,
Or the ways around using 3.79.
Are there forums or irc that you would recommend, so that if
I had small
questions like this I could ask?
Thank you
-----Original Message-----
From: Paul Smith [mailto:psmith nortel.com] On Behalf Of
Paul D. Smith
Sent: May 26, 2006 3:08 PM
To: Tobias Contreras
Cc: help-make gnu.org
Subject: Re: converting nmake to gnumake
%% "Tobias Contreras" <tcontreras rim.com> writes:
tc> In nmake there is the ability to use ||
"or" in the conditionals,
tc> I see that there is none of this in gnumake, why is
that?
I'm not sure how to answer this.
tc> And how would I convert this "or
conditional" to something gnumake
tc> will like.
If you're using GNU make 3.81 you can use the $(or ...) and
$(and ...)
functions.
Be sure you understand how make determines true vs. false in
boolean
contexts.
If you aren't using 3.81, there are various tricks you can
use: we'll
need more information about EXACTLY what you're trying to
do.
--
------------------------------------------------------------
------------
-------
Paul D. Smith <psmith gnu.org> Find
some GNU make tips at:
http://www.gnu.org
http://make.paulandlesl
ey.org
"Please remain calm...I may be mad, but I am a
professional." --Mad
Scientist
------------------------------------------------------------
---------
This transmission (including any attachments) may contain
confidential information, privileged material (including
material protected by the solicitor-client or other
applicable privileges), or constitute non-public
information. Any use of this information by anyone other
than the intended recipient is prohibited. If you have
received this transmission in error, please immediately
reply to the sender and delete this information from your
system. Use, dissemination, distribution, or reproduction of
this transmission by unintended recipients is not authorized
and may be unlawful.
_______________________________________________
Help-make mailing list
Help-make gnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
|