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

  man pages->IRIX man pages -> mkdepend (1)              
Title
Content
Arch
Section
 

Contents


MKDEPEND(1)							   MKDEPEND(1)


NAME    [Toc]    [Back]

     mkdepend -	compute	header file dependencies

SYNOPSIS    [Toc]    [Back]

     mkdepend [-c compiler] [-e	sedprog] [-f force] [-i] [-p count] [-r] [-s
     sentinel] depfile [file ...]

DESCRIPTION    [Toc]    [Back]

     Mkdepend infers make(1) dependencies from source containing C #include
     directives.  It invokes cc(1) with	the -M option to compile dependencies
     given a list of source files, and edits the generated dependency
     information into depfile, which may be a makefile or a make include file.

     The -c option substitutes compiler, which may be an elaborate, quoted
     invocation	of a compiler, for the default cc -M.  This option is useful
     in	an environment where the -D and	-I options of cc are used to govern
     header file inclusion.

     The -e option passes an editing program to	sed(1),	which is applied to
     raw dependency information	of the following form:

	  object: source


     Thus one may substitute pathname prefixes with envariable parameters, or
     rewrite the conventional .o object	suffix.

     The -f option causes mkdepend to add a dependent named force to each
     target file's dependency list.  Using -f '$(FORCE)' and setting
     FORCE=FORCE in a make's environment, one may rebuild certain objects
     without first removing them.  This	example	assumes	that no	file named
     FORCE exists in any of make's current working directories.

     Normally, existing	dependencies are deleted from the makefile.  The -i
     option causes mkdepend to preserve	old dependencies, replacing only those
     involving targets based on	the file arguments.  The following rule
     incrementally updates a dependency	file named Makedepend:

	  Makedepend: $(CFILES)
	       mkdepend	-c "$(CC) $(CFLAGS) -M"	-i $@ $?


     The -r option causes mkdepend to read raw dependencies from its file
     arguments,	or from	standard input if no file arguments are	given.	The -p
     option is like -r,	but also collapses dependencies	of targets in
     subdirectories where possible.  The count argument	specifies the number
     of	subdirectories.	 For example,

	  subdir1/object: source
	  subdir2/object: source
	  subdir3/object: source




									Page 1






MKDEPEND(1)							   MKDEPEND(1)



     would be rewritten	by mkdepend -p 3 as

	  object: source


     -p	is useful in conjunction with make's VPATH variable.

     The -c, -p, and -r	options	override one another.

     The -s option inserts its sentinel	argument in the	comment	lines which
     delimit dependencies in depfile.  This option is useful for maintaining
     multiple sets of dependencies in a	single file.

NOTES    [Toc]    [Back]

     This command will be removed from the next	major release.	Use cc
     -MDupdate instead.

SEE ALSO    [Toc]    [Back]

      
      
     cc(1), cpp(1), make(1), sed(1)


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
sat_write_filehdr IRIX write audit file header, write close time to audit file header
AFclosefile IRIX close an audio file, update file header if file was opened for write access.
ldohseek IRIX seek to the optional file header of a common object file
ldohseek Tru64 seek to the optional file header of a common object file
inet6_opt_init Tru64 Return the length of an IPv6 extension header with no options and initialize the header
ldfhread IRIX read the file header of a common object file
efi_fsinit HP-UX write an EFI file system header on a device file
ldfhread Tru64 read the file header of a common object file
lifinit HP-UX write LIF volume header on file
unistd IRIX file header for symbolic constants
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service