diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-12-19 23:45:22 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-12-19 23:45:22 (GMT) |
commit | b67dc16be630724509b8d9d092df8ab7607f7acf (patch) | |
tree | 811aab687330b7393516b47fa108a793b8659b78 /Source/cmBorlandMakefileGenerator.cxx | |
parent | 384cf0c7f3bfb5d8fef107f7076cae290316b0e0 (diff) | |
download | CMake-b67dc16be630724509b8d9d092df8ab7607f7acf.zip CMake-b67dc16be630724509b8d9d092df8ab7607f7acf.tar.gz CMake-b67dc16be630724509b8d9d092df8ab7607f7acf.tar.bz2 |
ENH: add silent mode for makefile builds and fix borland and nmake after the depend stuff
Diffstat (limited to 'Source/cmBorlandMakefileGenerator.cxx')
-rw-r--r-- | Source/cmBorlandMakefileGenerator.cxx | 105 |
1 files changed, 1 insertions, 104 deletions
diff --git a/Source/cmBorlandMakefileGenerator.cxx b/Source/cmBorlandMakefileGenerator.cxx index 23bcd4a..382fbcf 100644 --- a/Source/cmBorlandMakefileGenerator.cxx +++ b/Source/cmBorlandMakefileGenerator.cxx @@ -100,7 +100,7 @@ void cmBorlandMakefileGenerator::OutputMakeVariables(std::ostream& fout) "CMAKE_SHLIB_SUFFIX = @CMAKE_SHLIB_SUFFIX@\n" "CMAKE_LINKER_FLAGS = @CMAKE_LINKER_FLAGS@ @LINKER_BUILD_FLAGS@\n" "CMAKE_CXX_FLAGS = -P @CMAKE_CXX_FLAGS@ @BUILD_FLAGS@\n" - "RM = del"; + "RM = del\n"; std::string buildType = "CMAKE_CXX_FLAGS_"; buildType += m_Makefile->GetDefinition("CMAKE_BUILD_TYPE"); buildType = cmSystemTools::UpperCase(buildType); @@ -165,100 +165,6 @@ void cmBorlandMakefileGenerator::OutputMakeVariables(std::ostream& fout) } -void cmBorlandMakefileGenerator::BuildInSubDirectory(std::ostream& fout, - const char* directory, - const char* target1, - const char* target2) -{ - if(target1) - { - std::string dir = directory; - cmSystemTools::ConvertToWindowsSlashes(dir); - fout << "\tif not exist " << cmSystemTools::EscapeSpaces(dir.c_str()) - << " " - << "$(MAKE) rebuild_cache\n" - << "\tcd .\\" << directory << "\n" - << "\t$(MAKE) -$(MAKEFLAGS) " << target1 << "\n"; - } - if(target2) - { - fout << "\t$(MAKE) -$(MAKEFLAGS) " << target2 << "\n"; - } - std::string currentDir = m_Makefile->GetCurrentOutputDirectory(); - cmSystemTools::ConvertToWindowsSlashes(currentDir); - fout << "\tcd " << cmSystemTools::EscapeSpaces(currentDir.c_str()) << "\n"; -} - - - - -// This needs to be overriden because nmake requires commands to be quoted -// if the are full paths to the executable???? - -void cmBorlandMakefileGenerator::OutputMakeRule(std::ostream& fout, - const char* comment, - const char* target, - const char* depends, - const char* command, - const char* command2, - const char* command3, - const char* command4) -{ - if(!target) - { - cmSystemTools::Error("no target for OutputMakeRule"); - return; - } - - std::string replace; - if(comment) - { - replace = comment; - m_Makefile->ExpandVariablesInString(replace); - fout << "#---------------------------------------------------------\n"; - fout << "# " << comment; - fout << "\n#\n"; - } - fout << "\n"; - replace = target; - m_Makefile->ExpandVariablesInString(replace); - replace = cmSystemTools::EscapeSpaces(replace.c_str()); - fout << replace.c_str() << ": "; - if(depends) - { - replace = depends; - m_Makefile->ExpandVariablesInString(replace); - fout << replace.c_str(); - } - fout << "\n"; - const char* startCommand = "\t"; - const char* endCommand = "\n"; - if(command) - { - replace = ShortPathCommand(command); - m_Makefile->ExpandVariablesInString(replace); - fout << startCommand << replace.c_str() << endCommand; - } - if(command2) - { - replace = ShortPathCommand(command2); - m_Makefile->ExpandVariablesInString(replace); - fout << startCommand << replace.c_str() << endCommand; - } - if(command3) - { - replace = ShortPathCommand(command3); - m_Makefile->ExpandVariablesInString(replace); - fout << startCommand << replace.c_str() << endCommand; - } - if(command4) - { - replace = ShortPathCommand(command4); - m_Makefile->ExpandVariablesInString(replace); - fout << startCommand << replace.c_str() << endCommand; - } - fout << "\n"; -} void cmBorlandMakefileGenerator:: @@ -500,13 +406,4 @@ bool cmBorlandMakefileGenerator::SamePath(const char* path1, const char* path2) cmSystemTools::LowerCase(ShortPath(path2)); } -void cmBorlandMakefileGenerator::OutputBuildLibraryInDir(std::ostream& fout, - const char* path, - const char* s, - const char* fullpath) -{ - cmNMakeMakefileGenerator::OutputBuildLibraryInDir(fout, path, s, fullpath); -} - - |