Attempt to detect OS arch(32/64 bit) on most platforms
Attempt to automatically detect 32bit or 64bit OS architecture in Makefile, unless user has specified preference on the command line.
This commit is contained in:
parent
977768ac88
commit
5efb0a9a33
7
Makefile
7
Makefile
@ -1,4 +1,5 @@
|
||||
UNAME=$(shell uname | tr A-Z a-z | tr -d \\-[:digit:].)
|
||||
ARCH=$(shell uname -m)
|
||||
LIBPREFIX=lib
|
||||
LIBSUFFIX=a
|
||||
CXX_O=-o $@
|
||||
@ -11,7 +12,11 @@ CFLAGS_M32=-m32
|
||||
CFLAGS_M64=-m64
|
||||
BUILDTYPE=Release
|
||||
|
||||
|
||||
ifeq (, $(ENABLE64BIT))
|
||||
ifeq ($(ARCH), x86_64)
|
||||
ENABLE64BIT=Yes
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq (,$(wildcard ./gtest))
|
||||
HAVE_GTEST=No
|
||||
|
Loading…
x
Reference in New Issue
Block a user