X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=Makefile.common;h=358d75d1cf33976fea7eee08b7f4c0c8c7af565e;hp=87e43ef497a7c743af73376903d4c978df1d7ad8;hb=83b09c87d38cdaf7ce3da8d5a20aa8c5ee4505bc;hpb=f10c3dcbe75b5532d6646e24ecd25f5651a0c3a9 diff --git a/Makefile.common b/Makefile.common index 87e43ef..358d75d 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1,9 +1,23 @@ 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 "$(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.*') +ifneq ("$(wildcard /usr/bin/dpkg-buildflags)","") +DPKG_BUILDFLAGS=1 +else +DPKG_BUILDFLAGS=0 +endif all: