|
|
@ -132,6 +132,8 @@ UnixMakefileGenerator::writeMakeParts(TQTextStream &t)
|
|
|
|
src_incremental=FALSE, moc_incremental=FALSE;
|
|
|
|
src_incremental=FALSE, moc_incremental=FALSE;
|
|
|
|
|
|
|
|
|
|
|
|
t << "####### Compiler, tools and options" << endl << endl;
|
|
|
|
t << "####### Compiler, tools and options" << endl << endl;
|
|
|
|
|
|
|
|
if (varGlue("INCLUDEPATH", " -I", " -I", "").find("$(LOCALBASE)") != -1)
|
|
|
|
|
|
|
|
t << "LOCALBASE?= /usr/local" << endl;
|
|
|
|
t << "CC = ";
|
|
|
|
t << "CC = ";
|
|
|
|
if (project->isActiveConfig("thread") &&
|
|
|
|
if (project->isActiveConfig("thread") &&
|
|
|
|
! project->variables()["QMAKE_CC_THREAD"].isEmpty())
|
|
|
|
! project->variables()["QMAKE_CC_THREAD"].isEmpty())
|
|
|
@ -298,10 +300,15 @@ UnixMakefileGenerator::writeMakeParts(TQTextStream &t)
|
|
|
|
} else if (!project->isActiveConfig("staticlib") && project->variables()["QMAKE_APP_FLAG"].isEmpty()) {
|
|
|
|
} else if (!project->isActiveConfig("staticlib") && project->variables()["QMAKE_APP_FLAG"].isEmpty()) {
|
|
|
|
t << "TARGETA = " << var("TARGETA") << endl;
|
|
|
|
t << "TARGETA = " << var("TARGETA") << endl;
|
|
|
|
if (project->isEmpty("QMAKE_HPUX_SHLIB")) {
|
|
|
|
if (project->isEmpty("QMAKE_HPUX_SHLIB")) {
|
|
|
|
t << "TARGETD = " << var("TARGET_x.y.z") << endl;
|
|
|
|
if (!project->isEmpty("QMAKE_OPENBSD_SHLIBS")) {
|
|
|
|
t << "TARGET0 = " << var("TARGET_") << endl;
|
|
|
|
t << "LIB"+var("OBSD_TARGET_NAME")+"_VERSION = " << var("OBSD_TARGET_VERSION") << endl;
|
|
|
|
t << "TARGET1 = " << var("TARGET_x") << endl;
|
|
|
|
t << "TARGETD = " << var("TARGET_x.y") << endl;
|
|
|
|
t << "TARGET2 = " << var("TARGET_x.y") << endl;
|
|
|
|
} else {
|
|
|
|
|
|
|
|
t << "TARGETD = " << var("TARGET_x.y.z") << endl;
|
|
|
|
|
|
|
|
t << "TARGET0 = " << var("TARGET_") << endl;
|
|
|
|
|
|
|
|
t << "TARGET1 = " << var("TARGET_x") << endl;
|
|
|
|
|
|
|
|
t << "TARGET2 = " << var("TARGET_x.y") << endl;
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
t << "TARGETD = " << var("TARGET_x") << endl;
|
|
|
|
t << "TARGETD = " << var("TARGET_x") << endl;
|
|
|
|
t << "TARGET0 = " << var("TARGET_") << endl;
|
|
|
|
t << "TARGET0 = " << var("TARGET_") << endl;
|
|
|
@ -378,6 +385,7 @@ UnixMakefileGenerator::writeMakeParts(TQTextStream &t)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
t << "####### Build rules" << endl << endl;
|
|
|
|
t << "####### Build rules" << endl << endl;
|
|
|
|
|
|
|
|
t << "$(OBJECTS): $(UICDECLS)" << endl << endl;
|
|
|
|
if(!project->variables()["SUBLIBS"].isEmpty()) {
|
|
|
|
if(!project->variables()["SUBLIBS"].isEmpty()) {
|
|
|
|
TQString libdir = "tmp/";
|
|
|
|
TQString libdir = "tmp/";
|
|
|
|
if(!project->isEmpty("SUBLIBS_DIR"))
|
|
|
|
if(!project->isEmpty("SUBLIBS_DIR"))
|
|
|
@ -1296,10 +1304,20 @@ void UnixMakefileGenerator::init2()
|
|
|
|
project->variables()["TARGET_x"].append("lib" + project->first("TARGET") + "." +
|
|
|
|
project->variables()["TARGET_x"].append("lib" + project->first("TARGET") + "." +
|
|
|
|
project->first("QMAKE_EXTENSION_SHLIB") +
|
|
|
|
project->first("QMAKE_EXTENSION_SHLIB") +
|
|
|
|
"." + project->first("VER_MAJ"));
|
|
|
|
"." + project->first("VER_MAJ"));
|
|
|
|
project->variables()["TARGET_x.y"].append("lib" + project->first("TARGET") + "." +
|
|
|
|
if ( !project->variables()["QMAKE_OPENBSD_SHLIBS"].isEmpty() ) {
|
|
|
|
project->first("QMAKE_EXTENSION_SHLIB")
|
|
|
|
TQString s;
|
|
|
|
+ "." + project->first("VER_MAJ") +
|
|
|
|
s.setNum(project->first("VER_MIN").toInt()*10+ project->first("VER_PAT").toInt());
|
|
|
|
"." + project->first("VER_MIN"));
|
|
|
|
project->variables()["OBSD_TARGET_VERSION"].append(project->first("VER_MAJ") + "." + s);
|
|
|
|
|
|
|
|
project->variables()["OBSD_TARGET_NAME"].append(project->first("TARGET"));
|
|
|
|
|
|
|
|
project->variables()["TARGET_x.y"].append("lib" + project->first("TARGET") + "." +
|
|
|
|
|
|
|
|
project->first("QMAKE_EXTENSION_SHLIB")
|
|
|
|
|
|
|
|
+ ".$(LIB"+ project->first("TARGET") + "_VERSION)");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
project->variables()["TARGET_x.y"].append("lib" + project->first("TARGET") + "." +
|
|
|
|
|
|
|
|
project->first("QMAKE_EXTENSION_SHLIB")
|
|
|
|
|
|
|
|
+ "." + project->first("VER_MAJ") +
|
|
|
|
|
|
|
|
"." + project->first("VER_MIN"));
|
|
|
|
|
|
|
|
}
|
|
|
|
project->variables()["TARGET_x.y.z"].append("lib" + project->first("TARGET") +
|
|
|
|
project->variables()["TARGET_x.y.z"].append("lib" + project->first("TARGET") +
|
|
|
|
"." +
|
|
|
|
"." +
|
|
|
|
project->variables()[
|
|
|
|
project->variables()[
|
|
|
@ -1308,7 +1326,10 @@ void UnixMakefileGenerator::init2()
|
|
|
|
project->first("VER_MIN") + "." +
|
|
|
|
project->first("VER_MIN") + "." +
|
|
|
|
project->first("VER_PAT"));
|
|
|
|
project->first("VER_PAT"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
project->variables()["TARGET"] = project->variables()["TARGET_x.y.z"];
|
|
|
|
if ( !project->variables()["QMAKE_OPENBSD_SHLIBS"].isEmpty() )
|
|
|
|
|
|
|
|
project->variables()["TARGET"] = project->variables()["TARGET_x.y"];
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
project->variables()["TARGET"] = project->variables()["TARGET_x.y.z"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(project->isEmpty("QMAKE_LN_SHLIB"))
|
|
|
|
if(project->isEmpty("QMAKE_LN_SHLIB"))
|
|
|
|
project->variables()["QMAKE_LN_SHLIB"].append("ln -s");
|
|
|
|
project->variables()["QMAKE_LN_SHLIB"].append("ln -s");
|
|
|
|