1MKDEP(1)                    General Commands Manual                   MKDEP(1)
2
3
4

NAME

6       mkdep - construct Makefile dependency list
7

SYNOPSIS

9       mkdep [ -f makefile ] [ -p ] flags file ...
10

DESCRIPTION

12       Mkdep  takes  a  set of flags for the C compiler and a list of C source
13       files as arguments and constructs a set of include  file  dependencies.
14       It  attaches  this dependency list to the end of the file ``Makefile''.
15       An example of its use in a makefile might be:
16
17              CFLAGS= -O -I../include -I.
18              SRCS= file1.c file2.c
19
20              depend:
21                   mkdep ${CFLAGS} ${SRCS}
22
23       where the macro SRCS is the list of C source files and the macro
24       CFLAGS is the list of flags for the C compiler.  The -f option
25       provides mkdep with a name other than ``Makefile'' to be edited.
26       If the -p option is provided, mkdep produces dependencies
27       of the form ``program: program.c'' so that subsequent makes will
28       produce program directly from its C module rather than using an
29       intermediate .o module.  This is useful in directories that
30       contain many programs, each of whose source is contained in a single
31       C module.
32

SEE ALSO

34       cc(1), make(1)
35
36
37
384.2 Berkeley Distribution        June 4, 1987                         MKDEP(1)
Impressum