All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] Makefile question
Date: Tue, 19 Jun 2007 01:22:33 +0000	[thread overview]
Message-ID: <20070619012233.GP8154@parisc-linux.org> (raw)
In-Reply-To: <63b6c970706181732y6b21b632yff6af81567ab55f6@mail.gmail.com>

On Mon, Jun 18, 2007 at 08:32:54PM -0400, tiob lew wrote:
> I have a problem about Makefile and gdb.

This is completely off-topic for this list.

> How should I modify Makefile so that the program could be debugged by gdb.

However, I can see what your problem is.  Your rule:

> $@: $<
>    $(CC) $(CFLAGS) -c $<

is never being invoked.

Just set CXXFLAGS instead of CFLAGS, and the predefined implicit rule
will take care of it.
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

      reply	other threads:[~2007-06-19  1:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19  0:32 [KJ] Makefile question tiob lew
2007-06-19  1:22 ` Matthew Wilcox [this message]

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=20070619012233.GP8154@parisc-linux.org \
    --to=matthew@wil.cx \
    --cc=kernel-janitors@vger.kernel.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.