| | 17 | |
| | 18 | Originally from checkdepend.pl: |
| | 19 | {{{ |
| | 20 | This script will currently generate false positives. This happens because it |
| | 21 | assumes that there must be a fixed relationship between source and object |
| | 22 | files, e.g. C<buz/baz/foo.pir> will be built into C<buz/baz/foo.pbc>. |
| | 23 | |
| | 24 | This |
| | 25 | assumption holds in most cases but breaks down when a file with a dependency is |
| | 26 | not compiled into an object file of the same name. A possible solution to this |
| | 27 | is to use C-style compilation with separate build and "link" targets using |
| | 28 | pbc_merge. The other alternative involves making this script significantly |
| | 29 | smarter about figuring out which rules create a given object file. |
| | 30 | }}} |
| | 31 | |
| | 32 | - the plan here should be to have all pir that gets compiled initially be compiled to a pbc in the same directory (just like the standard .c->.o compilation process) - if we then need a separate rule to copy the built pbc to an "install" directory, that's fine; having the two stages should let |
| | 33 | us track the deps more automatically. |