make.c (241146) | make.c (243115) |
---|---|
1/* $NetBSD: make.c,v 1.87 2012/06/12 19:21:51 joerg Exp $ */ | 1/* $NetBSD: make.c,v 1.88 2012/11/09 18:53:05 sjg Exp $ */ |
2 3/* 4 * Copyright (c) 1988, 1989, 1990, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Adam de Boor. 9 * --- 54 unchanged lines hidden (view full) --- 64 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 65 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 66 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 67 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 68 * SUCH DAMAGE. 69 */ 70 71#ifndef MAKE_NATIVE | 2 3/* 4 * Copyright (c) 1988, 1989, 1990, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Adam de Boor. 9 * --- 54 unchanged lines hidden (view full) --- 64 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 65 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 66 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 67 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 68 * SUCH DAMAGE. 69 */ 70 71#ifndef MAKE_NATIVE |
72static char rcsid[] = "$NetBSD: make.c,v 1.87 2012/06/12 19:21:51 joerg Exp $"; | 72static char rcsid[] = "$NetBSD: make.c,v 1.88 2012/11/09 18:53:05 sjg Exp $"; |
73#else 74#include <sys/cdefs.h> 75#ifndef lint 76#if 0 77static char sccsid[] = "@(#)make.c 8.1 (Berkeley) 6/6/93"; 78#else | 73#else 74#include <sys/cdefs.h> 75#ifndef lint 76#if 0 77static char sccsid[] = "@(#)make.c 8.1 (Berkeley) 6/6/93"; 78#else |
79__RCSID("$NetBSD: make.c,v 1.87 2012/06/12 19:21:51 joerg Exp $"); | 79__RCSID("$NetBSD: make.c,v 1.88 2012/11/09 18:53:05 sjg Exp $"); |
80#endif 81#endif /* not lint */ 82#endif 83 84/*- 85 * make.c -- 86 * The functions which perform the examination of targets and 87 * their suitability for creation --- 939 unchanged lines hidden (view full) --- 1027 cn->name, cn->cohort_num, cn->made, cn->type); 1028 if (cn->made > DEFERRED) 1029 return 0; 1030 1031 /* If this node is on the RHS of a .ORDER, check LHSs. */ 1032 if (cn->order_pred && Lst_ForEach(cn->order_pred, MakeCheckOrder, 0)) { 1033 /* Can't build this (or anything else in this child list) yet */ 1034 cn->made = DEFERRED; | 80#endif 81#endif /* not lint */ 82#endif 83 84/*- 85 * make.c -- 86 * The functions which perform the examination of targets and 87 * their suitability for creation --- 939 unchanged lines hidden (view full) --- 1027 cn->name, cn->cohort_num, cn->made, cn->type); 1028 if (cn->made > DEFERRED) 1029 return 0; 1030 1031 /* If this node is on the RHS of a .ORDER, check LHSs. */ 1032 if (cn->order_pred && Lst_ForEach(cn->order_pred, MakeCheckOrder, 0)) { 1033 /* Can't build this (or anything else in this child list) yet */ 1034 cn->made = DEFERRED; |
1035 return 1; | 1035 return 0; /* but keep looking */ |
1036 } 1037 1038 if (DEBUG(MAKE)) 1039 fprintf(debug_file, "MakeBuildChild: schedule %s%s\n", 1040 cn->name, cn->cohort_num); 1041 1042 cn->made = REQUESTED; 1043 if (toBeMade_next == NULL) --- 6 unchanged lines hidden (view full) --- 1050 1051 /* 1052 * If this node is a .WAIT node with unmade chlidren 1053 * then don't add the next sibling. 1054 */ 1055 return cn->type & OP_WAIT && cn->unmade > 0; 1056} 1057 | 1036 } 1037 1038 if (DEBUG(MAKE)) 1039 fprintf(debug_file, "MakeBuildChild: schedule %s%s\n", 1040 cn->name, cn->cohort_num); 1041 1042 cn->made = REQUESTED; 1043 if (toBeMade_next == NULL) --- 6 unchanged lines hidden (view full) --- 1050 1051 /* 1052 * If this node is a .WAIT node with unmade chlidren 1053 * then don't add the next sibling. 1054 */ 1055 return cn->type & OP_WAIT && cn->unmade > 0; 1056} 1057 |
1058/* When a .ORDER RHS node completes we do this on each LHS */ | 1058/* When a .ORDER LHS node completes we do this on each RHS */ |
1059static int 1060MakeBuildParent(void *v_pn, void *toBeMade_next) 1061{ 1062 GNode *pn = v_pn; 1063 1064 if (pn->made != DEFERRED) 1065 return 0; 1066 --- 495 unchanged lines hidden --- | 1059static int 1060MakeBuildParent(void *v_pn, void *toBeMade_next) 1061{ 1062 GNode *pn = v_pn; 1063 1064 if (pn->made != DEFERRED) 1065 return 0; 1066 --- 495 unchanged lines hidden --- |