X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=Makefile.common;h=455f5a47061d8b4ee18ca9701764931983a60628;hb=4121952d2aa95c8611bf70b25b7772b5867c7666;hp=846a75425c6bd32d4911b6b9f36db69d3fbd1b1f;hpb=9caf87927916854758e642c625e6c8a8b274b999;p=clsql.git diff --git a/Makefile.common b/Makefile.common index 846a754..455f5a4 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 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.*') + all: