Makefile.include (e5451c8f8330e03ad3cfa16048b4daf961af434f) Makefile.include (e572d0887137acfc53f18175522964ec19d88175)
1ifneq ($(O),)
2ifeq ($(origin O), command line)
3 dummy := $(if $(shell test -d $(O) || echo $(O)),$(error O=$(O) does not exist),)
4 ABSOLUTE_O := $(shell cd $(O) ; pwd)
5 OUTPUT := $(ABSOLUTE_O)/$(if $(subdir),$(subdir)/)
6 COMMAND_O := O=$(ABSOLUTE_O)
7ifeq ($(objtree),)
8 objtree := $(O)

--- 32 unchanged lines hidden (view full) ---

41EXTRA_WARNINGS += -Wformat
42
43ifneq ($(findstring $(MAKEFLAGS), w),w)
44PRINT_DIR = --no-print-directory
45else
46NO_SUBDIR = :
47endif
48
1ifneq ($(O),)
2ifeq ($(origin O), command line)
3 dummy := $(if $(shell test -d $(O) || echo $(O)),$(error O=$(O) does not exist),)
4 ABSOLUTE_O := $(shell cd $(O) ; pwd)
5 OUTPUT := $(ABSOLUTE_O)/$(if $(subdir),$(subdir)/)
6 COMMAND_O := O=$(ABSOLUTE_O)
7ifeq ($(objtree),)
8 objtree := $(O)

--- 32 unchanged lines hidden (view full) ---

41EXTRA_WARNINGS += -Wformat
42
43ifneq ($(findstring $(MAKEFLAGS), w),w)
44PRINT_DIR = --no-print-directory
45else
46NO_SUBDIR = :
47endif
48
49ifneq ($(filter 4.%,$(MAKE_VERSION)),) # make-4
50ifneq ($(filter %s ,$(firstword x$(MAKEFLAGS))),)
51 silent=1
52endif
53else # make-3.8x
54ifneq ($(filter s% -s%,$(MAKEFLAGS)),)
55 silent=1
56endif
57endif
58
49#
50# Define a callable command for descending to a new directory
51#
52# Call by doing: $(call descend,directory[,target])
53#
54descend = \
55 +mkdir -p $(OUTPUT)$(1) && \
56 $(MAKE) $(COMMAND_O) subdir=$(if $(subdir),$(subdir)/$(1),$(1)) $(PRINT_DIR) -C $(1) $(2)
57
58QUIET_SUBDIR0 = +$(MAKE) $(COMMAND_O) -C # space to separate -C and subdir
59QUIET_SUBDIR1 =
60
59#
60# Define a callable command for descending to a new directory
61#
62# Call by doing: $(call descend,directory[,target])
63#
64descend = \
65 +mkdir -p $(OUTPUT)$(1) && \
66 $(MAKE) $(COMMAND_O) subdir=$(if $(subdir),$(subdir)/$(1),$(1)) $(PRINT_DIR) -C $(1) $(2)
67
68QUIET_SUBDIR0 = +$(MAKE) $(COMMAND_O) -C # space to separate -C and subdir
69QUIET_SUBDIR1 =
70
61ifneq ($(findstring $(MAKEFLAGS),s),s)
71ifneq ($(silent),1)
62 ifneq ($(V),1)
63 QUIET_CC = @echo ' CC '$@;
64 QUIET_CC_FPIC = @echo ' CC FPIC '$@;
65 QUIET_AR = @echo ' AR '$@;
66 QUIET_LINK = @echo ' LINK '$@;
67 QUIET_MKDIR = @echo ' MKDIR '$@;
68 QUIET_GEN = @echo ' GEN '$@;
69 QUIET_SUBDIR0 = +@subdir=

--- 15 unchanged lines hidden ---
72 ifneq ($(V),1)
73 QUIET_CC = @echo ' CC '$@;
74 QUIET_CC_FPIC = @echo ' CC FPIC '$@;
75 QUIET_AR = @echo ' AR '$@;
76 QUIET_LINK = @echo ' LINK '$@;
77 QUIET_MKDIR = @echo ' MKDIR '$@;
78 QUIET_GEN = @echo ' GEN '$@;
79 QUIET_SUBDIR0 = +@subdir=

--- 15 unchanged lines hidden ---