Re: Dual-mode makefile? 32 and 64 bit
"Gisle Vanem" <[email protected]> Sat, 21 Mar 2009 14:08:43 +0100
| Newsgroups | gmane.comp.gnu.utils |
|---|---|
| Message-ID | <[email protected]> |
<[email protected]> 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