*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> mkdep (1)              



NAME    [Toc]    [Back]

       mkdep - generate dependency list from a C program

SYNOPSIS    [Toc]    [Back]

       mkdep [-a] [-f depend_file] [-p] [cc_options] file...

       The  mkdep command generates a dependency list file from a
       C source program.

OPTIONS    [Toc]    [Back]

       Causes mkdep to append its output to the end of the dependency
  file instead of creating a new dependency file.  If
       the dependency file does  not  exist,  mkdep  creates  it.
       Specifies  a  name  for the dependency file; overrides the
       default file name Inhibits mkdep from appending the suffix
       to the names of object files listed in the output.

DESCRIPTION    [Toc]    [Back]

       The  mkdep  command uses cc(1) to compile a list of dependency
 files required to build the named C program file  or
       files.   The  list is formatted so that it is suitable for
       inclusion into a makefile for make(1).   Duplicate  dependency
  listings for a given program are included only once
       in the output.

       You can specify C compiler options by  including  them  in
       the  command  line;  mkdep passes all unrecognized options
       through to the compiler.

       By default, mkdep writes to a  file  named  -f  option  to
       specify an alternative output file name.

EXAMPLES    [Toc]    [Back]

       The  following  example  illustrates the use of mkdep with
       the -p option:

       % cat hello.c #include <stdio.h>

       main() {

               printf("%s0","Hello World!");  }  %  mkdep  -p  -f
       hello.depend  hello.c  %  cat hello.depend hello:  hello.c
       /usr/include/stdio.h    /usr/include/standards.h    hello:
       /usr/include/sys/types.h  /usr/include/standards.h  hello:
       /usr/include/mach/machine/vm_types.h /usr/include/sys/limits.h
           hello:            /usr/include/standards.h
       /usr/include/machine/machlimits.h                   hello:
       /usr/include/sys/syslimits.h  /usr/include/float.h  hello:
       /usr/include/standards.h  /usr/include/fp_class.h   hello:

SEE ALSO    [Toc]    [Back]

       Commands:  cc(1), make(1)

[ Back ]
 Similar pages
Name OS Title
mkdep OpenBSD construct Makefile dependency list
mkdep FreeBSD construct Makefile dependency list
cxref IRIX generate C program cross-reference
update-xpdfrc Linux program to generate xpdf's configuration file
modelinfo IRIX generate formatted list of supported printers
pdf2dsc Linux generate a PostScript page list of a PDF document
ncheck HP-UX generate a list of path names from inode numbers
ncheck_hfs HP-UX generate a list of path names from inode numbers for a HFS file system
ddopt IRIX MIPS Data-Dependency-based Optimizer
rcorder FreeBSD print a dependency ordering of interdependent files
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service