version 1.14, 2000/02/02 13:47:48 |
version 1.15, 2000/03/26 16:21:33 |
|
|
#ifdef CLEANUP |
#ifdef CLEANUP |
if (allGNs == NULL) |
if (allGNs == NULL) |
allGNs = Lst_Init(); |
allGNs = Lst_Init(); |
Lst_AtEnd(allGNs, (ClientData)gn); |
Lst_AtEnd(allGNs, gn); |
#endif |
#endif |
|
|
return (gn); |
return (gn); |
|
|
if (isNew) { |
if (isNew) { |
gn = Targ_NewGN (name); |
gn = Targ_NewGN (name); |
Hash_SetValue (he, gn); |
Hash_SetValue (he, gn); |
Lst_AtEnd(allTargets, (ClientData)gn); |
Lst_AtEnd(allTargets, gn); |
} |
} |
} else { |
} else { |
he = Hash_FindEntry (&targets, name); |
he = Hash_FindEntry (&targets, name); |
|
|
* are added to the list in the order in which they were |
* are added to the list in the order in which they were |
* encountered in the makefile. |
* encountered in the makefile. |
*/ |
*/ |
Lst_AtEnd(nodes, (ClientData)gn); |
Lst_AtEnd(nodes, gn); |
if (gn->type & OP_DOUBLEDEP) { |
if (gn->type & OP_DOUBLEDEP) { |
Lst_Concat(nodes, gn->cohorts, LST_CONCNEW); |
Lst_Concat(nodes, gn->cohorts, LST_CONCNEW); |
} |
} |
|
|
} |
} |
if (!Lst_IsEmpty (gn->iParents)) { |
if (!Lst_IsEmpty (gn->iParents)) { |
printf("# implicit parents: "); |
printf("# implicit parents: "); |
Lst_ForEach (gn->iParents, TargPrintName, (ClientData)0); |
Lst_ForEach(gn->iParents, TargPrintName, NULL); |
fputc ('\n', stdout); |
fputc ('\n', stdout); |
} |
} |
} |
} |
if (!Lst_IsEmpty (gn->parents)) { |
if (!Lst_IsEmpty (gn->parents)) { |
printf("# parents: "); |
printf("# parents: "); |
Lst_ForEach (gn->parents, TargPrintName, (ClientData)0); |
Lst_ForEach(gn->parents, TargPrintName, NULL); |
fputc ('\n', stdout); |
fputc ('\n', stdout); |
} |
} |
|
|
|
|
printf(":: "); break; |
printf(":: "); break; |
} |
} |
Targ_PrintType (gn->type); |
Targ_PrintType (gn->type); |
Lst_ForEach (gn->children, TargPrintName, (ClientData)0); |
Lst_ForEach(gn->children, TargPrintName, NULL); |
fputc ('\n', stdout); |
fputc ('\n', stdout); |
Lst_ForEach (gn->commands, Targ_PrintCmd, (ClientData)0); |
Lst_ForEach(gn->commands, Targ_PrintCmd, NULL); |
printf("\n\n"); |
printf("\n\n"); |
if (gn->type & OP_DOUBLEDEP) { |
if (gn->type & OP_DOUBLEDEP) { |
Lst_ForEach (gn->cohorts, TargPrintNode, (ClientData)&pass); |
Lst_ForEach(gn->cohorts, TargPrintNode, &pass); |
} |
} |
} |
} |
return (0); |
return (0); |
|
|
* 2 => processing done */ |
* 2 => processing done */ |
{ |
{ |
printf("#*** Input graph:\n"); |
printf("#*** Input graph:\n"); |
Lst_ForEach (allTargets, TargPrintNode, (ClientData)&pass); |
Lst_ForEach(allTargets, TargPrintNode, &pass); |
printf("\n\n"); |
printf("\n\n"); |
printf("#\n# Files that are only sources:\n"); |
printf("#\n# Files that are only sources:\n"); |
Lst_ForEach (allTargets, TargPrintOnlySrc, (ClientData) 0); |
Lst_ForEach(allTargets, TargPrintOnlySrc, NULL); |
printf("#*** Global Variables:\n"); |
printf("#*** Global Variables:\n"); |
Var_Dump (VAR_GLOBAL); |
Var_Dump (VAR_GLOBAL); |
printf("#*** Command-line Variables:\n"); |
printf("#*** Command-line Variables:\n"); |