added -f and -p flags
[unix-history] / usr / src / usr.bin / mkdep / mkdep.1
.\" Copyright (c) 1987 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" @(#)mkdep.1 5.3 (Berkeley) %G%
.\"
.TH MKDEP 1 ""
.UC 5
.SH NAME
mkdep \- construct Makefile dependency list
.SH SYNOPSIS
.B mkdep
flags file ...
.SH DESCRIPTION
\fIMkdep\fP takes a set of flags for the C compiler and a list of C
sources as arguments and constructs a set of include file dependencies.
It attaches this dependency list to the end of the file \fIMakefile\fP.
An example of its use in a Makefile might be:
.nf
.RS
CFLAGS= -I../include -I.
SRCS= file1.c file2.c
depend:
mkdep ${CFLAGS} ${SRCS}
.RE
.PP
where the macro SRCS is the list of C source files and the macro
CFLAGS is the list of flags for the C compiler.
.SH "SEE ALSO"
cc(1), make(1)