void MingwMakefileGenerator::writeMingwParts(QTextStream &t) { if (!project->isEmpty("QMAKE_SYMBIAN_SHLIB")) { t << "vpath %.dso " << project->values("QMAKE_LIBDIR").join(";") << endl; t << "vpath %.lib " << project->values("QMAKE_LIBDIR").join(";") << endl; t << "\n\n"; } writeStandardParts(t); if (!preCompHeaderOut.isEmpty()) { QString header = project->first("PRECOMPILED_HEADER"); QString cHeader = preCompHeaderOut + Option::dir_sep + "c"; t << escapeDependencyPath(cHeader) << ": " << escapeDependencyPath(header) << " " << escapeDependencyPaths(findDependencies(header)).join(" \\\n\t\t") << "\n\t" << mkdir_p_asstring(preCompHeaderOut) << "\n\t" << "$(CC) -x c-header -c $(CFLAGS) $(INCPATH) -o " << cHeader << " " << header << endl << endl; QString cppHeader = preCompHeaderOut + Option::dir_sep + "c++"; t << escapeDependencyPath(cppHeader) << ": " << escapeDependencyPath(header) << " " << escapeDependencyPaths(findDependencies(header)).join(" \\\n\t\t") << "\n\t" << mkdir_p_asstring(preCompHeaderOut) << "\n\t" << "$(CXX) -x c++-header -c $(CXXFLAGS) $(INCPATH) -o " << cppHeader << " " << header << endl << endl; } }
void BorlandMakefileGenerator::writeBorlandParts(QTextStream &t) { t << "!if !$d(BCB)" << endl; t << "BCB = $(MAKEDIR)\\.." << endl; t << "!endif" << endl << endl; writeStandardParts(t); }
void NmakeMakefileGenerator::writeNmakeParts(QTextStream &t) { writeStandardParts(t); // precompiled header if(usePCH) { QString precompRule = QString("-c -Yc -Fp%1 -Fo%2").arg(precompPch).arg(precompObj); t << precompObj << ": " << precompH << " " << findDependencies(precompH).join(" \\\n\t\t") << "\n\t" << "$(CXX) " + precompRule +" $(CXXFLAGS) $(INCPATH) -TP " << precompH << endl << endl; } }
void MingwMakefileGenerator::writeMingwParts(QTextStream &t) { writeStandardParts(t); if (!preCompHeaderOut.isEmpty()) { QString header = project->first("PRECOMPILED_HEADER"); QString cHeader = preCompHeaderOut + Option::dir_sep + "c"; t << cHeader << ": " << header << " " << findDependencies(header).join(" \\\n\t\t") << "\n\t" << mkdir_p_asstring(preCompHeaderOut) << "\n\t" << "$(CC) -x c-header -c $(CFLAGS) $(INCPATH) -o " << cHeader << " " << header << endl << endl; QString cppHeader = preCompHeaderOut + Option::dir_sep + "c++"; t << cppHeader << ": " << header << " " << findDependencies(header).join(" \\\n\t\t") << "\n\t" << mkdir_p_asstring(preCompHeaderOut) << "\n\t" << "$(CXX) -x c++-header -c $(CXXFLAGS) $(INCPATH) -o " << cppHeader << " " << header << endl << endl; } }