summaryrefslogtreecommitdiff
path: root/Makefile.x86
diff options
context:
space:
mode:
authorXianyi Zhang <traits.zhang@gmail.com>2011-01-24 14:54:24 +0000
committerXianyi Zhang <traits.zhang@gmail.com>2011-01-24 14:54:24 +0000
commit342bbc3871d1b43f548e9d1ae9d380a1d4989cb3 (patch)
tree385fc6d27e282ae1bb06d685833c5325615c8169 /Makefile.x86
downloadopenblas-342bbc3871d1b43f548e9d1ae9d380a1d4989cb3.tar.gz
openblas-342bbc3871d1b43f548e9d1ae9d380a1d4989cb3.tar.bz2
openblas-342bbc3871d1b43f548e9d1ae9d380a1d4989cb3.zip
Import GotoBLAS2 1.13 BSD version codes.
Diffstat (limited to 'Makefile.x86')
-rw-r--r--Makefile.x8659
1 files changed, 59 insertions, 0 deletions
diff --git a/Makefile.x86 b/Makefile.x86
new file mode 100644
index 000000000..94ca7c4a7
--- /dev/null
+++ b/Makefile.x86
@@ -0,0 +1,59 @@
+# COMPILER_PREFIX = mingw32-
+
+ifeq ($(OSNAME), Linux)
+LDFLAGS = -melf_i386
+endif
+
+ifeq ($(OSNAME), Interix)
+ARFLAGS = -m x86
+endif
+
+ifndef SMP
+LIBMKL = -L$(MKLPATH)/32 -Wl,-rpath,$(MKLPATH)/32 -lmkl_intel -lmkl_sequential -lmkl_core -lguide -lpthread -lm
+else
+LIBMKL = -L$(MKLPATH)/32 -Wl,-rpath,$(MKLPATH)/32 -lmkl_intel -lmkl_intel_thread -lmkl_core -lguide -lpthread -lm
+endif
+
+# LIBMKL = -L$(MKLPATH)/32 -lmkl_lapack -lmkl_ia32 -lguide -lpthread -lm
+
+ifndef SMP
+LIBATLAS = -L$(ATLAS) -lf77blas -latlas -lg2c -lm
+else
+LIBATLAS = -L$(ATLAS) -lptf77blas -latlas -lpthread -lg2c -lm
+endif
+
+ifeq ($(COMPILER_F77), g77)
+LIBACML = -L$(ACMLPATH)/gnu32/lib -Wl,-rpath,$(ACMLPATH)/gnu32/lib -lacml -lg2c
+endif
+
+LIBFLAME = -L$(FLAMEPATH) -llapack2flame -lflame-lapack -lflame-base $(LIBS)
+
+ifeq ($(F_COMPILER), GFORTRAN)
+ifndef SMP
+LIBACML = -L$(ACMLPATH)/gfortran32/lib -Wl,-rpath,$(ACMLPATH)/gfortran32/lib -lacml -lgfortran -lm
+else
+LIBACML = -L$(ACMLPATH)/gfortran32_mp/lib -Wl,-rpath,$(ACMLPATH)/gfortran32_mp/lib -lacml_mp -lgfortran -lgomp -lm
+endif
+endif
+
+ifeq ($(COMPILER_F77), pgf77)
+LIBACML = -L$(ACMLPATH)/pgi32/lib -lacml -L/opt/pgi/linux86-64/5.2/lib -lpgftnrtl -lnspgc -lpgc
+endif
+
+ifeq ($(F_COMPILER), PATHSCALE)
+ifndef SMP
+LIBACML = -L$(ACMLPATH)/pathscale32/lib -Wl,-rpath,$(ACMLPATH)/pathscale32/lib -lacml -Wl,-rpath,$(PATHSCALEPATH) -L$(PATHSCALEPATH) -lpathfortran -lm
+else
+LIBACML = -L$(ACMLPATH)/pathscale32_mp/lib -Wl,-rpath,$(ACMLPATH)/pathscale32_mp/lib -lacml_mp -Wl,-rpath,$(PATHSCALEPATH) -L$(PATHSCALEPATH) -lopenmp -lpathfortran -lm
+endif
+endif
+
+LIBSUNPERF = -L/opt/SUNWspro/lib/sse2 -Wl,-R,/opt/SUNWspro/lib/sse2 -lsunperf
+
+LIBVECLIB = /System/Library/Frameworks/vecLib.framework/Versions/Current/vecLib
+
+ifndef SMP
+LIBATLAS = -L$(ATLASPATH)/32 -lcblas -lf77blas -latlas -lm
+else
+LIBATLAS = -L$(ATLASPATH)/32 -lptf77blas -lptatlas -lpthread -lm
+endif