*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: mkdep | Section: 1 | Source: Digital UNIX | File: mkdep.1.gz
mkdep(1) General Commands Manual mkdep(1) NAME mkdep - generate dependency list from a C program SYNOPSIS mkdep [-a] [-f depend_file] [-p] [cc_flags] file ... The mkdep command generates a dependency list file from a C source pro- gram. FLAGS Causes mkdep to append its output to the end of the dependency file in- stead 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 .depend. Inhibits mkdep from appending the suffix .o to the names of object files listed in the output. DESCRIPTION The mkdep command uses cc(1) to compile a list of dependency files re- quired to build the named C program file or files. The list is format- ted 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 flags by including them in the command line; mkdep passes all unrecognized flags through to the compiler. By default, mkdep writes to a file named .depend; use the -f flag 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/in- clude/standards.h hello: /usr/include/mach/machine/vm_types.h /usr/in- clude/sys/limits.h hello: /usr/include/standards.h /usr/include/ma- chine/machlimits.h hello: /usr/include/sys/syslimits.h /usr/in- clude/float.h hello: /usr/include/standards.h /usr/include/fp_class.h hello: /usr/include/machine/machtime.h RELATED INFORMATION Commands: cc(1), make(1) delim off mkdep(1)

Navigation Options