build-system: Allow building with static pjproject
[asterisk/asterisk.git] / third-party / Makefile.rules
1
2 ifeq ($(NOISY_BUILD),)
3         SUBMAKE?=$(MAKE) --quiet --no-print-directory
4     ECHO_PREFIX?=@
5     CMD_PREFIX?=@
6     QUIET_CONFIGURE=-q
7     REALLY_QUIET=&>/dev/null
8 else
9         SUBMAKE?=$(MAKE)
10     ECHO_PREFIX?=@\#
11     CMD_PREFIX?=
12     QUIET_CONFIGURE=
13     REALLY_QUIET=
14 endif
15
16 DOWNLOAD :=
17 DOWNLOAD != which wget 2>/dev/null
18 DOWNLOAD:=$(if $(DOWNLOAD),$(DOWNLOAD) -O- ,)
19
20 ifeq ($(DOWNLOAD),)
21 DOWNLOAD != which curl 2>/dev/null
22 DOWNLOAD:=$(if $(DOWNLOAD), $(DOWNLOAD) -L ,)
23 endif
24
25 ifeq ($(DOWNLOAD),)
26 DOWNLOAD := echo "No download program available" ; exit 1;
27 endif
28
29 export SUBMAKE
30 export ECHO_PREFIX
31 export CMD_PREFIX
32 export QUIET_CONFIGURE
33 export REALLY_QUIET
34 export ASTTOPDIR
35 export ASTSBINDIR
36 export DESTDIR
37 export ASTDATADIR