Changed the order of directories that are searched for include files.
This commit is contained in:
parent
39a877175b
commit
be5a5e03d8
6 changed files with 53 additions and 29 deletions
|
@ -6,7 +6,7 @@
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2000-2010, Ullrich von Bassewitz */
|
/* (C) 2000-2013, Ullrich von Bassewitz */
|
||||||
/* Roemerstrasse 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
|
@ -70,17 +70,23 @@ void InitIncludePaths (void)
|
||||||
/* Create the search path lists */
|
/* Create the search path lists */
|
||||||
IncSearchPath = NewSearchPath ();
|
IncSearchPath = NewSearchPath ();
|
||||||
BinSearchPath = NewSearchPath ();
|
BinSearchPath = NewSearchPath ();
|
||||||
|
}
|
||||||
/* Add some compiled in search paths if defined at compile time */
|
|
||||||
#ifdef CA65_INC
|
|
||||||
AddSearchPath (IncSearchPath, STRINGIZE (CA65_INC));
|
|
||||||
#endif
|
void FinishIncludePaths (void)
|
||||||
|
/* Finish creating the include path search list. */
|
||||||
/* Add specific paths from the environment */
|
{
|
||||||
AddSearchPathFromEnv (IncSearchPath, "CA65_INC");
|
/* Add specific paths from the environment */
|
||||||
|
AddSearchPathFromEnv (IncSearchPath, "CA65_INC");
|
||||||
/* Add paths relative to a main directory defined in an env var */
|
|
||||||
AddSubSearchPathFromEnv (IncSearchPath, "CC65_HOME", "asminc");
|
/* Add paths relative to a main directory defined in an env. var. */
|
||||||
|
AddSubSearchPathFromEnv (IncSearchPath, "CC65_HOME", "asminc");
|
||||||
|
|
||||||
|
/* Add some compiled-in search paths if defined at compile time. */
|
||||||
|
#ifdef CA65_INC
|
||||||
|
AddSearchPath (IncSearchPath, STRINGIZE (CA65_INC));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2000-2010, Ullrich von Bassewitz */
|
/* (C) 2000-2013, Ullrich von Bassewitz */
|
||||||
/* Roemerstrasse 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
|
@ -66,6 +66,9 @@ void ForgetAllIncludePaths (void);
|
||||||
void InitIncludePaths (void);
|
void InitIncludePaths (void);
|
||||||
/* Initialize the include path search list */
|
/* Initialize the include path search list */
|
||||||
|
|
||||||
|
void FinishIncludePaths (void);
|
||||||
|
/* Finish creating the include path search list. */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* End of incpath.h */
|
/* End of incpath.h */
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 1998-2012, Ullrich von Bassewitz */
|
/* (C) 1998-2013, Ullrich von Bassewitz */
|
||||||
/* Roemerstrasse 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
|
@ -1016,6 +1016,9 @@ int main (int argc, char* argv [])
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Add the default include search paths. */
|
||||||
|
FinishIncludePaths ();
|
||||||
|
|
||||||
/* If no CPU given, use the default CPU for the target */
|
/* If no CPU given, use the default CPU for the target */
|
||||||
if (GetCPU () == CPU_UNKNOWN) {
|
if (GetCPU () == CPU_UNKNOWN) {
|
||||||
if (Target != TGT_UNKNOWN) {
|
if (Target != TGT_UNKNOWN) {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2000-2012, Ullrich von Bassewitz */
|
/* (C) 2000-2013, Ullrich von Bassewitz */
|
||||||
/* Roemerstrasse 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
|
@ -70,18 +70,24 @@ void InitIncludePaths (void)
|
||||||
/* Create the search path lists */
|
/* Create the search path lists */
|
||||||
SysIncSearchPath = NewSearchPath ();
|
SysIncSearchPath = NewSearchPath ();
|
||||||
UsrIncSearchPath = NewSearchPath ();
|
UsrIncSearchPath = NewSearchPath ();
|
||||||
|
}
|
||||||
/* Add some compiled in search paths if defined at compile time */
|
|
||||||
#ifdef CC65_INC
|
|
||||||
AddSearchPath (SysIncSearchPath, STRINGIZE (CC65_INC));
|
|
||||||
#endif
|
void FinishIncludePaths (void)
|
||||||
|
/* Finish creating the include path search lists. */
|
||||||
/* Add specific paths from the environment */
|
{
|
||||||
AddSearchPathFromEnv (SysIncSearchPath, "CC65_INC");
|
/* Add specific paths from the environment */
|
||||||
AddSearchPathFromEnv (UsrIncSearchPath, "CC65_INC");
|
AddSearchPathFromEnv (SysIncSearchPath, "CC65_INC");
|
||||||
|
AddSearchPathFromEnv (UsrIncSearchPath, "CC65_INC");
|
||||||
/* Add paths relative to a main directory defined in an env var */
|
|
||||||
AddSubSearchPathFromEnv (SysIncSearchPath, "CC65_HOME", "include");
|
/* Add paths relative to a main directory defined in an env. var. */
|
||||||
|
AddSubSearchPathFromEnv (SysIncSearchPath, "CC65_HOME", "include");
|
||||||
|
|
||||||
|
/* Add some compiled-in search paths if defined at compile time. */
|
||||||
|
#ifdef CC65_INC
|
||||||
|
AddSearchPath (SysIncSearchPath, STRINGIZE (CC65_INC));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2000-2010, Ullrich von Bassewitz */
|
/* (C) 2000-2013, Ullrich von Bassewitz */
|
||||||
/* Roemerstrasse 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
|
@ -66,6 +66,9 @@ void ForgetAllIncludePaths (void);
|
||||||
void InitIncludePaths (void);
|
void InitIncludePaths (void);
|
||||||
/* Initialize the include path search list */
|
/* Initialize the include path search list */
|
||||||
|
|
||||||
|
void FinishIncludePaths (void);
|
||||||
|
/* Finish creating the include path search lists. */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* End of incpath.h */
|
/* End of incpath.h */
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2000-2012, Ullrich von Bassewitz */
|
/* (C) 2000-2013, Ullrich von Bassewitz */
|
||||||
/* Roemerstrasse 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
|
@ -957,6 +957,9 @@ int main (int argc, char* argv[])
|
||||||
AbEnd ("No input files");
|
AbEnd ("No input files");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Add the default include search paths. */
|
||||||
|
FinishIncludePaths ();
|
||||||
|
|
||||||
/* Create the output file name if it was not explicitly given */
|
/* Create the output file name if it was not explicitly given */
|
||||||
MakeDefaultOutputName (InputFile);
|
MakeDefaultOutputName (InputFile);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue