X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=Makefile.common;h=455f5a47061d8b4ee18ca9701764931983a60628;hb=4121952d2aa95c8611bf70b25b7772b5867c7666;hp=dd73322efe4695cd4d2e3d69b05109fcf93a215c;hpb=244328d6a2b108b8d4448df06034ca088e313440;p=clsql.git diff --git a/Makefile.common b/Makefile.common index dd73322..455f5a4 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1,9 +1,15 @@ UNAME=$(shell uname) UNAME_A=$(shell uname -a) +DARWIN_LIBC=$(shell file /usr/lib/libc.dylib) OS_AIX=$(shell expr "$(UNAME)" : '.*AIX.*') OS_SUNOS=$(shell expr "$(UNAME)" : '.*SunOS.*') OS_DARWIN=$(shell expr "$(UNAME)" : '.*Darwin.*') +ifneq ($(OS_DARWIN),0) + OS_DARWIN64=$(shell expr match "$(DARWIN_LIBC)" '.*x86_64.*') +else + OS_DARWIN64=0 +endif OS_CYGWIN=$(shell expr "$(UNAME)" : '.*CYGWIN.*') OS_LINUX=$(shell expr "$(UNAME)" : '.*Linux.*') OS_LINUX64=$(shell expr "$(UNAME_A)" : '.*Linux.*x86_64.*')