version 1.80, 2007/09/17 09:28:36 |
version 1.81, 2007/09/17 11:11:30 |
|
|
break; |
break; |
} |
} |
case 'm': |
case 'm': |
Dir_AddDir(sysIncPath, optarg); |
Dir_AddDir(systemIncludePath, optarg); |
record_option(c, optarg); |
record_option(c, optarg); |
break; |
break; |
case -1: |
case -1: |
|
|
LIST sysMkPath; /* Path of sys.mk */ |
LIST sysMkPath; /* Path of sys.mk */ |
|
|
Lst_Init(&sysMkPath); |
Lst_Init(&sysMkPath); |
Dir_Expand(_PATH_DEFSYSMK, sysIncPath, &sysMkPath); |
Dir_Expand(_PATH_DEFSYSMK, systemIncludePath, &sysMkPath); |
if (Lst_IsEmpty(&sysMkPath)) |
if (Lst_IsEmpty(&sysMkPath)) |
Fatal("make: no system rules (%s).", _PATH_DEFSYSMK); |
Fatal("make: no system rules (%s).", _PATH_DEFSYSMK); |
|
|
|
|
* add the directories from the DEFSYSPATH (more than one may be given |
* add the directories from the DEFSYSPATH (more than one may be given |
* as dir1:...:dirn) to the system include path. |
* as dir1:...:dirn) to the system include path. |
*/ |
*/ |
if (Lst_IsEmpty(sysIncPath)) |
if (Lst_IsEmpty(systemIncludePath)) |
add_dirpath(sysIncPath, syspath); |
add_dirpath(systemIncludePath, syspath); |
|
|
read_all_make_rules(noBuiltins, &makefiles, &d); |
read_all_make_rules(noBuiltins, &makefiles, &d); |
|
|
|
|
} |
} |
} |
} |
/* look in -I and system include directories. */ |
/* look in -I and system include directories. */ |
name = Dir_FindFile(fname, parseIncPath); |
name = Dir_FindFile(fname, userIncludePath); |
if (!name) |
if (!name) |
name = Dir_FindFile(fname, sysIncPath); |
name = Dir_FindFile(fname, systemIncludePath); |
if (!name || !(stream = fopen(name, "r"))) |
if (!name || !(stream = fopen(name, "r"))) |
return false; |
return false; |
fname = name; |
fname = name; |