<camper.ha...@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