MKDEP(1) UNIX Reference Manual MKDEP(1)
m
\bmk
\bkd
\bde
\bep
\bp - construct Makefile dependency list
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
m
\bmk
\bkd
\bde
\bep
\bp [-
\b-a
\bap
\bp] [-
\b-f
\bf _
\bd_
\be_
\bp_
\be_
\bn_
\bd__
\bf_
\bi_
\bl_
\be] [_
\bf_
\bl_
\ba_
\bg_
\bs] _
\bf_
\bi_
\bl_
\be ...
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
M
\bMk
\bkd
\bde
\bep
\bp takes a set of flags for the C compiler and a list of C source
files as arguments and constructs a set of include file dependencies
which are written into the file _
\bd_
\be_
\bp_
\be_
\bn_
\bd__
\bf_
\bi_
\bl_
\be, or ._
\bd_
\be_
\bp_
\be_
\bn_
\bd by default. An
example of its use in a Makefile might be:
CFLAGS= -O -DDEBUG -I../include -I.
where the macro SRCS is the list of C source files and the macro CFLAGS
is the list of flags for the C compiler.
-
\b-p
\bp m
\bmk
\bkd
\bde
\bep
\bp produces dependencies of the form ``program: program.c'' so
that subsequent makes will produce _
\bp_
\br_
\bo_
\bg_
\br_
\ba_
\bm directly from its C
module rather than using an intermediate ._
\bo module. This is useful
in directories that contain many programs, each of whose source is
contained in a single C module.
-
\b-a
\ba Append to the output file, so that multiple m
\bmk
\bkd
\bde
\bep
\bp's may be run from
S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
H
\bHI
\bIS
\bST
\bTO
\bOR
\bRY
\bY
M
\bMk
\bkd
\bde
\bep
\bp appeared in the 4.3 Tahoe BSD release.