Skip to content

Build cleanups#159

Merged
igaw merged 4 commits intolinux-nvme:masterfrom
igaw:build-cleanups
Dec 29, 2021
Merged

Build cleanups#159
igaw merged 4 commits intolinux-nvme:masterfrom
igaw:build-cleanups

Conversation

@igaw
Copy link
Copy Markdown
Collaborator

@igaw igaw commented Dec 27, 2021

A few more cleanups as a result from #158 and linux-nvme/nvme-cli#1293

Signed-off-by: Daniel Wagner <dwagner@suse.de>
In case the consuming project also uses a config.h we need to hide our
config.h file. By using the path to our config.h we avoid this
confusion. Obviously, 'src' is a bit too generic, thus move the
generated config.h under libnvme.

Introduce also a private include path because ccan has '#include
"config.h"' in its sources. So we need to present a config.h in the
lookup path but it needs to be the one from this project and not the
one from the consuming project.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Use consistently _dep postfix for all dependency objects.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Currently, the Makefile is not setting the C dialect but the code was
carved out from the nvme-cli code base which relies on gnu99.
Let's define the C dialect to avoid any confusion and make the build
more consistent.

Without defining the default warning level the build system will use
the default level, which is implementation depended.  For example muon
sets it to 3 which includes '-Wpendantic'.  This results in a lot of
ISO-C non compliant warnings.

Let's define the warning level so that all build systems are using the
same values.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
@igaw igaw merged commit 28cea79 into linux-nvme:master Dec 29, 2021
@igaw igaw deleted the build-cleanups branch February 1, 2022 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants