equal
deleted
inserted
replaced
268 object_type = "makefile", task = "parse", |
268 object_type = "makefile", task = "parse", |
269 key = "$(THIS_FILENAME)", |
269 key = "$(THIS_FILENAME)", |
270 time="$(shell date +%s.%N)").rstrip("\n") + ")" |
270 time="$(shell date +%s.%N)").rstrip("\n") + ")" |
271 |
271 |
272 |
272 |
|
273 # Debugging on or off for make: |
|
274 # We need it at the very top level so that it can be used |
|
275 # to determine what extra info to put in recipe tags |
|
276 try: |
|
277 flmdebug_setting = os.environ["FLMDEBUG"] |
|
278 except KeyError: |
|
279 flmdebug_setting = "" |
|
280 |
273 self.makefile_prologue = """ |
281 self.makefile_prologue = """ |
274 |
282 |
275 # generated by %s %s |
283 # generated by %s %s |
276 |
284 |
277 HOSTPLATFORM:=%s |
285 HOSTPLATFORM:=%s |
281 SHELL:=%s |
289 SHELL:=%s |
282 THIS_FILENAME:=$(firstword $(MAKEFILE_LIST)) |
290 THIS_FILENAME:=$(firstword $(MAKEFILE_LIST)) |
283 DELETE_ON_FAILED_COMPILE:=%s |
291 DELETE_ON_FAILED_COMPILE:=%s |
284 |
292 |
285 %s |
293 %s |
|
294 FLMDEBUG:=%s |
286 |
295 |
287 include %s |
296 include %s |
288 |
297 |
289 """ % ( raptor.name, raptor_version.fullversion(), |
298 """ % ( raptor.name, raptor_version.fullversion(), |
290 " ".join(raptor.hostplatform), |
299 " ".join(raptor.hostplatform), |
292 self.raptor.filesystem, |
301 self.raptor.filesystem, |
293 str(self.raptor.systemFLM), |
302 str(self.raptor.systemFLM), |
294 self.shellpath, |
303 self.shellpath, |
295 self.delete_on_failed_compile, |
304 self.delete_on_failed_compile, |
296 talon_settings, |
305 talon_settings, |
|
306 flmdebug_setting, |
297 self.raptor.systemFLM.Append('globals.mk') ) |
307 self.raptor.systemFLM.Append('globals.mk') ) |
298 |
308 |
299 # Unless dependency processing has been eschewed via the CLI, use a .DEFAULT target to |
309 # Unless dependency processing has been eschewed via the CLI, use a .DEFAULT target to |
300 # trap missing dependencies (ignoring user config files that we know are usually absent) |
310 # trap missing dependencies (ignoring user config files that we know are usually absent) |
301 if not (self.raptor.noDependGenerate or self.raptor.noDependInclude): |
311 if not (self.raptor.noDependGenerate or self.raptor.noDependInclude): |