This is the way I like it:
- Only call fpc on hwengine.pas, let compiler rule the dependencies
- Make hwengine.pas depend on all other source files, so 'make' always calls fpc
#include <QLabel>
#include <QRect>
#include <QList>
#include <QMouseEvent>
class PixLabel : public QLabel
{
Q_OBJECT
public:
PixLabel();
QList<QRect> rects;
public slots:
void AddRect();
private:
void paintEvent(QPaintEvent * event);
void mousePressEvent(QMouseEvent * e);
};