xref: /xnu-10002.1.13/SETUP/config/externs.c (revision 1031c584a5e37aff177559b9f69dbd3c8c3fd30a)
1*1031c584SApple OSS Distributions /*
2*1031c584SApple OSS Distributions  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3*1031c584SApple OSS Distributions  *
4*1031c584SApple OSS Distributions  * @APPLE_LICENSE_HEADER_START@
5*1031c584SApple OSS Distributions  *
6*1031c584SApple OSS Distributions  * "Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
7*1031c584SApple OSS Distributions  * Reserved.  This file contains Original Code and/or Modifications of
8*1031c584SApple OSS Distributions  * Original Code as defined in and that are subject to the Apple Public
9*1031c584SApple OSS Distributions  * Source License Version 1.0 (the 'License').  You may not use this file
10*1031c584SApple OSS Distributions  * except in compliance with the License.  Please obtain a copy of the
11*1031c584SApple OSS Distributions  * License at http://www.apple.com/publicsource and read it before using
12*1031c584SApple OSS Distributions  * this file.
13*1031c584SApple OSS Distributions  *
14*1031c584SApple OSS Distributions  * The Original Code and all software distributed under the License are
15*1031c584SApple OSS Distributions  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16*1031c584SApple OSS Distributions  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17*1031c584SApple OSS Distributions  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18*1031c584SApple OSS Distributions  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
19*1031c584SApple OSS Distributions  * License for the specific language governing rights and limitations
20*1031c584SApple OSS Distributions  * under the License."
21*1031c584SApple OSS Distributions  *
22*1031c584SApple OSS Distributions  * @APPLE_LICENSE_HEADER_END@
23*1031c584SApple OSS Distributions  */
24*1031c584SApple OSS Distributions /* Copyright (c) Apple Computer, Inc. All rights reserved. */
25*1031c584SApple OSS Distributions 
26*1031c584SApple OSS Distributions #include <config.h>
27*1031c584SApple OSS Distributions 
28*1031c584SApple OSS Distributions 
29*1031c584SApple OSS Distributions /*
30*1031c584SApple OSS Distributions  * Config has a global notion of which machine type is
31*1031c584SApple OSS Distributions  * being used.  It uses the name of the machine in choosing
32*1031c584SApple OSS Distributions  * files and directories.  Thus if the name of the machine is ``vax'',
33*1031c584SApple OSS Distributions  * it will build from ``Makefile.vax'' and use ``../vax/inline''
34*1031c584SApple OSS Distributions  * in the makerules, etc.
35*1031c584SApple OSS Distributions  */
36*1031c584SApple OSS Distributions const char      *machinename;
37*1031c584SApple OSS Distributions 
38*1031c584SApple OSS Distributions /*
39*1031c584SApple OSS Distributions  * In order to configure and build outside the kernel source tree,
40*1031c584SApple OSS Distributions  * we may wish to specify where the source tree lives.
41*1031c584SApple OSS Distributions  */
42*1031c584SApple OSS Distributions const char *source_directory;
43*1031c584SApple OSS Distributions const char *object_directory;
44*1031c584SApple OSS Distributions char *config_directory;
45*1031c584SApple OSS Distributions 
46*1031c584SApple OSS Distributions /*
47*1031c584SApple OSS Distributions  * A set of options may also be specified which are like CPU types,
48*1031c584SApple OSS Distributions  * but which may also specify values for the options.
49*1031c584SApple OSS Distributions  * A separate set of options may be defined for make-style options.
50*1031c584SApple OSS Distributions  */
51*1031c584SApple OSS Distributions struct opt *opt, *mkopt, *opt_tail, *mkopt_tail;
52*1031c584SApple OSS Distributions 
53*1031c584SApple OSS Distributions int     do_trace;
54*1031c584SApple OSS Distributions 
55*1031c584SApple OSS Distributions struct  device *dtab;
56*1031c584SApple OSS Distributions 
57*1031c584SApple OSS Distributions char    errbuf[80];
58*1031c584SApple OSS Distributions int     yyline;
59*1031c584SApple OSS Distributions 
60*1031c584SApple OSS Distributions struct  file_list *ftab, *conf_list, **confp;
61*1031c584SApple OSS Distributions char    *build_directory;
62*1031c584SApple OSS Distributions 
63*1031c584SApple OSS Distributions int     profiling = 0;
64