[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.13

1.11      espie       1: #ifndef CONFIG_H
                      2: #define CONFIG_H
                      3:
1.10      espie       4: /*     $OpenPackages$ */
1.13    ! matthieu    5: /*     $OpenBSD: config.h,v 1.12 2001/06/05 11:59:11 espie 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.
                     25:  * 3. All advertising materials mentioning features or use of this software
                     26:  *    must display the following acknowledgement:
                     27:  *     This product includes software developed by the University of
                     28:  *     California, Berkeley and its contributors.
                     29:  * 4. Neither the name of the University nor the names of its contributors
                     30:  *    may be used to endorse or promote products derived from this software
                     31:  *    without specific prior written permission.
                     32:  *
                     33:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     34:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     35:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     36:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     37:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     38:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     39:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     40:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     41:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     42:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     43:  * SUCH DAMAGE.
                     44:  *
1.7       millert    45:  *     from: @(#)config.h      8.1 (Berkeley) 6/6/93
1.1       deraadt    46:  */
                     47:
1.10      espie      48: #define DEFSHELL       1                       /* Bourne shell */
1.1       deraadt    49:
                     50: /*
                     51:  * DEFMAXJOBS
                     52:  * DEFMAXLOCAL
                     53:  *     These control the default concurrency. On no occasion will more
                     54:  *     than DEFMAXJOBS targets be created at once (locally or remotely)
                     55:  *     DEFMAXLOCAL is the highest number of targets which will be
                     56:  *     created on the local machine at once. Note that if you set this
                     57:  *     to 0, nothing will ever happen...
                     58:  */
                     59: #define DEFMAXJOBS     4
                     60: #define DEFMAXLOCAL    1
                     61:
                     62: /*
                     63:  * INCLUDES
                     64:  * LIBRARIES
                     65:  *     These control the handling of the .INCLUDES and .LIBS variables.
                     66:  *     If INCLUDES is defined, the .INCLUDES variable will be filled
                     67:  *     from the search paths of those suffixes which are marked by
                     68:  *     .INCLUDES dependency lines. Similarly for LIBRARIES and .LIBS
                     69:  *     See suff.c for more details.
                     70:  */
                     71: #define INCLUDES
                     72: #define LIBRARIES
                     73:
                     74: /*
                     75:  * LIBSUFF
                     76:  *     Is the suffix used to denote libraries and is used by the Suff module
                     77:  *     to find the search path on which to seek any -l<xx> targets.
                     78:  *
                     79:  * RECHECK
                     80:  *     If defined, Make_Update will check a target for its current
                     81:  *     modification time after it has been re-made, setting it to the
                     82:  *     starting time of the make only if the target still doesn't exist.
                     83:  *     Unfortunately, under NFS the modification time often doesn't
                     84:  *     get updated in time, so a target will appear to not have been
                     85:  *     re-made, causing later targets to appear up-to-date. On systems
                     86:  *     that don't have this problem, you should defined this. Under
                     87:  *     NFS you probably should not, unless you aren't exporting jobs.
                     88:  */
1.10      espie      89: #define LIBSUFF ".a"
                     90: #define RECHECK
1.5       briggs     91:
                     92: /*
1.7       millert    93:  * SYSVINCLUDE
1.5       briggs     94:  *     Recognize system V like include directives [include "filename"]
                     95:  * SYSVVARSUB
                     96:  *     Recognize system V like ${VAR:x=y} variable substitutions
                     97:  */
1.7       millert    98: #define SYSVINCLUDE
1.5       briggs     99: #define SYSVVARSUB
                    100:
                    101: /*
                    102:  * SUNSHCMD
                    103:  *     Recognize SunOS and Solaris:
                    104:  *             VAR :sh= CMD    # Assign VAR to the command substitution of CMD
                    105:  *             ${VAR:sh}       # Return the command substitution of the value
                    106:  *                             # of ${VAR}
                    107:  */
                    108: #define SUNSHCMD
1.1       deraadt   109:
1.13    ! matthieu  110: #if !defined(__svr4__) && !defined(__SVR4) && !defined(__ELF__)
1.2       niklas    111: # ifndef RANLIBMAG
                    112: #  define RANLIBMAG "__.SYMDEF"
                    113: # endif
1.12      espie     114: #endif
                    115:
                    116: #ifdef HAS_EXTENDED_GETCWD
                    117: #define dogetcwd()     getcwd(NULL, 0)
                    118: #else
                    119: #define dogetcwd()     getcwd(emalloc(PATH_MAX), PATH_MAX)
1.1       deraadt   120: #endif
1.10      espie     121:
                    122: #ifdef SYSVINCLUDE
                    123: #define DOFEATURE_SYSVINCLUDE  FEATURE_SYSVINCLUDE
                    124: #else
                    125: #define DOFEATURE_SYSVINCLUDE  0
                    126: #endif
                    127: #ifdef SYSVVARSUB
                    128: #define DOFEATURE_SYSVVARSUB   FEATURE_SYSVVARSUB
                    129: #else
                    130: #define DOFEATURE_SYSVVARSUB   0
                    131: #endif
                    132: #ifdef SUNSHCMD
                    133: #define DOFEATURE_SUNSHCMD     FEATURE_SUNSHCMD
                    134: #else
                    135: #define DOFEATURE_SUNSHCMD     0
                    136: #endif
                    137:
                    138: #ifndef DEFAULT_FEATURES
                    139: #define DEFAULT_FEATURES       (FEATURE_UPPERLOWER | DOFEATURE_SYSVVARSUB | DOFEATURE_SYSVINCLUDE | DOFEATURE_SUNSHCMD | FEATURE_RECVARS)
                    140: #endif
                    141:
                    142: #define FEATURES(x)    ((DEFAULT_FEATURES & (x)) != 0)
                    143: #define FEATURE_ODE            1
                    144: #define FEATURE_UNIQ           2
                    145: #define FEATURE_SORT           4
                    146: #define FEATURE_UPPERLOWER     8
                    147: #define FEATURE_SYSVVARSUB     16
                    148: #define FEATURE_SYSVINCLUDE    32
                    149: #define FEATURE_SUNSHCMD       64
                    150: #define FEATURE_RECVARS                128
                    151: #define FEATURE_CONDINCLUDE    256
                    152: #define FEATURE_ASSIGN         512
                    153: #define FEATURE_EXECMOD                1024
1.11      espie     154:
                    155: /*
                    156:  * There are several places where expandable buffers are used (parse.c and
                    157:  * var.c). This constant is merely the starting point for those buffers. If
                    158:  * lines tend to be much shorter than this, it would be best to reduce BSIZE.
                    159:  * If longer, it should be increased. Reducing it will cause more copying to
                    160:  * be done for longer lines, but will save space for shorter ones. In any
                    161:  * case, it ought to be a power of two simply because most storage allocation
                    162:  * schemes allocate in powers of two.
                    163:  */
                    164: #define MAKE_BSIZE             256     /* starting size for expandable buffers */
                    165:
                    166: #endif