Ignore:
Timestamp:
May 25, 2007, 12:39:22 AM (18 years ago)
Author:
bird
Message:

PATH_KBUILD and PATH_KBUILD_BIN improvements. Avoid LOCALEDIR, ALIASDIR, LIBDIR and INCLUDEDIR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmakenew/read.c

    r910 r917  
    3131#include "debug.h"
    3232#include "hash.h"
     33#ifdef KMK
     34# include "kbuild.h"
     35#endif
    3336
    3437
     
    9194static const char *default_include_directories[] =
    9295  {
     96#ifndef KMK
    9397#if defined(WINDOWS32) && !defined(INCLUDEDIR)
    9498/* This completely up to the user when they install MSVC or other packages.
     
    102106    "/usr/include",
    103107#endif
     108#endif /* !KMK */
    104109    0
    105110  };
     
    30063011  ++idx;
    30073012#endif
     3013#ifdef KMK
     3014  /* Add one for the kBuild directory. */
     3015  ++idx;
     3016#endif
    30083017
    30093018  dirs = xmalloc (idx * sizeof (const char *));
     
    30643073          max_incl_len = len;
    30653074      }
     3075  }
     3076#endif
     3077#ifdef KMK
     3078  /* Add $(PATH_KBUILD). */
     3079  {
     3080    size_t len = strlen (get_path_kbuild ());
     3081    dirs[idx++] = strcache_add_len (get_path_kbuild (), len);
     3082    if (len > max_incl_len)
     3083      max_incl_len = len;
    30663084  }
    30673085#endif
     
    32263244        {
    32273245          gl.gl_pathc = 1;
    3228           gl.gl_pathv = (char *)&gname;
     3246          gl.gl_pathv = (char **)&gname;
    32293247          rc = 0;
    32303248        }
Note: See TracChangeset for help on using the changeset viewer.