Fixed unnecessary building

- Detect output name of “rlib”
- Detect output name of “dylib”
- Added more .PHONY targets
- Moved directory dependencies to generated files
- Added “/“ to indicate directory
- Using ordered dependencies when possible
- Split between building test-external and execution
- Split between building test-internal and execution
- Fixed unnecessary building of “rlib”
- Fixed unnecessary building of “dylib”
- Clean up “rlib”
- Clean up “dylib”