removed unused/uncompiled atol64
[clsql.git] / Makefile.common
1 UNAME=$(shell uname)
2 UNAME_A=$(shell uname -a)
3 DARWIN_LIBC=$(shell file /usr/lib/libc.dylib)
4
5 OS_AIX=$(shell expr "$(UNAME)" : '.*AIX.*')
6 OS_SUNOS=$(shell expr "$(UNAME)" : '.*SunOS.*')
7 OS_DARWIN=$(shell expr "$(UNAME)" : '.*Darwin.*')
8 ifneq ($(OS_DARWIN),0) 
9   OS_DARWIN64=$(shell expr "$(DARWIN_LIBC)" : '.*x86_64.*')
10 else
11   OS_DARWIN64=0
12 endif
13 OS_CYGWIN=$(shell expr "$(UNAME)" : '.*CYGWIN.*')
14 OS_LINUX=$(shell expr "$(UNAME)" : '.*Linux.*')
15 OS_LINUX64=$(shell expr "$(UNAME_A)" : '.*Linux.*x86_64.*')
16
17 all:
18         
19
20 .PHONY: clean
21 clean:
22         @rm -rf .bin
23         @rm -f *.ufsl *.fsl *.fas *.x86f *.sparcf *.fasl  *.pfsl *.dfsl
24         @rm -f *.fasla8 *.fasla16 *.faslm8 *.faslm16 *.faslmt
25         @rm -f *~ *.bak *.orig *.err \#*\# .#*
26         @rm -f *.so *.a
27         @rm -rf debian/cl-sql
28 ifneq ($(SUBDIRS)$(DOCSUBDIRS),)
29         @set -e; for i in $(SUBDIRS) $(DOCSUBDIRS); do \
30                 $(MAKE) -C $$i $@; done
31 endif
32
33 distclean: clean
34 ifneq ($(SUBDIRS)$(DOCSUBDIRS),)
35         @set -e; for i in $(SUBDIRS) $(DOCSUBDIRS); do \
36                 $(MAKE) -C $$i $@; done
37 endif
38
39 .SUFFIXES:            # No default suffixes