MKDEPEND(1-SVR4) RISC/os Reference Manual MKDEPEND(1-SVR4)
NAME
mkdepend - compute header file dependencies
SYNOPSIS
mkdepend [ -c compilehow ] [-e sedprog] [-f force] [-i]
makefile file ...
DESCRIPTION
Mkdepend determines make dependencies from source containing
C #include directives. Given a shell command compilehow
which consists of cc(1) followed by options, mkdepend
processes its file arguments and edits the generated depen-
dency information into makefile.
The -e flag passes an immediate program to sed(1), which is
applied to the raw dependency information of the following
form:
target: dependent
Thus one may substitute pathname prefixes with settable
parameters.
The -f flag causes mkdepend to add a dependent named force
to each target file's dependency list. Using -f '$(FRC)'
and setting FRC=FRC in a make's environment, one may rebuild
certain objects without first removing them.
Normally, old dependencies are deleted from the makefile.
The -i option causes mkdepend to preserve old dependencies.
When invoked from a makefile, the following rule enables
incremental updates to the dependency database:
incdepend: $(SRCS)
mkdepend -c "$(CC) $(CFLAGS)" -i Makefile $?
touch incdepend
SEE ALSO
mkmf(1-BSD) a more sophisticated Makefile creation tool.
Printed 11/19/92 Page 1