From f996426916508186efaa3d8582541121be48f141 Mon Sep 17 00:00:00 2001 From: Cyano Hao Date: Sun, 10 Mar 2024 08:05:09 +0800 Subject: [PATCH] fix static and shared makefile (#258) --- RedPandaIDE/compiler/projectcompiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RedPandaIDE/compiler/projectcompiler.cpp b/RedPandaIDE/compiler/projectcompiler.cpp index fcc7769c..88c17bca 100644 --- a/RedPandaIDE/compiler/projectcompiler.cpp +++ b/RedPandaIDE/compiler/projectcompiler.cpp @@ -75,7 +75,7 @@ void ProjectCompiler::createStaticMakeFile() QString executable = extractRelativePath(mProject->makeFileName(), mProject->executable()); QString exeTarget = escapeFilenameForMakefileTarget(executable); QString exeCommand = escapeArgumentForMakefileRecipe(executable, false); - writeln(file, exeTarget + ": $(LINKOBJ)"); + writeln(file, exeTarget + ": $(OBJ)"); writeln(file, "\tar r " + exeCommand + " $(LINKOBJ)"); writeln(file, "\tranlib " + exeCommand); writeMakeObjFilesRules(file); @@ -88,7 +88,7 @@ void ProjectCompiler::createDynamicMakeFile() QString executable = extractRelativePath(mProject->makeFileName(), mProject->executable()); QString exeTarget = escapeFilenameForMakefileTarget(executable); QString exeCommand = escapeArgumentForMakefileRecipe(executable, false); - writeln(file, exeTarget + ": $(LINKOBJ)"); + writeln(file, exeTarget + ": $(OBJ)"); if (mProject->options().isCpp) { writeln(file, "\t$(CXX) -mdll $(LINKOBJ) -o " + exeCommand + " $(LIBS) -Wl,--output-def,$(DEF),--out-implib,$(STATIC)"); } else {