xref: /csrg-svn/usr.bin/mkdep/mkdep.1 (revision 31323)
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.1 (Berkeley) 06/02/87

MKDEP 1 ""
C 5
NAME
mkdep - construct Makefile dependency list
SYNOPSIS
mkdep flags file ...
DESCRIPTION
Mkdep 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 Makefile. An example of its use in a Makefile might be:

CFLAGS= -I../include -I.
SRCS= file1.c file2.c

depend:
 mkdep ${CFLAGS} ${SRCS}

where the macro SRCS is the list of C source files and the macro CFLAGS is the list of flags for the C compiler.

"SEE ALSO"
cc(1), make(1)