On 9/10/24 8:21 PM, Martin D Kealey wrote:
Problem 2: it appears that “make depends” and “make depend” have been broken since:commit 6078dd9a9708077bb32d7027b3699a4bcc3d0a93 Author: Chet Ramey <chet.ra...@case.edu> Date: 2018-04-20 11:38:52 -0400which replaced support/mkdep with a version that lacked the “-c compiler” option and the “--” end-of-options marker, both of which are required for the “depends” make target:$(Program) $(SUPPORT_SRC)mkdep* -c ${CC} -- *${CCFLAGS} ${CSOURCES}
If you want to use it, I'll fix it up.
PS: It seems like that Makefile line should use “sh” rather than “$(Program)”, otherwise it would be impossible to go “make depend” before the initial build.
The dependencies already in the Makefile are assumed to be correct, plus you're making everything the first time through anyway. But it doesn't really matter.
PPS: "mkdep" seems like a deficient exemplar of a robust shell script; lack of quoting; broken and missing error checking; error messages to stdout instead of stderr.
The BSDs still use it. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature