|
|
1.1 ! root 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.6 (Berkeley) 7/9/88 ! 17: .\" ! 18: .TH MKDEP 1 "July 9, 1988" ! 19: .UC 5 ! 20: .SH NAME ! 21: mkdep \- construct Makefile dependency list ! 22: .SH SYNOPSIS ! 23: .B mkdep ! 24: [ ! 25: .B \-f makefile ! 26: ] [ ! 27: .B \-p ! 28: ] [ flags ] file ... ! 29: .SH DESCRIPTION ! 30: \fIMkdep\fP takes a set of flags for the C compiler and a list of C ! 31: source files as arguments and constructs a set of include file dependencies. ! 32: It attaches this dependency list to the end of the file ``Makefile''. ! 33: An example of its use in a makefile might be: ! 34: .nf ! 35: .RS ! 36: ! 37: CFLAGS= -O -I../include -I. ! 38: SRCS= file1.c file2.c ! 39: ! 40: depend: ! 41: mkdep ${CFLAGS} ${SRCS} ! 42: .RE ! 43: .PP ! 44: where the macro SRCS is the list of C source files and the macro ! 45: CFLAGS is the list of flags for the C compiler. The \fB-f\fP option ! 46: provides \fImkdep\fP with a name other than ``Makefile'' to be edited. ! 47: If the \fB-p\fP option is provided, \fImkdep\fP produces dependencies ! 48: of the form ``program: program.c'' so that subsequent makes will ! 49: produce \fIprogram\fP directly from its C module rather than using an ! 50: intermediate \fI.o\fP module. This is useful in directories that ! 51: contain many programs, each of whose source is contained in a single ! 52: C module. ! 53: .SH "SEE ALSO" ! 54: cc(1), make(1)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.