From patchwork Fri Mar 28 14:51:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 27296 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2276620545 for ; Fri, 28 Mar 2014 14:51:28 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id oz11sf11428784veb.5 for ; Fri, 28 Mar 2014 07:51:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type; bh=wugls/Mr0haIDKtIIBeb4CCyXmtXjd5D6hatH6av8os=; b=isi0Woe/IT56/WehJZ+OIGpui4fpRuTd0wfVlahyRhKqLI32UzDHiN2QLGmCJQzWKf eNEOTHzOWsAqvTJFmXaOiKy9JS0uAu9uqBgbLoCPEZA/250BWzlansD3mfiz3821602p QAUuMOlVEz7cWSCMexMzeZmnaKH264hDMEAh3w/gax8ljpGTno6egPPUVaEK89DpKsAU PmL1j7QkE+zVbMINXpqybDb3ws7G5VmRUZnu7gm37aJn6FjSRnBM5cRqhEl3wGC43+bx CTH4YPDOfiQ3rLwMzsDqCgqjjwU85kZrH1/PTUOtRmi1Bc1VcIjS40fWeih094UTI7FA V6mg== X-Gm-Message-State: ALoCoQmc7Cb4nFcJfI+7NzjDFYu8J3Up6BgxOXJW+aehw51NbALixKEImfGNHsrwJyxrDlDA5PDM X-Received: by 10.236.84.141 with SMTP id s13mr3207778yhe.5.1396018287842; Fri, 28 Mar 2014 07:51:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: lng-odp@linaro.org Received: by 10.140.20.22 with SMTP id 22ls1532772qgi.63.gmail; Fri, 28 Mar 2014 07:51:27 -0700 (PDT) X-Received: by 10.224.98.197 with SMTP id r5mr9617140qan.47.1396018287615; Fri, 28 Mar 2014 07:51:27 -0700 (PDT) Received: from mail-qc0-f172.google.com (mail-qc0-f172.google.com [209.85.216.172]) by mx.google.com with ESMTPS id lz5si2638617qcb.50.2014.03.28.07.51.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Mar 2014 07:51:27 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.216.172 is neither permitted nor denied by best guess record for domain of mike.holmes@linaro.org) client-ip=209.85.216.172; Received: by mail-qc0-f172.google.com with SMTP id i8so6109116qcq.31 for ; Fri, 28 Mar 2014 07:51:27 -0700 (PDT) X-Received: by 10.224.112.6 with SMTP id u6mr2842053qap.78.1396018287494; Fri, 28 Mar 2014 07:51:27 -0700 (PDT) Received: from fedora1.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id b3sm10521365qae.2.2014.03.28.07.51.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Mar 2014 07:51:26 -0700 (PDT) From: Mike Holmes To: lng-odp@linaro.org Cc: Mike Holmes Subject: [lng-odp] [PATCH] Makefile: Take advantage of ccache automatically Date: Fri, 28 Mar 2014 10:51:14 -0400 Message-Id: <1396018274-11489-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 1.9.1 X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.216.172 is neither permitted nor denied by best guess record for domain of mike.holmes@linaro.org) smtp.mail=mike.holmes@linaro.org Precedence: list Mailing-list: list lng-odp@linaro.org; contact lng-odp+owners@linaro.org List-ID: X-Google-Group-Id: 474323889996 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Mike Holmes --- Makefile.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index a5aeb8b..dde09a9 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -7,7 +7,6 @@ PLATFORM ?= linux-generic OBJ_DIR = ./obj ODP_DIR = $(ODP_ROOT)/platform/$(PLATFORM) - CC ?= gcc LD ?= gcc AR ?= ar @@ -17,6 +16,12 @@ RMDIR := rm -rf RM := rm -f COPY := cp -r +CCACHE_EXISTS := $(shell ccache -V) +ifdef CCACHE_EXISTS + CC := ccache $(CC) + CXX := ccache $(CXX) +endif + EXTRA_CFLAGS += -DODP_DEBUG=1 EXTRA_CFLAGS += -O3 #EXTRA_CFLAGS += -O0 -g