X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=Makefile.common;h=3c8fd2bb314b131a79943c066a7355adcb493d7f;hp=846a75425c6bd32d4911b6b9f36db69d3fbd1b1f;hb=b50166ae0ba2bc09a9094c0e675ec92010b7293e;hpb=9caf87927916854758e642c625e6c8a8b274b999 diff --git a/Makefile.common b/Makefile.common index 846a754..3c8fd2b 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1,3 +1,19 @@ +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.*') + all: