calitko.pro fix for qmake to create correct Makefile

Hello everybody,

This patch fixes calitko.pro and qmake should now create correct Makefiles. Not that the old ones did not work, they worked but the dependencies were incorrect. For example, if Imports.h is included from Gnutella/Handshaking/HandshakeSession.h, then HandshakeSession.o would not depend on Handshaking’s version of Imports.h, but rather on Bootstrapping’s version. That’s clearly wrong!

I figured out this effect when I was working on the BitTorrent packets. I did a change in the Generics base class, which was included via Includes.h in the BitTorrent base class. After running make I expected the whole inheritance tree to be recompiled, but no! I was mystified for a moment and then looked into Makefile and saw what was wrong.

The solution was to always specify the files Imports.cpp and Imports.h in the HEADERS variable in calitko.pro. I’ve done this now and the Makefile looks fine. Committed in rev 66.

Regards,

Peter

Would you like to post a relpy?


This post starts a thread.
No follow-ups yet.