fix static and shared makefile (#258)
This commit is contained in:
parent
0328a36893
commit
f996426916
|
@ -75,7 +75,7 @@ void ProjectCompiler::createStaticMakeFile()
|
||||||
QString executable = extractRelativePath(mProject->makeFileName(), mProject->executable());
|
QString executable = extractRelativePath(mProject->makeFileName(), mProject->executable());
|
||||||
QString exeTarget = escapeFilenameForMakefileTarget(executable);
|
QString exeTarget = escapeFilenameForMakefileTarget(executable);
|
||||||
QString exeCommand = escapeArgumentForMakefileRecipe(executable, false);
|
QString exeCommand = escapeArgumentForMakefileRecipe(executable, false);
|
||||||
writeln(file, exeTarget + ": $(LINKOBJ)");
|
writeln(file, exeTarget + ": $(OBJ)");
|
||||||
writeln(file, "\tar r " + exeCommand + " $(LINKOBJ)");
|
writeln(file, "\tar r " + exeCommand + " $(LINKOBJ)");
|
||||||
writeln(file, "\tranlib " + exeCommand);
|
writeln(file, "\tranlib " + exeCommand);
|
||||||
writeMakeObjFilesRules(file);
|
writeMakeObjFilesRules(file);
|
||||||
|
@ -88,7 +88,7 @@ void ProjectCompiler::createDynamicMakeFile()
|
||||||
QString executable = extractRelativePath(mProject->makeFileName(), mProject->executable());
|
QString executable = extractRelativePath(mProject->makeFileName(), mProject->executable());
|
||||||
QString exeTarget = escapeFilenameForMakefileTarget(executable);
|
QString exeTarget = escapeFilenameForMakefileTarget(executable);
|
||||||
QString exeCommand = escapeArgumentForMakefileRecipe(executable, false);
|
QString exeCommand = escapeArgumentForMakefileRecipe(executable, false);
|
||||||
writeln(file, exeTarget + ": $(LINKOBJ)");
|
writeln(file, exeTarget + ": $(OBJ)");
|
||||||
if (mProject->options().isCpp) {
|
if (mProject->options().isCpp) {
|
||||||
writeln(file, "\t$(CXX) -mdll $(LINKOBJ) -o " + exeCommand + " $(LIBS) -Wl,--output-def,$(DEF),--out-implib,$(STATIC)");
|
writeln(file, "\t$(CXX) -mdll $(LINKOBJ) -o " + exeCommand + " $(LIBS) -Wl,--output-def,$(DEF),--out-implib,$(STATIC)");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue