sotn-decomp
sotn-decomp copied to clipboard
Makefile revamp
Main highlights:
- Made many, if not all, of the hardcoding targets to be programmatic. The end result of this is that the only thing needed to add a new overlay is simply adding it to the target list at the top of the file. PSP merged functions are pulled directly from the splat configs.
- Cleaned up output and added DEBUG and QUIET "options". Default will hide Make echoing the command and replaces it with (hopefully) equivalent messages. Setting DEBUG env variable to any value will make output essentially the same as what it is currently while setting QUIET will only output minimal messaging. All any output from tools (except sotn-lint) and any error messages are still shown.
- Parallelized many targets so that they get more benefit from -j, every target works with -j
- Reorganized the content so that it followed a logical flow and hopefully made them more intuitive
- Consolidated targets which did the same thing, except for minor differences
- Renamed a few targets so that all targets consistently used - as word breaks, with some using _ as a word break for internal extensions. I.E. extract_pspeu for the internal pspeu extract target
Miscellaneous highlights:
- Began cleaning up and standardizing saturn makefile, but still very much a WIP
- Moved all dependency installation targets to Makefile, except CC1_SATURN (WIP), so that dependencies for all platforms can be updated at once if desired
- Removed *.deb files from debian requirements
- Renamed function-finder python files to follow VERSION naming
- Fixed erroneous labels in README.md
There are a few things that were done with the intent of having pspeu and us share targets, but when I got to the point of doing it I found that it didn't really give any benefit. Instead of undoing that work, I just left it in there since it doesn't hurt anything and it doesn't seem to make it significantly less readable.