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