mkdep program for SysV (Xenix/Unix)

Doug McCallum dougm at ico.isc.com
Sat Dec 15 03:02:31 AEST 1990


In article <1990Dec14.023842.21164 at robobar.co.uk> ronald at robobar.co.uk (Ronald S H Khoo) writes:
...
>One fast and accurate way to make dependencies for makefiles is to use gcc -M.
>(Doug's asking about Xenix/Sys V, so he'd need gcc.  BSD cc has -M doesn't it?)
...
The System V.3 cc has an option similar to the -M option.  
	cc -P -H $CFLAGS file.c 2>&1 | sed "s;^;file.c:;"
is almost what -M does.



More information about the Comp.unix.programmer mailing list