Changeset 46 for trunk/src/kmk/make.c
- Timestamp:
- Apr 4, 2003, 2:03:50 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/make.c
r45 r46 194 194 } 195 195 oodate = FALSE; 196 #ifdef USE_ARCHIVES 196 197 } else if (gn->type & OP_LIB) { 197 198 if (DEBUG(MAKE)) { … … 205 206 oodate = Arch_LibOODate (gn) || 206 207 ((gn->cmtime == 0) && (gn->type & OP_DOUBLEDEP)); 208 #endif 207 209 } else if (gn->type & OP_JOIN) { 208 210 /* … … 624 626 625 627 626 #ifdef KMK628 #ifdef USE_PARENTS 627 629 /*- 628 630 *----------------------------------------------------------------------- … … 637 639 */ 638 640 static int 639 MakeAddParents ( cgnp, pgnp)641 MakeAddParents (pgnp, cgnp) 640 642 ClientData pgnp; /* The parent to add to add */ 641 643 ClientData cgnp; /* The child to whose PARENTS variable it should be */ … … 647 649 char *p1 = NULL; 648 650 649 if (OP_NOP(pgn->type)) { 650 /* 651 * this node is only source; use the specific pathname for it 652 */ 651 652 if (OP_NOP(pgn->type) || !(parent = Var_Value(TARGET, pgn, &p1))) { 653 /* this node is only source; use the specific pathname for it */ 653 654 parent = pgn->path ? pgn->path : pgn->name; 654 } 655 else 656 parent = Var_Value(TARGET, pgn, &p1); 655 } 657 656 Var_Append(PARENTS, parent, cgn); 658 657 efree(p1); … … 690 689 { 691 690 Lst_ForEach (gn->children, MakeAddAllSrc, (ClientData) gn); 692 #ifdef KMK 691 #ifdef USE_PARENTS 693 692 Lst_ForEach (gn->parents, MakeAddParents, (ClientData) gn); 694 693 #endif 695 694 696 695 if (!Var_Exists (OODATE, gn)) {
Note:
See TracChangeset
for help on using the changeset viewer.