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