From patchwork Thu May 8 21:08:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 29859 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 53F9020534 for ; Thu, 8 May 2014 21:09:05 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 9sf6307789ykp.1 for ; Thu, 08 May 2014 14:09:05 -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=P4VZIIakpNQb6nAKDBL2c+vm4PiN/9fvVpMfLCH1GiDcLD2ad9xNqkR/cIIvo9Rj7o 1p4dCeN7BARUUnYDrXkKr1wCN6l0cDKkLThYdtQzgSyInZo3xBJlpAehebg267+DUmr4 aYopOQ/RMKRU4MUNUKVsZnUHFrnqvrui+V7CfLiuGdwYUwwiNc6kWc93+dhilGkgwEyz PGPjKBZUIfkN9g0lfE+OEVcsFhURa0PvryOmDqoabnleQzzofJtDPDdetkCk31zVMKRP B89DqtAPI32dLtleBFFjiZN5UzBTepGv4ingrr6KtW/9E5dd5WOkdOYuonitqYwRzYr4 mpsQ== X-Gm-Message-State: ALoCoQk1dqO96bYiXXRYZG+s5oh4gmIU9l4vcgTUdeSn/TiH3++bvlgWlqUdDJ2nda8nXFsuwgS6 X-Received: by 10.236.130.101 with SMTP id j65mr2463384yhi.29.1399583345028; Thu, 08 May 2014 14:09:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.93.11 with SMTP id c11ls41911qge.55.gmail; Thu, 08 May 2014 14:09:04 -0700 (PDT) X-Received: by 10.220.69.72 with SMTP id y8mr4646248vci.21.1399583344940; Thu, 08 May 2014 14:09:04 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id oo7si379368vcb.22.2014.05.08.14.09.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 May 2014 14:09:04 -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.171; Received: by mail-vc0-f171.google.com with SMTP id lc6so4068232vcb.2 for ; Thu, 08 May 2014 14:09:04 -0700 (PDT) X-Received: by 10.52.37.130 with SMTP id y2mr3920964vdj.38.1399583344866; Thu, 08 May 2014 14:09:04 -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 ib8csp25421vcb; Thu, 8 May 2014 14:09:04 -0700 (PDT) X-Received: by 10.140.96.51 with SMTP id j48mr8482624qge.24.1399583344272; Thu, 08 May 2014 14:09:04 -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 2si1129986qah.90.2014.05.08.14.09.03 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 08 May 2014 14:09:04 -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 1WiVYB-0005uo-Ui; Thu, 08 May 2014 21:08:19 +0000 Received: from mail-lb0-f179.google.com ([209.85.217.179]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WiVY0-0005uB-R2 for lng-odp@lists.linaro.org; Thu, 08 May 2014 21:08:08 +0000 Received: by mail-lb0-f179.google.com with SMTP id c11so4484047lbj.10 for ; Thu, 08 May 2014 14:08:46 -0700 (PDT) X-Received: by 10.112.139.166 with SMTP id qz6mr6799588lbb.13.1399583325821; Thu, 08 May 2014 14:08:45 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id i3sm2124651lbv.31.2014.05.08.14.08.44 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 May 2014 14:08:45 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Thu, 8 May 2014 23:08:28 +0200 Message-Id: <1399583309-17552-2-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1399583309-17552-1-git-send-email-anders.roxell@linaro.org> References: <1399583309-17552-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 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