X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=Makefile.common;h=30be60ead65f4a9f89626ccd1e2ff1a4ef7a2e80;hp=846a75425c6bd32d4911b6b9f36db69d3fbd1b1f;hb=01c654c9e616801affcb94ea0e75c8d486e203b9;hpb=9caf87927916854758e642c625e6c8a8b274b999 diff --git a/Makefile.common b/Makefile.common index 846a754..30be60e 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1,3 +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.*') +OS_DARWIN64=$(shell expr "$(DARWIN_LIBC)" : '.*x86_64.*') +OS_CYGWIN=$(shell expr "$(UNAME)" : '.*CYGWIN.*') +OS_LINUX=$(shell expr "$(UNAME)" : '.*Linux.*') +OS_LINUX64=$(shell expr "$(UNAME_A)" : '.*Linux.*x86_64.*') + all: