equal
deleted
inserted
replaced
156 self.compiler = self.getCompiler() |
156 self.compiler = self.getCompiler() |
157 self.linker = self.getLinker() |
157 self.linker = self.getLinker() |
158 |
158 |
159 Builder_CFLAGS = ' '.join(self.getBuilderCFLAGS()) |
159 Builder_CFLAGS = ' '.join(self.getBuilderCFLAGS()) |
160 |
160 |
161 ######### GENERATE OBJECT FILES ######################################## |
161 # ----------------- GENERATE OBJECT FILES ------------------------ |
162 obns = [] |
162 obns = [] |
163 objs = [] |
163 objs = [] |
164 relink = self.GetBinaryCode() is None |
164 relink = self.GetBinaryCode() is None |
165 for Location, CFilesAndCFLAGS, DoCalls in self.CTRInstance.LocationCFilesAndCFLAGS: |
165 for Location, CFilesAndCFLAGS, DoCalls in self.CTRInstance.LocationCFilesAndCFLAGS: |
166 if CFilesAndCFLAGS: |
166 if CFilesAndCFLAGS: |
198 objs.append(objectfilename) |
198 objs.append(objectfilename) |
199 elif CFile.endswith(".o"): |
199 elif CFile.endswith(".o"): |
200 obns.append(os.path.basename(CFile)) |
200 obns.append(os.path.basename(CFile)) |
201 objs.append(CFile) |
201 objs.append(CFile) |
202 |
202 |
203 ######### GENERATE OUTPUT FILE ######################################## |
203 # ---------------- GENERATE OUTPUT FILE -------------------------- |
204 # Link all the object files into one binary file |
204 # Link all the object files into one binary file |
205 self.CTRInstance.logger.write(_("Linking :\n")) |
205 self.CTRInstance.logger.write(_("Linking :\n")) |
206 if relink: |
206 if relink: |
207 objstring = [] |
207 objstring = [] |
208 |
208 |