forked from ryszard/clsql
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile.common
44 lines (38 loc) · 1.11 KB
/
Makefile.common
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 *.pfsl *.dfsl
@rm -f *.fasla8 *.fasla16 *.faslm8 *.faslm16 *.faslmt
@rm -f *~ *.bak *.orig *.err \#*\# .#*
@rm -f *.so *.a
@rm -rf debian/cl-sql
ifneq ($(SUBDIRS)$(DOCSUBDIRS),)
@set -e; for i in $(SUBDIRS) $(DOCSUBDIRS); do \
$(MAKE) -C $$i $@; done
endif
distclean: clean
ifneq ($(SUBDIRS)$(DOCSUBDIRS),)
@set -e; for i in $(SUBDIRS) $(DOCSUBDIRS); do \
$(MAKE) -C $$i $@; done
endif
.SUFFIXES: # No default suffixes