amu variables
Julie Stamp (8365) 474 posts |
Hello, is there an easy way to get amu to print out the value of a Makefile variable (e.g. OBJS)? There aren’t any targets to edit to put an echo in since they all come from includes. |
Paolo Fabio Zaino (28) 1882 posts |
The only way I know is to use -x6 parameter for AMU This will not only prints the macro when they are set, but also in the correct order of when they are set during the entire procedure and doesn’t require targets. The only issue is, it prints out all the macros assignment, so usually best to execute it in the desktop and then process the output file with an editor like StrongED to search for what you need. Just my 0.5c |
Rick Murray (539) 13840 posts |
To further expand that, the documentation for Amu says:
Sometimes it can be useful to try to track down where something is defined, but as is typical with anything to do with C 1, why specify one thing when you can specify thousands? 1 Thinking specifically here of the compiler’s tendency to not give up on hitting an actual error, but instead to plough on getting more and more confused along the way. |