ide: Makefiles (exposed compiler and linker variables)

git-svn-id: svn://ultimatepp.org/upp/trunk@2064 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
dolik 2010-02-12 12:08:39 +00:00
parent 66c7a65f00
commit fdc9ecbfc6

View file

@ -72,7 +72,8 @@ void CppBuilder::AddMakeFile(MakeFile& makefile, String package,
makefile.output << (main ? String("$(OutDir)") : makefile.outdir) << makefile.outfile;
if(main) {
makefile.config << "CC = c++\n";
makefile.config << "CC = c++\n"
"LINKER = $(CC)\n";
String flags;
if(HasFlag("DEBUG"))
flags << " -D_DEBUG " << debug_options;
@ -96,7 +97,7 @@ void CppBuilder::AddMakeFile(MakeFile& makefile, String package,
makefile.install << "\t-mkdir -p $(OutDir)\n";
Vector<String> lib;
String lnk;
lnk << "c++";
lnk << "$(LINKER)";
if(!HasFlag("SHARED"))
lnk << " -static";
if(HasFlag("WIN32")) {