X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=Makefile.common;h=455f5a47061d8b4ee18ca9701764931983a60628;hb=4121952d2aa95c8611bf70b25b7772b5867c7666;hp=c3aedeb5157a78f38ce53b9873d101b511d4aa5c;hpb=62b30f29f978dfc2258991aec8703d2489fe79c0;p=clsql.git diff --git a/Makefile.common b/Makefile.common index c3aedeb..455f5a4 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1,10 +1,26 @@ +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: .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