~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to tools/perf/config/utilities.mak

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
_gea_warn = $(warning The path '$(1)' is not executable.)
180
180
_gea_err  = $(if $(1),$(error Please set '$(1)' appropriately))
181
181
 
182
 
# try-cc
183
 
# Usage: option = $(call try-cc, source-to-build, cc-options, msg)
184
 
ifneq ($(V),1)
185
 
TRY_CC_OUTPUT= > /dev/null 2>&1
 
182
ifneq ($(findstring $(MAKEFLAGS),s),s)
 
183
  ifneq ($(V),1)
 
184
    QUIET_CLEAN         = @printf '  CLEAN    %s\n' $1;
 
185
    QUIET_INSTALL       = @printf '  INSTALL  %s\n' $1;
 
186
  endif
186
187
endif
187
 
TRY_CC_MSG=echo "    CHK $(3)" 1>&2;
188
 
 
189
 
try-cc = $(shell sh -c                                            \
190
 
        'TMP="$(OUTPUT)$(TMPOUT).$$$$";                           \
191
 
         $(TRY_CC_MSG)                                            \
192
 
         echo "$(1)" |                                            \
193
 
         $(CC) -x c - $(2) -o "$$TMP" $(TRY_CC_OUTPUT) && echo y; \
194
 
         rm -f "$$TMP"')