/* */
/* */
/* */
-/* (C) 2000-2010, Ullrich von Bassewitz */
+/* (C) 2000-2013, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* Create the search path lists */
IncSearchPath = 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 paths relative to a main directory defined in an env var */
+ /* 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
}
/* */
/* */
/* */
-/* (C) 2000-2010, Ullrich von Bassewitz */
+/* (C) 2000-2013, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
void InitIncludePaths (void);
/* Initialize the include path search list */
+void FinishIncludePaths (void);
+/* Finish creating the include path search list. */
+
/* End of incpath.h */
/* */
/* */
/* */
-/* (C) 1998-2012, Ullrich von Bassewitz */
+/* (C) 1998-2013, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
exit (EXIT_FAILURE);
}
+ /* Add the default include search paths. */
+ FinishIncludePaths ();
+
/* If no CPU given, use the default CPU for the target */
if (GetCPU () == CPU_UNKNOWN) {
if (Target != TGT_UNKNOWN) {
/* */
/* */
/* */
-/* (C) 2000-2012, Ullrich von Bassewitz */
+/* (C) 2000-2013, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* Create the search path lists */
SysIncSearchPath = 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");
AddSearchPathFromEnv (UsrIncSearchPath, "CC65_INC");
- /* Add paths relative to a main directory defined in an env var */
+ /* 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
}
/* */
/* */
/* */
-/* (C) 2000-2010, Ullrich von Bassewitz */
+/* (C) 2000-2013, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
void InitIncludePaths (void);
/* Initialize the include path search list */
+void FinishIncludePaths (void);
+/* Finish creating the include path search lists. */
+
/* End of incpath.h */
/* */
/* */
/* */
-/* (C) 2000-2012, Ullrich von Bassewitz */
+/* (C) 2000-2013, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
AbEnd ("No input files");
}
+ /* Add the default include search paths. */
+ FinishIncludePaths ();
+
/* Create the output file name if it was not explicitly given */
MakeDefaultOutputName (InputFile);