version 1.3, 1998/09/26 19:55:08 |
version 1.4, 1999/06/05 01:21:34 |
|
|
.\" |
.\" |
.Dd June 6, 1993 |
.Dd June 6, 1993 |
.Dt MKDEP 1 |
.Dt MKDEP 1 |
.Os BSD 4.2 |
.Os |
.Sh NAME |
.Sh NAME |
.Nm mkdep |
.Nm mkdep |
.Nd construct Makefile dependency list |
.Nd construct Makefile dependency list |
|
|
.Op Ar flags |
.Op Ar flags |
.Ar file Op Ar ... |
.Ar file Op Ar ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm mkdep |
.Nm |
takes a set of flags for the C compiler and a list |
takes a set of flags for the C compiler and a list |
of C source files as arguments and constructs a set of include |
of C source files as arguments and constructs a set of include |
file dependencies which are written into the file ``.depend''. |
file dependencies which are written into the file |
|
.Pa .depend . |
An example of its use in a Makefile might be: |
An example of its use in a Makefile might be: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
CFLAGS= -O -I../include |
CFLAGS= -O -I../include |
|
|
.Nm mkdep Ns 's |
.Nm mkdep Ns 's |
may be run from a single Makefile. |
may be run from a single Makefile. |
.It Fl f Ar file |
.It Fl f Ar file |
Write the include file dependencies to |
Write the include file dependencies to |
.Ar file , |
.Ar file , |
instead of the default ``.depend''. |
instead of the default |
|
.Pa .depend . |
.It Fl p |
.It Fl p |
Cause |
Cause |
.Nm mkdep |
.Nm |
to produce dependencies of the form: |
to produce dependencies of the form: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
program: program.c |
program: program.c |
|
|
.El |
.El |
.Sh HISTORY |
.Sh HISTORY |
The |
The |
.Nm mkdep |
.Nm |
command appeared in |
command appeared in |
.Bx 4.3 Tahoe . |
.Bx 4.3 Tahoe . |