xref: /4.5.1-MP3/tlm/GNUmakefile (revision 2a1c8057)
1# PLEASE NOTE: This Makefile is provided as a convenience for those
2# who do not wish to interact with CMake. It is NOT SUPPORTED by the
3# Couchbase build team, and the production builds do NOT make use of
4# it, so bugs filed against it will need to be handled by those devs
5# who care to use it.
6
7PREFIX:=$(shell pwd)/install
8MAKEFLAGS=--no-print-directory
9
10all:
11	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp MAKETYPE="Unix Makefiles" SEPARATOR=/ all
12
13install: all
14	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp MAKETYPE="Unix Makefiles" SEPARATOR=/ install
15
16geocouch-build-for-testing:
17	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp MAKETYPE="Unix Makefiles" SEPARATOR=/ geocouch-build-for-testing
18
19test:
20	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp MAKETYPE="Unix Makefiles" SEPARATOR=/ test
21
22run-mats:
23	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp run-mats
24
25e2etest:
26	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp e2etest
27
28e2eviewtests:
29	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp e2eviewtests
30
31analyze:
32	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp MAKETYPE="Unix Makefiles" $@
33
34clean:
35	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp RM=rm RMOPTS=-rf SEPARATOR=/ clean
36
37clean-xfd:
38	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp RM=rm RMOPTS=-rf SEPARATOR=/ clean-xfd
39
40clean-xfd-hard: clean-xfd
41
42clean-all: clean-xfd
43
44ICU_OPT=
45UNAME := $(shell uname -s)
46ifeq ($(UNAME),Darwin)
47    # MB-11442
48    ICU_OPT=-mmacosx-version-min=10.7
49endif
50
51icu4c/source/Makefile:
52	(cd icu4c/source && \
53	CFLAGS=$(ICU_OPT) CXXFLAGS=$(ICU_OPT) LDFLAGS=$(ICU_OPT) \
54	  ./configure "--prefix=$(PREFIX)")
55
56make-install-icu4c: icu4c/source/Makefile
57	$(MAKE) -C icu4c/source install
58
59make-install-couchdb-deps: make-install-icu4c
60