summaryrefslogtreecommitdiffstats
path: root/Source/cmNMakeMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-02-21 20:55:20 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-02-21 20:55:20 (GMT)
commit3c748ec5ad0898298b6f368b23a13b2eba0eb54e (patch)
tree8b96f3193a8da8e118700c92212f99634a661fd9 /Source/cmNMakeMakefileGenerator.cxx
parent49fa9d8b61fcdf4f62c9a9e5f59bd24ef7f3ca7f (diff)
downloadCMake-3c748ec5ad0898298b6f368b23a13b2eba0eb54e.zip
CMake-3c748ec5ad0898298b6f368b23a13b2eba0eb54e.tar.gz
CMake-3c748ec5ad0898298b6f368b23a13b2eba0eb54e.tar.bz2
ENH: add a virtual CreateMakeVariable to shorten makefile variables for borland make
Diffstat (limited to 'Source/cmNMakeMakefileGenerator.cxx')
-rw-r--r--Source/cmNMakeMakefileGenerator.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/cmNMakeMakefileGenerator.cxx b/Source/cmNMakeMakefileGenerator.cxx
index d9d1326..c90b883 100644
--- a/Source/cmNMakeMakefileGenerator.cxx
+++ b/Source/cmNMakeMakefileGenerator.cxx
@@ -420,8 +420,8 @@ void cmNMakeMakefileGenerator::OutputSharedLibraryRule(std::ostream& fout,
{
std::string target = m_LibraryOutputPath + name + m_SharedLibraryExtension;
std::string depend = "$(";
- depend += name;
- depend += "_SRC_OBJS) $(" + std::string(name) + "_DEPEND_LIBS)";
+ depend += this->CreateMakeVariable(name, "_SRC_OBJS");
+ depend += ") $(" + this->CreateMakeVariable(name, "_DEPEND_LIBS") + ")";
// Need to get the definition here because this value might have
// trailing space (since it is directly prepended to the filename)
@@ -442,7 +442,7 @@ void cmNMakeMakefileGenerator::OutputSharedLibraryRule(std::ostream& fout,
std::string dllpath = m_LibraryOutputPath + std::string(name) + m_SharedLibraryExtension;
command += cmSystemTools::EscapeSpaces(dllpath.c_str());
- command += " $(" + std::string(name) + "_SRC_OBJS) ";
+ command += " $(" + this->CreateMakeVariable(name, "_SRC_OBJS") + ") ";
std::strstream linklibs;
this->OutputLinkLibraries(linklibs, name, t);
@@ -492,7 +492,7 @@ void cmNMakeMakefileGenerator::OutputStaticLibraryRule(std::ostream& fout,
{
std::string target = m_LibraryOutputPath + std::string(name) + m_StaticLibraryExtension;
std::string depend = "$(";
- depend += std::string(name) + "_SRC_OBJS)";
+ depend += this->CreateMakeVariable(name, "_SRC_OBJS") + ") ";
// Need to get the definition here because this value might have
// trailing space (since it is directly prepended to the filename)
@@ -506,7 +506,7 @@ void cmNMakeMakefileGenerator::OutputStaticLibraryRule(std::ostream& fout,
command += cmSystemTools::EscapeSpaces(libpath.c_str());
command += " $(";
- command += std::string(name) + "_SRC_OBJS)";
+ command += this->CreateMakeVariable(name, "_SRC_OBJS") + ")";
command += "\n<<\n";
std::string comment = "rule to build static library: ";
@@ -532,10 +532,11 @@ void cmNMakeMakefileGenerator::OutputExecutableRule(std::ostream& fout,
std::string target = m_ExecutableOutputPath + name;
target += m_ExecutableExtension;
std::string depend = "$(";
- depend += std::string(name) + "_SRC_OBJS) $(" + std::string(name) + "_DEPEND_LIBS)";
+ depend += this->CreateMakeVariable(name, "_SRC_OBJS") + ") $(" +
+ this->CreateMakeVariable(name, "_DEPEND_LIBS") + ")";
std::string command =
"$(CMAKE_CXX_COMPILER) $(CMAKE_CXX_FLAGS) ";
- command += "$(" + std::string(name) + "_SRC_OBJS) ";
+ command += "$(" + this->CreateMakeVariable(name, "_SRC_OBJS") + ") ";
std::string path = m_ExecutableOutputPath + name + m_ExecutableExtension;
// Need to get the definition here because this value might have