From patchwork Tue May 6 20:59:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 29732 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 59A3A202E6 for ; Tue, 6 May 2014 21:00:07 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id ij19sf179739vcb.1 for ; Tue, 06 May 2014 14:00:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=hQdFSvMUiBHsNIlGmuoP1koBhaWohtCOZBO2WbFdDdg=; b=DPRFY7StDlVfAC1o/Gw3A/sMn4xdbyxIE9EP4YXlYhx2HIawNu3PK7knsgP/9p1H4K TgOu+DuNnDwP/FBfJWdJhrz99Mjs6AqJbLYaQTruK5YzTxJC4G6j+fgIFJXCg1iDC5IT 81x681UOAzc5ezacreeqKwoP+2AlFb7KXxONnHteJxJ9P3AbJEMOJVIauav+ZRn+Yu83 HFI2+uiEePRZDWOIGiCTXTkbzhKrvJwUOepySJVkTzwDostIRsZzzgux84z2k/zyCpDu 87wOsYhKMf5UOIQdju0HCj7MTkjVcJKnPWY0eu9wN0GPQbXC6gllYbNwNbbtzqXdFEO3 k7TA== X-Gm-Message-State: ALoCoQkA7m2+r2596V1GndYVxMX+fyY9vG7PBzEIkCXqJ4mXIvZpeKR2i7z1j/VnPUgz4b5ePQQn X-Received: by 10.236.123.68 with SMTP id u44mr2075761yhh.19.1399410007620; Tue, 06 May 2014 14:00:07 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.247 with SMTP id u110ls1148171qge.79.gmail; Tue, 06 May 2014 14:00:07 -0700 (PDT) X-Received: by 10.220.167.2 with SMTP id o2mr34870737vcy.8.1399410007435; Tue, 06 May 2014 14:00:07 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id w5si2530494vcl.66.2014.05.06.14.00.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 May 2014 14:00:07 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id if11so72032vcb.8 for ; Tue, 06 May 2014 14:00:07 -0700 (PDT) X-Received: by 10.221.4.66 with SMTP id ob2mr8381540vcb.28.1399410007368; Tue, 06 May 2014 14:00:07 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp255287vcb; Tue, 6 May 2014 14:00:07 -0700 (PDT) X-Received: by 10.229.221.194 with SMTP id id2mr57554330qcb.5.1399410006927; Tue, 06 May 2014 14:00:06 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id v7si4224820qge.16.2014.05.06.14.00.06 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 06 May 2014 14:00:06 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WhmST-00042D-OO; Tue, 06 May 2014 20:59:25 +0000 Received: from mail-lb0-f169.google.com ([209.85.217.169]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WhmSN-00041l-0Z for lng-odp@lists.linaro.org; Tue, 06 May 2014 20:59:19 +0000 Received: by mail-lb0-f169.google.com with SMTP id s7so78469lbd.0 for ; Tue, 06 May 2014 13:59:53 -0700 (PDT) X-Received: by 10.112.141.130 with SMTP id ro2mr10600810lbb.42.1399409992990; Tue, 06 May 2014 13:59:52 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id k2sm14850129lbm.23.2014.05.06.13.59.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 06 May 2014 13:59:52 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 6 May 2014 22:59:39 +0200 Message-Id: <1399409980-465-2-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1399409980-465-1-git-send-email-anders.roxell@linaro.org> References: <1399409980-465-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 1/2] Makefile.inc: DEBUG=yes to build debug X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 DEBUG=yes to add -O0 -g to EXTRA_CFLAGS Signed-off-by: Anders Roxell --- Makefile.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index a5aeb8b..6b292ce 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -18,8 +18,13 @@ RM := rm -f COPY := cp -r EXTRA_CFLAGS += -DODP_DEBUG=1 + +ifeq ($(DEBUG),yes) +EXTRA_CFLAGS += -O0 -g +else EXTRA_CFLAGS += -O3 -#EXTRA_CFLAGS += -O0 -g +endif + EXTRA_CFLAGS += -pthread EXTRA_CFLAGS += -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes EXTRA_CFLAGS += -Wmissing-declarations -Wold-style-definition -Wpointer-arith