All of lore.kernel.org
 help / color / mirror / Atom feed
From: Todor Minchev <todor.minchev@linux.intel.com>
To: yocto@yoctoproject.org, meta-intel@yoctoproject.org,
	jianxun.zhang@linux.intel.com
Cc: Todor Minchev <todor.minchev@linux.intel.com>
Subject: [PATCH v2 2/5] Makefile: add debug target
Date: Thu,  9 Feb 2017 11:17:37 -0800	[thread overview]
Message-ID: <20170209191740.63387-3-todor.minchev@linux.intel.com> (raw)
In-Reply-To: <20170209191740.63387-1-todor.minchev@linux.intel.com>

A debug version of the rmc binary can be built by using the debug
Makefile target. This will include debug symbols and will disable
compiler optimizations.

Example:

make debug

Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com>
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index c58047a..fdd936f 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,8 @@ ALL_OBJS := $(RMC_TOOL_OBJ) $(RMC_LIB_OBJ)
 RMC_CFLAGS := -Wall -I$(TOPDIR)/inc
 
 all: rmc
+debug: RMC_CFLAGS += -DDEBUG -g -O0
+debug: rmc
 
 $(ALL_OBJS): %.o: %.c
 	$(CC) -c $(CFLAGS) $(RMC_CFLAGS) $< -o $@
-- 
2.11.1



  parent reply	other threads:[~2017-02-09 19:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-09 19:17 [PATCH v2 0/5] [meta-intel][rmc] Add fingerprint quering and database extraction functionality to RMC Todor Minchev
2017-02-09 19:17 ` [PATCH v2 1/5] Makefile: disable silent mode in Makefiles Todor Minchev
2017-02-10 18:40   ` Jianxun Zhang
2017-02-09 19:17 ` Todor Minchev [this message]
2017-02-10 18:58   ` [PATCH v2 2/5] Makefile: add debug target Jianxun Zhang
2017-02-14 17:33     ` Todor Minchev
2017-02-09 19:17 ` [PATCH v2 3/5] rmc: Enable reading the contents of an existing fingerprint file Todor Minchev
2017-02-10 19:21   ` Jianxun Zhang
2017-02-09 19:17 ` [PATCH v2 4/5] rmc: remove unnecessary return variable Todor Minchev
2017-02-10 19:22   ` Jianxun Zhang
2017-02-09 19:17 ` [PATCH v2 5/5] rmc: add database extraction functionality Todor Minchev
2017-02-10 19:52   ` Jianxun Zhang
2017-02-14 17:50     ` Todor Minchev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170209191740.63387-3-todor.minchev@linux.intel.com \
    --to=todor.minchev@linux.intel.com \
    --cc=jianxun.zhang@linux.intel.com \
    --cc=meta-intel@yoctoproject.org \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.