Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mkdep(1) [osf1 man page]

mkdep(1)						      General Commands Manual							  mkdep(1)

NAME
mkdep - generate dependency list from a C program SYNOPSIS
mkdep [-a] [-f depend_file] [-p] [cc_options] file... The mkdep command generates a dependency list file from a C source program. OPTIONS
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
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 for- matted 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
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: /usr/include/machine/machtime.h SEE ALSO
Commands: cc(1), make(1) mkdep(1)

Check Out this Related Man Page

md(1)							    BSD General Commands Manual 						     md(1)

NAME
md -- process raw dependency files produced by cpp -MD SYNOPSIS
md [-d] [-f] [-m makefile] [-u makefile] [-o outputfile] [-v] [-x] [-D c|d|m|o|t|D] DESCRIPTION
The md command basically does two things: Process the raw dependency files produced by the cpp -MD option. There is one line in the file for every #include encountered, but there are repeats and patterns like .../dir1/../dir2 that appear which should reduce to .../dir2. md canonicalizes and flushes repeats from the depen- dency list. It also sorts the file names and "fills" them to a 78 character line. md also updates the makefile directly with the dependency information, so the .d file can be thrown away (see d option). This is done to save space. md assumes that dependency information in the makefile is sorted by .o file name and it procedes to merge in (add/or replace [as appropriate]) the new dependency lines that it has generated. For time efficiency, md assumes that any .d files it is given that were cre- ated before the creation date of the "makefile" were processed already. It ignores them unless the force flag [f] is given. FLAG SUMMARY
-D c|D|d|m|o|t Specify debugging option(s): c show file contents D show very low level debugging d show new dependency crunching m show generation of makefile o show files being opened t show time comparisons -d Delete the .d file after it is processed -f Force an update of the dependencies in the makefile, even if the makefile is more recent than the .n file. (This implies that md has been run already.) -m makefile Specify the makefile to be upgraded. The defaults are makefile and then Makefile. -o outputfile Specify an output file (other than a makefile) for the dependencies. -u makefile Like -m, but the file will be created if necessary. -v Set the verbose flag. -x Expunge old dependency information from the makefile. SEE ALSO
make(1) BUGS
Old, possibly not used by anyone. HISTORY
The md utility was written by Robert V. Baron at Carnegie-Mellon University. BSD
June 2, 2019 BSD
Man Page