help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dual-mode makefile? 32 and 64 bit


From: Gisle Vanem
Subject: Re: Dual-mode makefile? 32 and 64 bit
Date: Sat, 21 Mar 2009 14:08:43 +0100

<camper.happy@rocketmail.com> wrote:

I want to avoid learning autoconf/automake and simply
create a makefile that will be able to detect whether
my Linux box is 64 bit or not.
After some perusing of the make manual however
I am finding no easy answers.

Something like:

LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
  # do 64 bit stuff here
else
  # do 32 bit stuff here
endif

--gv


reply via email to

[Prev in Thread] Current Thread [Next in Thread]