[BACK]Return to config.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Annotation of src/usr.bin/make/config.h, Revision 1.15

1.11      espie       1: #ifndef CONFIG_H
                      2: #define CONFIG_H
                      3:
1.10      espie       4: /*     $OpenPackages$ */
1.15    ! espie       5: /*     $OpenBSD: config.h,v 1.14 2003/06/03 02:56:11 millert Exp $     */
1.7       millert     6: /*     $NetBSD: config.h,v 1.7 1996/11/06 17:59:03 christos Exp $      */
1.1       deraadt     7:
                      8: /*
                      9:  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
                     10:  * Copyright (c) 1988, 1989 by Adam de Boor
                     11:  * Copyright (c) 1989 by Berkeley Softworks
                     12:  * All rights reserved.
                     13:  *
                     14:  * This code is derived from software contributed to Berkeley by
                     15:  * Adam de Boor.
                     16:  *
                     17:  * Redistribution and use in source and binary forms, with or without
                     18:  * modification, are permitted provided that the following conditions
                     19:  * are met:
                     20:  * 1. Redistributions of source code must retain the above copyright
                     21:  *    notice, this list of conditions and the following disclaimer.
                     22:  * 2. Redistributions in binary form must reproduce the above copyright
                     23:  *    notice, this list of conditions and the following disclaimer in the
                     24:  *    documentation and/or other materials provided with the distribution.
1.14      millert    25:  * 3. Neither the name of the University nor the names of its contributors
1.1       deraadt    26:  *    may be used to endorse or promote products derived from this software
                     27:  *    without specific prior written permission.
                     28:  *
                     29:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     30:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     31:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     32:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     33:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     34:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     35:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     36:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     37:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     38:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     39:  * SUCH DAMAGE.
                     40:  *
1.7       millert    41:  *     from: @(#)config.h      8.1 (Berkeley) 6/6/93
1.1       deraadt    42:  */
                     43:
1.10      espie      44: #define DEFSHELL       1                       /* Bourne shell */
1.1       deraadt    45:
                     46: /*
                     47:  * DEFMAXJOBS
                     48:  * DEFMAXLOCAL
                     49:  *     These control the default concurrency. On no occasion will more
                     50:  *     than DEFMAXJOBS targets be created at once (locally or remotely)
                     51:  *     DEFMAXLOCAL is the highest number of targets which will be
                     52:  *     created on the local machine at once. Note that if you set this
                     53:  *     to 0, nothing will ever happen...
                     54:  */
                     55: #define DEFMAXJOBS     4
                     56: #define DEFMAXLOCAL    1
                     57:
                     58: /*
                     59:  * INCLUDES
                     60:  * LIBRARIES
                     61:  *     These control the handling of the .INCLUDES and .LIBS variables.
                     62:  *     If INCLUDES is defined, the .INCLUDES variable will be filled
                     63:  *     from the search paths of those suffixes which are marked by
                     64:  *     .INCLUDES dependency lines. Similarly for LIBRARIES and .LIBS
                     65:  *     See suff.c for more details.
                     66:  */
                     67: #define INCLUDES
                     68: #define LIBRARIES
                     69:
                     70: /*
                     71:  * LIBSUFF
                     72:  *     Is the suffix used to denote libraries and is used by the Suff module
                     73:  *     to find the search path on which to seek any -l<xx> targets.
                     74:  */
1.10      espie      75: #define LIBSUFF ".a"
1.5       briggs     76:
                     77: /*
1.7       millert    78:  * SYSVINCLUDE
1.5       briggs     79:  *     Recognize system V like include directives [include "filename"]
                     80:  * SYSVVARSUB
                     81:  *     Recognize system V like ${VAR:x=y} variable substitutions
                     82:  */
1.7       millert    83: #define SYSVINCLUDE
1.5       briggs     84: #define SYSVVARSUB
                     85:
                     86: /*
                     87:  * SUNSHCMD
                     88:  *     Recognize SunOS and Solaris:
                     89:  *             VAR :sh= CMD    # Assign VAR to the command substitution of CMD
                     90:  *             ${VAR:sh}       # Return the command substitution of the value
                     91:  *                             # of ${VAR}
                     92:  */
                     93: #define SUNSHCMD
1.1       deraadt    94:
1.13      matthieu   95: #if !defined(__svr4__) && !defined(__SVR4) && !defined(__ELF__)
1.2       niklas     96: # ifndef RANLIBMAG
                     97: #  define RANLIBMAG "__.SYMDEF"
                     98: # endif
1.12      espie      99: #endif
                    100:
                    101: #ifdef HAS_EXTENDED_GETCWD
                    102: #define dogetcwd()     getcwd(NULL, 0)
                    103: #else
                    104: #define dogetcwd()     getcwd(emalloc(PATH_MAX), PATH_MAX)
1.1       deraadt   105: #endif
1.10      espie     106:
                    107: #ifdef SYSVINCLUDE
                    108: #define DOFEATURE_SYSVINCLUDE  FEATURE_SYSVINCLUDE
                    109: #else
                    110: #define DOFEATURE_SYSVINCLUDE  0
                    111: #endif
                    112: #ifdef SYSVVARSUB
                    113: #define DOFEATURE_SYSVVARSUB   FEATURE_SYSVVARSUB
                    114: #else
                    115: #define DOFEATURE_SYSVVARSUB   0
                    116: #endif
                    117: #ifdef SUNSHCMD
                    118: #define DOFEATURE_SUNSHCMD     FEATURE_SUNSHCMD
                    119: #else
                    120: #define DOFEATURE_SUNSHCMD     0
                    121: #endif
                    122:
                    123: #ifndef DEFAULT_FEATURES
                    124: #define DEFAULT_FEATURES       (FEATURE_UPPERLOWER | DOFEATURE_SYSVVARSUB | DOFEATURE_SYSVINCLUDE | DOFEATURE_SUNSHCMD | FEATURE_RECVARS)
                    125: #endif
                    126:
                    127: #define FEATURES(x)    ((DEFAULT_FEATURES & (x)) != 0)
                    128: #define FEATURE_ODE            1
                    129: #define FEATURE_UNIQ           2
                    130: #define FEATURE_SORT           4
                    131: #define FEATURE_UPPERLOWER     8
                    132: #define FEATURE_SYSVVARSUB     16
                    133: #define FEATURE_SYSVINCLUDE    32
                    134: #define FEATURE_SUNSHCMD       64
                    135: #define FEATURE_RECVARS                128
                    136: #define FEATURE_CONDINCLUDE    256
                    137: #define FEATURE_ASSIGN         512
                    138: #define FEATURE_EXECMOD                1024
1.11      espie     139:
                    140: /*
                    141:  * There are several places where expandable buffers are used (parse.c and
                    142:  * var.c). This constant is merely the starting point for those buffers. If
                    143:  * lines tend to be much shorter than this, it would be best to reduce BSIZE.
                    144:  * If longer, it should be increased. Reducing it will cause more copying to
                    145:  * be done for longer lines, but will save space for shorter ones. In any
                    146:  * case, it ought to be a power of two simply because most storage allocation
                    147:  * schemes allocate in powers of two.
                    148:  */
                    149: #define MAKE_BSIZE             256     /* starting size for expandable buffers */
                    150:
                    151: #endif