Automated commit for debian release 6.6.3-2
[clsql.git] / Makefile.common
index c3aedeb5157a78f38ce53b9873d101b511d4aa5c..358d75d1cf33976fea7eee08b7f4c0c8c7af565e 100644 (file)
@@ -1,10 +1,31 @@
+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.*')
+ifneq ("$(wildcard /usr/bin/dpkg-buildflags)","")
+DPKG_BUILDFLAGS=1
+else
+DPKG_BUILDFLAGS=0
+endif
+
 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