Important: Please read the Qt Code of Conduct -

Qmake - Add variables from .pro file to Makefile

  • Hi,

    I would like to define some variables like this:
    @LLVMCONFIG = llvm-config@
    which should be available in the makefile as well. How can I do this?
    (I read somewhere they should be copied to the makefile as default which is not the case...)

    Furthermore if this is possible I would like to make a custom make command like this:
    %: %.o
    $(CXX) -o $@ $< $(CLANGLIBS) $(LLVMLDFLAGS)

    can I specify this in the .pro file or should I use some other way like CMake?

    Thanks for any help

Log in to reply