Print this page
make: unifdef SUN5_0 (defined)


 133         if (max_include_depth++ >= 40) {
 134                 fatal(catgets(catd, 1, 66, "Too many nested include statements"));
 135         }
 136         if (makefile->body.makefile.contents != NULL) {
 137                 retmem(makefile->body.makefile.contents);
 138         }
 139         source->inp_buf =
 140           source->inp_buf_ptr =
 141             source->inp_buf_end = NULL;
 142         source->error_converting = false;
 143         makefile->body.makefile.contents = NULL;
 144         makefile->body.makefile.size = 0;
 145         if ((makefile_name->hash.length != 1) ||
 146             (wcb[0] != (int) hyphen_char)) {
 147                 if ((makefile->body.makefile.contents == NULL) &&
 148                     (doname_it)) {
 149                         if (makefile_path == NULL) {
 150                                 add_dir_to_path(".",
 151                                                 &makefile_path,
 152                                                 -1);
 153 #ifdef SUN5_0
 154                                 add_dir_to_path(NOCATGETS("/usr/share/lib/make"),
 155                                                 &makefile_path,
 156                                                 -1);
 157                                 add_dir_to_path(NOCATGETS("/etc/default"),
 158                                                 &makefile_path,
 159                                                 -1);
 160 #elif defined(HP_UX)
 161                                 findrundir_err = avo_find_run_dir(&run_dir);
 162                                 if (! findrundir_err) {
 163                                         (void) sprintf(makerules_dir, NOCATGETS("%s/../share/lib/make"), run_dir);
 164                                         add_dir_to_path(makerules_dir,
 165                                                         &makefile_path,
 166                                                         -1);
 167                                 }
 168 
 169                                 add_dir_to_path(NOCATGETS("/opt/SUNWspro/share/lib/make"),
 170                                                 &makefile_path,
 171                                                 -1);
 172                                 add_dir_to_path(NOCATGETS("/usr/share/lib/make"),
 173                                                 &makefile_path,
 174                                                 -1);
 175 #elif defined(linux)
 176                                 findrundir_err = avo_find_run_dir(&run_dir);
 177                                 if (! findrundir_err) {
 178                                         (void) sprintf(makerules_dir, NOCATGETS("%s/../lib"), run_dir);
 179                                         add_dir_to_path(makerules_dir,
 180                                                         &makefile_path,
 181                                                         -1);
 182                                 }
 183 
 184                                 add_dir_to_path(NOCATGETS("/usr/SUNWspro/lib"),
 185                                                 &makefile_path,
 186                                                 -1);
 187                                 add_dir_to_path(NOCATGETS("/opt/SUNWspro/share/lib/make"),
 188                                                 &makefile_path,
 189                                                 -1);
 190                                 add_dir_to_path(NOCATGETS("/usr/share/lib/make"),
 191                                                 &makefile_path,
 192                                                 -1);
 193 #else
 194                                 add_dir_to_path(NOCATGETS("/usr/include/make"),
 195                                                 &makefile_path,
 196                                                 -1);
 197 #endif
 198                         }
 199                         save_makefile_type = makefile_type;
 200                         makefile_type = reading_nothing;
 201                         if (doname(makefile_name, true, false) == build_dont_know) {
 202                                 /* Try normalized filename */
 203                                 string_start=get_wstring(makefile_name->string_mb);
 204                                 for (string_end=string_start+1; *string_end != L'\0'; string_end++);
 205                                 normalized_makefile_name=normalize_name(string_start, string_end - string_start);
 206                                 if ((strcmp(makefile_name->string_mb, normalized_makefile_name->string_mb) == 0) || 
 207                                         (doname(normalized_makefile_name, true, false) == build_dont_know)) {
 208                                         n = access_vroot(makefile_name->string_mb,
 209                                                  4,
 210                                                  chase_path ?
 211                                                  makefile_path : NULL,
 212                                                  VROOT_DEFAULT);
 213                                         if (n == 0) {
 214                                                 get_vroot_path((char **) NULL,
 215                                                        &path,
 216                                                        (char **) NULL);
 217                                                 if ((path[0] == (int) period_char) &&




 133         if (max_include_depth++ >= 40) {
 134                 fatal(catgets(catd, 1, 66, "Too many nested include statements"));
 135         }
 136         if (makefile->body.makefile.contents != NULL) {
 137                 retmem(makefile->body.makefile.contents);
 138         }
 139         source->inp_buf =
 140           source->inp_buf_ptr =
 141             source->inp_buf_end = NULL;
 142         source->error_converting = false;
 143         makefile->body.makefile.contents = NULL;
 144         makefile->body.makefile.size = 0;
 145         if ((makefile_name->hash.length != 1) ||
 146             (wcb[0] != (int) hyphen_char)) {
 147                 if ((makefile->body.makefile.contents == NULL) &&
 148                     (doname_it)) {
 149                         if (makefile_path == NULL) {
 150                                 add_dir_to_path(".",
 151                                                 &makefile_path,
 152                                                 -1);

 153                                 add_dir_to_path(NOCATGETS("/usr/share/lib/make"),
 154                                                 &makefile_path,
 155                                                 -1);
 156                                 add_dir_to_path(NOCATGETS("/etc/default"),
 157                                                 &makefile_path,
 158                                                 -1);






































 159                         }
 160                         save_makefile_type = makefile_type;
 161                         makefile_type = reading_nothing;
 162                         if (doname(makefile_name, true, false) == build_dont_know) {
 163                                 /* Try normalized filename */
 164                                 string_start=get_wstring(makefile_name->string_mb);
 165                                 for (string_end=string_start+1; *string_end != L'\0'; string_end++);
 166                                 normalized_makefile_name=normalize_name(string_start, string_end - string_start);
 167                                 if ((strcmp(makefile_name->string_mb, normalized_makefile_name->string_mb) == 0) || 
 168                                         (doname(normalized_makefile_name, true, false) == build_dont_know)) {
 169                                         n = access_vroot(makefile_name->string_mb,
 170                                                  4,
 171                                                  chase_path ?
 172                                                  makefile_path : NULL,
 173                                                  VROOT_DEFAULT);
 174                                         if (n == 0) {
 175                                                 get_vroot_path((char **) NULL,
 176                                                        &path,
 177                                                        (char **) NULL);
 178                                                 if ((path[0] == (int) period_char) &&