I need to use different QT(CONFIG,etc) variables for Qt/Qtopia Core/QPE, sush as in Qt program I may not need QT+=network,but for Qtopia that is a must for qws's C/S architecture,how can I do it?

qmake/qtopiamake has no way to find which Qt version it is run for(Qt/Qtopia Core/QPE),but qmake/qtopiamake both use the directory.pro custom,how can I cope with this?

If there's no solution,I'd better to use Java ME but Qtopia,at least,Java ME is much more ubiqutous than Qtopia,though maybe a worse in performance.