clang-query Makefile

Hello,

Currently, clang-query only supports CMake. Attached is a small patch that adds a Makefile.

I should say that I’m not a build system expert and there may have been very well a reason why the file wasn’t there yet. In particular, I suspect USEDLIBS would have to be tweaked manually unless there is some automatic way of finding (or double-checking) the dependencies of a clang project.

I hope this helps though.

With kind regards,
Alex

clang-query-makefile.patch (1.93 KB)

Hello,

Currently, clang-query only supports CMake. Attached is a small patch that
adds a Makefile.

Thanks, r201599.

I should say that I'm not a build system expert and there may have been
very well a reason why the file wasn't there yet. In particular, I suspect
USEDLIBS would have to be tweaked manually unless there is some automatic
way of finding (or double-checking) the dependencies of a clang project.

The original reason why this didn't have a makefile was that the clang-query
tool used to be built conditionally as it had a direct dependency on libedit,
and this was awkward to manage with the makefile build system. That dependency
has now been moved to LLVM (and is now optional) so we can now just build
the tool unconditionally in the makefile.

Thanks,