[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: converting nmake to gnumake
From: |
Tobias Contreras |
Subject: |
RE: converting nmake to gnumake |
Date: |
Fri, 26 May 2006 15:37:47 -0400 |
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:address@hidden On Behalf Of Paul D. Smith
Sent: May 26, 2006 3:08 PM
To: Tobias Contreras
Cc: address@hidden
Subject: Re: converting nmake to gnumake
%% "Tobias Contreras" <address@hidden> 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 <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.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.