From: Randy Dunlap <rdunlap@infradead.org>
To: kernel-janitors@vger.kernel.org
Subject: Re: Strange Makefile rule
Date: Tue, 20 Aug 2013 16:50:07 +0000 [thread overview]
Message-ID: <52139E3F.9090400@infradead.org> (raw)
In-Reply-To: <CA+MoWDoAAc3QmK20RscRpi7_U=cU+0BD9RscH6YYYdzjYp1FLg@mail.gmail.com>
On 08/20/13 09:42, Peter Senna Tschudin wrote:
> I do not have cross compile environment but I'm curious how the
> Makefile rule works:
>
> linux-next]$ cat drivers/net/ethernet/arc/Makefile
>
> obj-$(CONFIG_ARC_EMAC) += arc_emac.o
>
> There is no file named arc_emac.h and arc_emac.c at
> drivers/net/ethernet/arc, so what does that line do?
It uses the rule from the previous line in the Makefile.
Both lines are:
arc_emac-objs := emac_main.o emac_mdio.o
obj-$(CONFIG_ARC_EMAC) += arc_emac.o
Any xyz-objs defines the files to be used to build xyz.o.
Is that clear yet?
--
~Randy
next prev parent reply other threads:[~2013-08-20 16:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-20 16:42 Strange Makefile rule Peter Senna Tschudin
2013-08-20 16:42 ` Peter Senna Tschudin
2013-08-20 16:50 ` Randy Dunlap [this message]
2013-08-20 16:52 ` Peter Senna Tschudin
2013-08-20 16:52 ` Peter Senna Tschudin
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=52139E3F.9090400@infradead.org \
--to=rdunlap@infradead.org \
--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.