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