Passing "-lm" into the prereq isn't the correct way add the flag. This correctly adds it to the command.
The "rot13" example incorrectly assumed that the "rot13.h" file would be generated by the time that "main.c" was being compiled, however there is no rule supporting this and it would fail. I've also added "rot13.h" to the clean rule.
Passing "-lm" into the prereq isn't the correct way add the flag. This correctly adds it to the command.
The "rot13" example incorrectly assumed that the "rot13.h" file would be generated by the time that "main.c" was being compiled, however there is no rule supporting this and it would fail. I've also added "rot13.h" to the clean rule.