Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QT 5.7.x qmake doesnt generate implicit rules
hnqt last edited by
I have a problem when I use qmake from qt-opensource-windows-x86-mingw530-5.7.x, the Makefile.Release created by this version of qmake doesn't include the section "####### Implicit rules"m, this is very important for my code because I declare QMAKE_EXT_CPP += .c to compile some c code. It works with qt 5.5.1.
If someone can help me with this?
Hi and welcome to devnet,
You should check with git what happened to qmake between 5.5.1 and 5.7.
hnqt last edited by SGaist
this is the reason:
the function "writeImplicitRulesPart" in file winmakefile.cpp is empty. It was removed from the code.
- Stop generating implicit suffix rules in Makefiles
Suffix rules are the old-fashioned way of defining implicit rules for make.
We don't need them as we generate explicit rules for all sources we build.
[ChangeLog][qmake] Makefile output no longer contains implicit
suffix rules, as all sources are built using explicit rules.
Reviewed-by: Joerg Bornemann
[edit: removed e-mail address SGaist]