Yet it seems we both agree that 2 complex classes (let's say QString and QObject) are often declared in different files and that a file can contain more than one class declaration, in particular if they are helper classes.
Agreed. My final solution looks like this: build_lib { # Build a lib that can be used by the final app # or loaded into Python as a module. TEMPLATE = lib MAKEFILE = lib.make ... } build_main { # Build a free standing app. TEMPLATE = app MAKEFILE = main.make ... } In my Makefile (in general) ... debug_lib : ${QT_DEBUG}/bin/qmake "CONFIG+=build_lib" x.pro make -f lib.make debug_main : debug_lib ${QT_DEBUG}/bin/qmake "CONFIG+=build_main" x.pro make -f main.make debug : debug_lib debug_main _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest