Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mkdepend(1) — sysv — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mkmf(1-BSD)



MKDEPEND(1-SysV)    RISC/os Reference Manual     MKDEPEND(1-SysV)



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 setable
     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 1/15/91                   Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026