From: duplo Date: Fri, 20 Mar 2009 15:27:09 +0000 (+0000) Subject: Add the main file in the makefile X-Git-Tag: 2.1.0~284 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=212d4ed20629ca6378cbb997b60eaf0f2a75b6a3;p=bertos.git Add the main file in the makefile git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2398 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 7e5642d4..6d4e1071 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -69,7 +69,7 @@ def createBertosProject(projectInfo): makefile = mkGenerator(projectInfo, makefile) open(prjdir + "/" + os.path.basename(prjdir) + ".mk", "w").write(makefile) ## Destination main.c file - main = open("srctemplates/main.c","r").read() + main = open("srctemplates/main.c", "r").read() open(prjdir + "/main.c", "w").write(main) if "codelite" in projectInfo.info("OUTPUT"): workspace = codeliteWorkspaceGenerator(projectInfo) @@ -90,6 +90,7 @@ def mkGenerator(projectInfo, makefile): mkData["$prefix"] = projectInfo.info("TOOLCHAIN")["path"].split("gcc")[0] mkData["$suffix"] = projectInfo.info("TOOLCHAIN")["path"].split("gcc")[1] mkData["$cross"] = projectInfo.info("TOOLCHAIN")["path"].split("gcc")[0] + mkData["$main"] = projectInfo.info("PROJECT_PATH") + "/" + os.path.basename(projectInfo.info("PROJECT_PATH")) + "/main.c" for key in mkData: while makefile.find(key) != -1: makefile = makefile.replace(key, mkData[key])