From: Petr Houska <t-pehous@microsoft.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] Building app with source in subdirectory ?doesn't work
Date: Sun, 9 Sep 2018 04:49:13 +0000 [thread overview]
Message-ID: <MWHPR2101MB0875C85887494B2657A3EA298C060@MWHPR2101MB0875.namprd21.prod.outlook.com> (raw)
Hi,
I'm having troubles creating a working Makefile for DPDK app that has source files in subdirectories.
Minimal repro I created uses the `helloworld` sample with following changes:
1. Add `tst` subdirectory to project's root
2. Add empty `tst.c` file to such subdirectory
3. Modify original `Makefile`'s SRC-y variable so that it includes `tst/tst.c`
When doing that the fist invoke of `make` works just fine and build the app correctly. Subsequent invokes
(unless either build directory is cleaned manually or `make clean` is invoked), however, don't track changes in
files and always fail on `make[1]: Nothing to be done for 'tst.o'.`.
I tried debugging the `Makefile` via `make D=1` but it doesn't output any debug information before failing on
abovementioned message.
Moving `tst.c` to root folder solved the issue. The issue has been observed with custom Makefiles referencing
`app.rte.mk` as well so it's not just helloworld's issue.
Petr Houska
Azure Intern
next reply other threads:[~2018-09-09 4:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-09 4:49 Petr Houska [this message]
2018-09-09 10:51 Rami Rosen
2018-09-09 18:21 ` Petr Houska
2018-09-10 9:14 ` Rami Rosen
2018-09-10 16:47 ` Petr Houska
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=MWHPR2101MB0875C85887494B2657A3EA298C060@MWHPR2101MB0875.namprd21.prod.outlook.com \
--to=t-pehous@microsoft.com \
--cc=users@dpdk.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).