VirtualBox

Changeset 45 in kBuild for trunk/src/kmk/make.c


Ignore:
Timestamp:
Apr 3, 2003 2:23:37 AM (22 years ago)
Author:
bird
Message:

KMK changes..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/make.c

    r25 r45  
    624624
    625625
     626#ifdef KMK
     627/*-
     628 *-----------------------------------------------------------------------
     629 * MakeAddAllSrc --
     630 *
     631 * Results:
     632 *      Always returns 0
     633 *
     634 * Side Effects:
     635 *      The PARENTS variable for the given node is extended.
     636 *-----------------------------------------------------------------------
     637 */
     638static int
     639MakeAddParents (cgnp, pgnp)
     640    ClientData  pgnp;   /* The parent to add to add */
     641    ClientData  cgnp;   /* The child to whose PARENTS variable it should be */
     642{
     643    GNode       *pgn = (GNode *) pgnp;
     644    GNode       *cgn = (GNode *) cgnp;
     645    if ((pgn->type & (OP_EXEC|OP_USE|OP_INVISIBLE)) == 0) {
     646        char *parent;
     647        char *p1 = NULL;
     648
     649        if (OP_NOP(pgn->type)) {
     650            /*
     651             * this node is only source; use the specific pathname for it
     652             */
     653            parent = pgn->path ? pgn->path : pgn->name;
     654        }
     655        else
     656            parent = Var_Value(TARGET, pgn, &p1);
     657        Var_Append(PARENTS, parent, cgn);
     658        efree(p1);
     659    }
     660    return (0);
     661}
     662#endif
     663
     664
    626665/*-
    627666 *-----------------------------------------------------------------------
     
    651690{
    652691    Lst_ForEach (gn->children, MakeAddAllSrc, (ClientData) gn);
     692    #ifdef KMK
     693    Lst_ForEach (gn->parents, MakeAddParents, (ClientData) gn);
     694    #endif
    653695
    654696    if (!Var_Exists (OODATE, gn)) {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette