parse.c (168671) | parse.c (177101) |
---|---|
1/*- 2 * Copyright (c) 1988, 1989, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 1989 by Berkeley Softworks 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Adam de Boor. --- 25 unchanged lines hidden (view full) --- 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)parse.c 8.3 (Berkeley) 3/19/94 39 */ 40 41#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1988, 1989, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 1989 by Berkeley Softworks 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Adam de Boor. --- 25 unchanged lines hidden (view full) --- 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)parse.c 8.3 (Berkeley) 3/19/94 39 */ 40 41#include <sys/cdefs.h> |
42__FBSDID("$FreeBSD: head/usr.bin/make/parse.c 168671 2007-04-12 18:14:00Z ru $"); | 42__FBSDID("$FreeBSD: head/usr.bin/make/parse.c 177101 2008-03-12 14:50:58Z obrien $"); |
43 44/*- 45 * parse.c -- 46 * Functions to parse a makefile. 47 * 48 * Most important structures are kept in Lsts. Directories for 49 * the #include "..." function are kept in the 'parseIncPath' Lst, while 50 * those for the #include <...> are kept in the 'sysIncPath' Lst. The --- 112 unchanged lines hidden (view full) --- 163 Not, /* Not special */ 164 NotParallel, /* .NOTPARALELL */ 165 Null, /* .NULL */ 166 Order, /* .ORDER */ 167 Parallel, /* .PARALLEL */ 168 ExPath, /* .PATH */ 169 Phony, /* .PHONY */ 170 Posix, /* .POSIX */ | 43 44/*- 45 * parse.c -- 46 * Functions to parse a makefile. 47 * 48 * Most important structures are kept in Lsts. Directories for 49 * the #include "..." function are kept in the 'parseIncPath' Lst, while 50 * those for the #include <...> are kept in the 'sysIncPath' Lst. The --- 112 unchanged lines hidden (view full) --- 163 Not, /* Not special */ 164 NotParallel, /* .NOTPARALELL */ 165 Null, /* .NULL */ 166 Order, /* .ORDER */ 167 Parallel, /* .PARALLEL */ 168 ExPath, /* .PATH */ 169 Phony, /* .PHONY */ 170 Posix, /* .POSIX */ |
171 MakefileDeps, /* .MAKEFILEDEPS */ |
|
171 Precious, /* .PRECIOUS */ 172 ExShell, /* .SHELL */ 173 Silent, /* .SILENT */ 174 SingleShell, /* .SINGLESHELL */ 175 Suffixes, /* .SUFFIXES */ 176 Wait, /* .WAIT */ 177 Warn, /* .WARN */ 178 Attribute /* Generic attribute */ --- 29 unchanged lines hidden (view full) --- 208 { ".IGNORE", Ignore, OP_IGNORE }, 209 { ".INCLUDES", Includes, 0 }, 210 { ".INTERRUPT", Interrupt, 0 }, 211 { ".INVISIBLE", Attribute, OP_INVISIBLE }, 212 { ".JOIN", Attribute, OP_JOIN }, 213 { ".LIBS", Libs, 0 }, 214 { ".MAIN", Main, 0 }, 215 { ".MAKE", Attribute, OP_MAKE }, | 172 Precious, /* .PRECIOUS */ 173 ExShell, /* .SHELL */ 174 Silent, /* .SILENT */ 175 SingleShell, /* .SINGLESHELL */ 176 Suffixes, /* .SUFFIXES */ 177 Wait, /* .WAIT */ 178 Warn, /* .WARN */ 179 Attribute /* Generic attribute */ --- 29 unchanged lines hidden (view full) --- 209 { ".IGNORE", Ignore, OP_IGNORE }, 210 { ".INCLUDES", Includes, 0 }, 211 { ".INTERRUPT", Interrupt, 0 }, 212 { ".INVISIBLE", Attribute, OP_INVISIBLE }, 213 { ".JOIN", Attribute, OP_JOIN }, 214 { ".LIBS", Libs, 0 }, 215 { ".MAIN", Main, 0 }, 216 { ".MAKE", Attribute, OP_MAKE }, |
217 { ".MAKEFILEDEPS", MakefileDeps, 0 }, |
|
216 { ".MAKEFLAGS", MFlags, 0 }, 217 { ".MFLAGS", MFlags, 0 }, 218 { ".NOTMAIN", Attribute, OP_NOTMAIN }, 219 { ".NOTPARALLEL", NotParallel, 0 }, 220 { ".NO_PARALLEL", NotParallel, 0 }, 221 { ".NULL", Null, 0 }, 222 { ".OPTIONAL", Attribute, OP_OPTIONAL }, 223 { ".ORDER", Order, 0 }, --- 840 unchanged lines hidden (view full) --- 1064 break; 1065 case Silent: 1066 beSilent = TRUE; 1067 break; 1068 case ExPath: 1069 LST_FOREACH(ln, &paths) 1070 Path_Clear(Lst_Datum(ln)); 1071 break; | 218 { ".MAKEFLAGS", MFlags, 0 }, 219 { ".MFLAGS", MFlags, 0 }, 220 { ".NOTMAIN", Attribute, OP_NOTMAIN }, 221 { ".NOTPARALLEL", NotParallel, 0 }, 222 { ".NO_PARALLEL", NotParallel, 0 }, 223 { ".NULL", Null, 0 }, 224 { ".OPTIONAL", Attribute, OP_OPTIONAL }, 225 { ".ORDER", Order, 0 }, --- 840 unchanged lines hidden (view full) --- 1066 break; 1067 case Silent: 1068 beSilent = TRUE; 1069 break; 1070 case ExPath: 1071 LST_FOREACH(ln, &paths) 1072 Path_Clear(Lst_Datum(ln)); 1073 break; |
1074 case MakefileDeps: 1075 mfAutoDeps = TRUE; 1076 break; |
|
1072 case Posix: 1073 is_posix = TRUE; 1074 Var_Set("%POSIX", "1003.2", VAR_GLOBAL); 1075 break; 1076 default: 1077 break; 1078 } 1079 --- 1455 unchanged lines hidden --- | 1077 case Posix: 1078 is_posix = TRUE; 1079 Var_Set("%POSIX", "1003.2", VAR_GLOBAL); 1080 break; 1081 default: 1082 break; 1083 } 1084 --- 1455 unchanged lines hidden --- |