|
|
ATL_mprintf(2, fplog, fpout, "CC = %s %s\n", CC, CCFLAGS); | ATL_mprintf(2, fplog, fpout, "CC = %s %s\n", CC, CCFLAGS); |
if (MCC) ATL_mprintf(2, fplog, fpout, "MCC = %s %s\n\n", MCC, MMFLAGS); | if (MCC) ATL_mprintf(2, fplog, fpout, "MCC = %s %s\n\n", MCC, MMFLAGS); |
| |
if (F77 && BLASlib) FindBlas(fpout, fplog, redir, F77, F77FLAGS, BLASlib); |
/* Gentoo if (F77 && BLASlib) FindBlas(fpout, fplog, redir, F77, F77FLAGS, BLASlib); */ |
return(iret); | return(iret); |
} | } |
| |
|
|
} | } |
else if (strstr(ln, "Athlon")) mach = AmdAthlon; | else if (strstr(ln, "Athlon")) mach = AmdAthlon; |
else if (strstr(ln, "AMD-K7")) mach = AmdAthlon; | else if (strstr(ln, "AMD-K7")) mach = AmdAthlon; |
|
else if (strstr(ln, "XEON")) mach = IntP4; /* Gentoo */ |
} | } |
break; | break; |
default:; | default:; |
|
|
if (i || ln[0] == '\0' || strstr(ln, "i586") || strstr(ln, "i486") || | if (i || ln[0] == '\0' || strstr(ln, "i586") || strstr(ln, "i486") || |
strstr(ln, "i386")) | strstr(ln, "i386")) |
{ | { |
|
#ifndef INTERACTIVE |
|
exit(-1); /*/ Make ebuild complain. */ |
|
#endif |
fprintf(stdout, "Enter your machine type:\n"); | fprintf(stdout, "Enter your machine type:\n"); |
fprintf(stdout, " 1. Other/UNKNOWN\n\n"); | fprintf(stdout, " 1. Other/UNKNOWN\n\n"); |
fprintf(stdout, " 2. AMD Athlon\n"); | fprintf(stdout, " 2. AMD Athlon\n"); |
|
|
else if (strstr(ln, "ia64")) return(IA64Itan); | else if (strstr(ln, "ia64")) return(IA64Itan); |
else if (strstr(ln, "i686")) | else if (strstr(ln, "i686")) |
{ | { |
|
#ifndef INTERACTIVE |
|
exit(-1); /* Make ebuild complain. */ |
|
#endif |
fprintf(stdout, "Enter your machine type:\n"); | fprintf(stdout, "Enter your machine type:\n"); |
fprintf(stdout, " 1. Other/UNKNOWN\n"); | fprintf(stdout, " 1. Other/UNKNOWN\n"); |
fprintf(stdout, " 2. AMD Athlon\n"); | fprintf(stdout, " 2. AMD Athlon\n"); |
|
|
if (ierr) | if (ierr) |
{ | { |
fprintf(stderr, "File Make.%s already exists!\n", ARCH); | fprintf(stderr, "File Make.%s already exists!\n", ARCH); |
ierr = !IsYes('n', "", "overwrite it?"); |
/* Gentoo ierr = !IsYes('n', "", "overwrite it?"); */ |
|
ierr = !IsYes('y', "", "overwrite it?"); |
} | } |
} | } |
while (ierr); | while (ierr); |
|
|
fprintf(fpout, " MVTdir = $(TOPdir)/tune/blas/gemv/$(ARCH)\n"); | fprintf(fpout, " MVTdir = $(TOPdir)/tune/blas/gemv/$(ARCH)\n"); |
fprintf(fpout, " R1Tdir = $(TOPdir)/tune/blas/ger/$(ARCH)\n"); | fprintf(fpout, " R1Tdir = $(TOPdir)/tune/blas/ger/$(ARCH)\n"); |
fprintf(fpout, " L1Tdir = $(TOPdir)/tune/blas/level1/$(ARCH)\n"); | fprintf(fpout, " L1Tdir = $(TOPdir)/tune/blas/level1/$(ARCH)\n"); |
fprintf(fpout, " L3Tdir = $(TOPdir)/tune/blas/level3/$(ARCH)\n\n"); |
fprintf(fpout, " L3Tdir = $(TOPdir)/tune/blas/level3/$(ARCH)\n"); |
| |
fprintf(fpout, | fprintf(fpout, |
"# ---------------------------------------------------------------------\n"); | "# ---------------------------------------------------------------------\n"); |
|
|
fprintf(fpout, " BC = $(CC)\n", CC); | fprintf(fpout, " BC = $(CC)\n", CC); |
fprintf(fpout, " BCFLAGS = $(CCFLAGS)\n"); | fprintf(fpout, " BCFLAGS = $(CCFLAGS)\n"); |
} | } |
|
#ifdef USE_LIBTOOL |
|
fprintf(fpout, " LIBTOOL = libtool --mode=compile\n"); |
|
fprintf(fpout, " ARCHIVER = $(TOPdir)/war %s\n", ARCHIVER); |
|
#else |
fprintf(fpout, " ARCHIVER = %s\n", ARCHIVER); | fprintf(fpout, " ARCHIVER = %s\n", ARCHIVER); |
|
#endif |
fprintf(fpout, " ARFLAGS = %s\n", ARFLAGS); | fprintf(fpout, " ARFLAGS = %s\n", ARFLAGS); |
fprintf(fpout, " RANLIB = %s\n\n", RANLIB); | fprintf(fpout, " RANLIB = %s\n\n", RANLIB); |
| |