From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] mk: add debug target Date: Wed, 31 Jan 2018 00:40:28 +0100 Message-ID: <9672510.c4JnJd36Tx@xps> References: <20171216001350.90436-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, John McNamara To: Ferruh Yigit Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id C55A01B682 for ; Wed, 31 Jan 2018 00:41:16 +0100 (CET) In-Reply-To: <20171216001350.90436-1-ferruh.yigit@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 16/12/2017 01:13, Ferruh Yigit: > Add "debug" target to build library with debug symbols and optimization > disabled. > > This is shortcut for exiting method to compile with > EXTRA_CFLAGS="-O0 -g3" > > Signed-off-by: Ferruh Yigit > --- > + debug build library with debug symbols [...] > +.PHONY: debug > +debug: > + $(Q)$(MAKE) EXTRA_CFLAGS="-O0 -g3" This target will override any EXTRA_CFLAGS, so we cannot build in debug mode with more extra cflags this way. I think the cons are higher than the pros.