X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=Makefile.common;h=30be60ead65f4a9f89626ccd1e2ff1a4ef7a2e80;hp=d2fe21376e5b7c42d579df3d12616266f3afe005;hb=0ad64f85ff6cd99a78cc9ae6716ebbdb5627eaef;hpb=d1b4f8b20bb7ae6e515fb29a292400820173d4c4 diff --git a/Makefile.common b/Makefile.common index d2fe213..30be60e 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1,10 +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.*') +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: .PHONY: clean clean: @rm -rf .bin - @rm -f *.ufsl *.fsl *.fas *.x86f *.sparcf *.fasl + @rm -f *.ufsl *.fsl *.fas *.x86f *.sparcf *.fasl *.pfsl *.dfsl + @rm -f *.fasla8 *.fasla16 *.faslm8 *.faslm16 *.faslmt @rm -f *~ *.bak *.orig *.err \#*\# .#* @rm -f *.so *.a @rm -rf debian/cl-sql