public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Determining 64-bit or 32-bit in Makefile
@ 2007-12-10 17:15 kyp44
  2007-12-10 17:31 ` Dep, Khushil (GE Money)
  0 siblings, 1 reply; 2+ messages in thread
From: kyp44 @ 2007-12-10 17:15 UTC (permalink / raw)
  To: gcc-help


I have a project which will be built on both 64-bit and 32-bit machines. Is
there a way to determine what type of machine I am building on from the
makefile (like an environment variable) so that I can build differently
according to architecture?

-- 
View this message in context: http://www.nabble.com/Determining-64-bit-or-32-bit-in-Makefile-tp14257170p14257170.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Determining 64-bit or 32-bit in Makefile
  2007-12-10 17:15 Determining 64-bit or 32-bit in Makefile kyp44
@ 2007-12-10 17:31 ` Dep, Khushil (GE Money)
  0 siblings, 0 replies; 2+ messages in thread
From: Dep, Khushil (GE Money) @ 2007-12-10 17:31 UTC (permalink / raw)
  To: kyp44, gcc-help

I've found the following helpful:

http://unix.derkeiler.com/Newsgroups/comp.unix.programmer/2005-04/0551.h
tml

And

http://www.stata.com/support/faqs/win/64bit.html

HTH
Khush. 

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of kyp44
Sent: 10 December 2007 17:16
To: gcc-help@gcc.gnu.org
Subject: Determining 64-bit or 32-bit in Makefile


I have a project which will be built on both 64-bit and 32-bit machines.
Is there a way to determine what type of machine I am building on from
the makefile (like an environment variable) so that I can build
differently according to architecture?

--
View this message in context:
http://www.nabble.com/Determining-64-bit-or-32-bit-in-Makefile-tp1425717
0p14257170.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-10 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-10 17:15 Determining 64-bit or 32-bit in Makefile kyp44
2007-12-10 17:31 ` Dep, Khushil (GE Money)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).