Annotation of 43BSDReno/pgrm/mkdep/mkdep.1, revision 1.1

1.1     ! root        1: .\" Copyright (c) 1987, 1990 The Regents of the University of California.
        !             2: .\" All rights reserved.
        !             3: .\"
        !             4: .\" Redistribution and use in source and binary forms are permitted provided
        !             5: .\" that: (1) source distributions retain this entire copyright notice and
        !             6: .\" comment, and (2) distributions including binaries display the following
        !             7: .\" acknowledgement:  ``This product includes software developed by the
        !             8: .\" University of California, Berkeley and its contributors'' in the
        !             9: .\" documentation or other materials provided with the distribution and in
        !            10: .\" all advertising materials mentioning features or use of this software.
        !            11: .\" Neither the name of the University nor the names of its contributors may
        !            12: .\" be used to endorse or promote products derived from this software without
        !            13: .\" specific prior written permission.
        !            14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
        !            15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
        !            16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
        !            17: .\"
        !            18: .\"     @(#)mkdep.1    5.10 (Berkeley) 7/24/90
        !            19: .\"
        !            20: .Dd July 24, 1990
        !            21: .Dt MKDEP 1
        !            22: .Os BSD 4.2
        !            23: .Sh NAME
        !            24: .Nm mkdep
        !            25: .Nd construct Makefile dependency list
        !            26: .Sh SYNOPSIS
        !            27: .Nm mkdep
        !            28: .Op Fl ap
        !            29: .Op Fl f Ar depend_file
        !            30: .Op Ar flags
        !            31: .Ar file ...
        !            32: .Sh DESCRIPTION
        !            33: .Nm Mkdep
        !            34: takes a set of flags for the C compiler and a list
        !            35: of C source files as arguments and constructs a set of include
        !            36: file dependencies which are written into the file
        !            37: .Ar depend_file  ,
        !            38: or
        !            39: .Pa \&.depend
        !            40: by default.  An example of its use in a Makefile
        !            41: might be:
        !            42: .Pp
        !            43: .Ds I
        !            44: CFLAGS= -O -DDEBUG -I../include -I.
        !            45: SRCS= file1.c file2.c
        !            46: 
        !            47: depend:
        !            48:        mkdep ${CFLAGS} ${SRCS}
        !            49: .De
        !            50: .Pp
        !            51: where the macro SRCS is the list of C source files and the macro
        !            52: CFLAGS is the list of flags for the C compiler.
        !            53: .Pp
        !            54: Options:
        !            55: .Tw Ds
        !            56: .Tp Fl p
        !            57: .Nm mkdep
        !            58: produces dependencies of the form
        !            59: .Dq Li program: program.c
        !            60: so that subsequent makes will produce
        !            61: .Ar program
        !            62: directly from its C module rather than using an intermediate
        !            63: .Pa \&.o
        !            64: module.  This is useful in directories that
        !            65: contain many programs, each of whose source is contained in a single
        !            66: C module.
        !            67: .Tp Fl a
        !            68: Append to the output file,
        !            69: so that multiple
        !            70: .Sf Nm mkdep \&'s
        !            71: may be run from a single Makefile.
        !            72: .Tp
        !            73: .Sh SEE ALSO
        !            74: .Xr cc 1 ,
        !            75: .Xr cpp 1 ,
        !            76: .Xr make 1
        !            77: .Sh HISTORY
        !            78: .Nm Mkdep
        !            79: appeared in the 4.3 Tahoe BSD release.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.