home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / ISP / bind.4.8.3.lzh / BIND483 / MAN / mkdep.1 < prev    next >
Text File  |  1993-08-24  |  2KB  |  57 lines

  1. .\" Copyright (c) 1987 Regents of the University of California.
  2. .\" All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms are permitted
  5. .\" provided that the above copyright notice and this paragraph are
  6. .\" duplicated in all such forms and that any documentation,
  7. .\" advertising materials, and other materials related to such
  8. .\" distribution and use acknowledge that the software was developed
  9. .\" by the University of California, Berkeley.  The name of the
  10. .\" University may not be used to endorse or promote products derived
  11. .\" from this software without specific prior written permission.
  12. .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  13. .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  14. .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  15. .\"
  16. .\"    @(#)mkdep.1    5.8 (Berkeley) 10/24/88
  17. .\"
  18. .TH MKDEP 1 "October 24, 1988"
  19. .UC 5
  20. .SH NAME
  21. mkdep \- construct Makefile dependency list
  22. .SH SYNOPSIS
  23. .B mkdep
  24. [
  25. .B \-ap
  26. ] [
  27. .B \-f depend_file
  28. ] [ flags ] file ...
  29. .SH DESCRIPTION
  30. \fIMkdep\fP takes a set of flags for the C compiler and a list
  31. of C source files as arguments and constructs a set of include
  32. file dependencies which are written into the file \fIdepend_file\fP,
  33. or ``.depend'' by default.  An example of its use in a Makefile
  34. might be:
  35. .nf
  36. .RS
  37.  
  38. CFLAGS= -O -DDEBUG -I../include -I.
  39. SRCS= file1.c file2.c
  40.  
  41. depend:
  42.     mkdep ${CFLAGS} ${SRCS}
  43. .RE
  44. .PP
  45. where the macro SRCS is the list of C source files and the macro
  46. CFLAGS is the list of flags for the C compiler.
  47. .PP
  48. If the \fB-p\fP option is provided, \fImkdep\fP produces dependencies
  49. of the form ``program: program.c'' so that subsequent makes will
  50. produce \fIprogram\fP directly from its C module rather than using an
  51. intermediate \fI.o\fP module.  This is useful in directories that
  52. contain many programs, each of whose source is contained in a single
  53. C module.  The \fB-a\fP option causes appending to the output file,
  54. so that multiple \fImkdep\fP's may be run from a single Makefile.
  55. .SH "SEE ALSO"
  56. cc(1), cpp(1), make(1)
  57.