fixed failing fdml test (definition of employee changed)
[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 ifneq ("$(wildcard /usr/bin/dpkg-buildflags)","")
17 DPKG_BUILDFLAGS=1
18 else
19 DPKG_BUILDFLAGS=0
20 endif
21
22 all:
23         
24
25 .PHONY: clean
26 clean:
27         @rm -rf .bin
28         @rm -f *.ufsl *.fsl *.fas *.x86f *.sparcf *.fasl  *.pfsl *.dfsl
29         @rm -f *.fasla8 *.fasla16 *.faslm8 *.faslm16 *.faslmt
30         @rm -f *~ *.bak *.orig *.err \#*\# .#*
31         @rm -f *.so *.a
32         @rm -rf debian/cl-sql
33 ifneq ($(SUBDIRS)$(DOCSUBDIRS),)
34         @set -e; for i in $(SUBDIRS) $(DOCSUBDIRS); do \
35                 $(MAKE) -C $$i $@; done
36 endif
37
38 distclean: clean
39 ifneq ($(SUBDIRS)$(DOCSUBDIRS),)
40         @set -e; for i in $(SUBDIRS) $(DOCSUBDIRS); do \
41                 $(MAKE) -C $$i $@; done
42 endif
43
44 .SUFFIXES:            # No default suffixes