This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Generating a dependency list

Is there a way to generate a text dependency list from the command prompt? I have seen this feature in many other compilers, but can't find it in the Keil package. I am trying to use gnu make to manage the build process instead of the uVision IDE (for a variety of reasons that I won't go into here). I know that uVision checks the obj, but I would rather have a precompile option. If this isn't possible, does anyone have something to parse the obj files (or c for that matter) already written to save me the time?

Thanks,
Peter.

Parents
  • Since you are using GNU make, perhaps you also have access to other GNU tools such as cpp, sed and a shell. If so, take a look at this makefile:

    http://dhenry.home.sprynet.com/lint/picc/makefile

    I had uploaded it for the benefit of a PICC user, but the auto-dependency stuff is independent of the toolchain, so the same sections of the makefile would apply. Specifically, the C-to-dependency file rule (%.d : %.c) that auto-builds a .d dependency file for each source file, and the "include $(DEPS)" that then includes them all.

Reply
  • Since you are using GNU make, perhaps you also have access to other GNU tools such as cpp, sed and a shell. If so, take a look at this makefile:

    http://dhenry.home.sprynet.com/lint/picc/makefile

    I had uploaded it for the benefit of a PICC user, but the auto-dependency stuff is independent of the toolchain, so the same sections of the makefile would apply. Specifically, the C-to-dependency file rule (%.d : %.c) that auto-builds a .d dependency file for each source file, and the "include $(DEPS)" that then includes them all.

Children