Ignore:
Timestamp:
May 19, 2009, 1:12:24 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

Tailored qmake/Makefile.os2-g++.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/os2/gnumake.cpp

    r7 r10  
    4040****************************************************************************/
    4141
    42 #include "mingw_make.h"
     42#include "gnumake.h"
    4343#include "option.h"
    4444#include "meta.h"
     
    5050QT_BEGIN_NAMESPACE
    5151
    52 MingwMakefileGenerator::MingwMakefileGenerator() : Win32MakefileGenerator(), init_flag(false)
     52GNUMakefileGenerator::GNUMakefileGenerator() : Win32MakefileGenerator(), init_flag(false)
    5353{
    5454    if (Option::shellPath.isEmpty())
     
    5858}
    5959
    60 bool MingwMakefileGenerator::isWindowsShell() const
     60bool GNUMakefileGenerator::isWindowsShell() const
    6161{
    6262#ifdef Q_OS_WIN
     
    6767}
    6868
    69 QString MingwMakefileGenerator::escapeDependencyPath(const QString &path) const
     69QString GNUMakefileGenerator::escapeDependencyPath(const QString &path) const
    7070{
    7171    QString ret = path;
     
    7676}
    7777
    78 QString MingwMakefileGenerator::getLibTarget()
     78QString GNUMakefileGenerator::getLibTarget()
    7979{
    8080    return QString("lib" + project->first("TARGET") + project->first("TARGET_VERSION_EXT") + ".a");
    8181}
    8282
    83 bool MingwMakefileGenerator::findLibraries()
     83bool GNUMakefileGenerator::findLibraries()
    8484{
    8585    QStringList &l = project->values("QMAKE_LIBS");
     
    124124}
    125125
    126 bool MingwMakefileGenerator::writeMakefile(QTextStream &t)
     126bool GNUMakefileGenerator::writeMakefile(QTextStream &t)
    127127{
    128128    writeHeader(t);
     
    150150            return true;
    151151        }
    152         writeMingwParts(t);
     152        writeGNUParts(t);
    153153        return MakefileGenerator::writeMakefile(t);
    154154    }
     
    198198}
    199199
    200 void MingwMakefileGenerator::writeMingwParts(QTextStream &t)
     200void GNUMakefileGenerator::writeGNUParts(QTextStream &t)
    201201{
    202202    writeStandardParts(t);
     
    219219}
    220220
    221 void MingwMakefileGenerator::init()
     221void GNUMakefileGenerator::init()
    222222{
    223223    if(init_flag)
     
    309309}
    310310
    311 void MingwMakefileGenerator::fixTargetExt()
     311void GNUMakefileGenerator::fixTargetExt()
    312312{
    313313    if (project->isActiveConfig("staticlib") && project->first("TEMPLATE") == "lib") {
     
    320320}
    321321
    322 void MingwMakefileGenerator::writeIncPart(QTextStream &t)
     322void GNUMakefileGenerator::writeIncPart(QTextStream &t)
    323323{
    324324    t << "INCPATH       = ";
     
    335335}
    336336
    337 void MingwMakefileGenerator::writeLibsPart(QTextStream &t)
     337void GNUMakefileGenerator::writeLibsPart(QTextStream &t)
    338338{
    339339    if(project->isActiveConfig("staticlib") && project->first("TEMPLATE") == "lib") {
     
    349349}
    350350
    351 void MingwMakefileGenerator::writeLibDirPart(QTextStream &t)
     351void GNUMakefileGenerator::writeLibDirPart(QTextStream &t)
    352352{
    353353    QStringList libDirs = project->values("QMAKE_LIBDIR");
     
    357357}
    358358
    359 void MingwMakefileGenerator::writeObjectsPart(QTextStream &t)
     359void GNUMakefileGenerator::writeObjectsPart(QTextStream &t)
    360360{
    361361    if (project->values("OBJECTS").count() < var("QMAKE_LINK_OBJECT_MAX").toInt()) {
     
    379379}
    380380
    381 void MingwMakefileGenerator::writeBuildRulesPart(QTextStream &t)
     381void GNUMakefileGenerator::writeBuildRulesPart(QTextStream &t)
    382382{
    383383    t << "first: all" << endl;
     
    400400}
    401401
    402 void MingwMakefileGenerator::writeRcFilePart(QTextStream &t)
     402void GNUMakefileGenerator::writeRcFilePart(QTextStream &t)
    403403{
    404404    const QString rc_file = fileFixify(project->first("RC_FILE"));
     
    410410    if (!rc_file.isEmpty()) {
    411411        t << escapeDependencyPath(var("RES_FILE")) << ": " << rc_file << "\n\t"
    412           << var("QMAKE_RC") << " -i " << rc_file << " -o " << var("RES_FILE") 
     412          << var("QMAKE_RC") << " -i " << rc_file << " -o " << var("RES_FILE")
    413413          << " --include-dir=" << incPathStr << endl << endl;
    414414    }
    415415}
    416416
    417 void MingwMakefileGenerator::processPrlVariable(const QString &var, const QStringList &l)
     417void GNUMakefileGenerator::processPrlVariable(const QString &var, const QStringList &l)
    418418{
    419419    if (var == "QMAKE_PRL_LIBS") {
     
    431431}
    432432
    433 QStringList &MingwMakefileGenerator::findDependencies(const QString &file)
     433QStringList &GNUMakefileGenerator::findDependencies(const QString &file)
    434434{
    435435    QStringList &aList = MakefileGenerator::findDependencies(file);
Note: See TracChangeset for help on using the changeset viewer.