kusano 2b45e8
# COMPILER_PREFIX = mingw32-
kusano 2b45e8
kusano 2b45e8
ifeq ($(OSNAME), Linux)
kusano 2b45e8
LDFLAGS     = -melf_i386
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifeq ($(OSNAME), Interix)
kusano 2b45e8
ARFLAGS		= -m x86
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifndef SMP
kusano 2b45e8
LIBMKL		= -L$(MKLPATH)/32 -Wl,-rpath,$(MKLPATH)/32 -lmkl_intel -lmkl_sequential -lmkl_core -lguide -lpthread -lm
kusano 2b45e8
else
kusano 2b45e8
LIBMKL		= -L$(MKLPATH)/32 -Wl,-rpath,$(MKLPATH)/32 -lmkl_intel -lmkl_intel_thread -lmkl_core -lguide -lpthread -lm
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
# LIBMKL		= -L$(MKLPATH)/32 -lmkl_lapack -lmkl_ia32 -lguide -lpthread -lm
kusano 2b45e8
kusano 2b45e8
ifndef SMP
kusano 2b45e8
LIBATLAS	= -L$(ATLAS) -lf77blas -latlas -lg2c -lm 
kusano 2b45e8
else
kusano 2b45e8
LIBATLAS	= -L$(ATLAS) -lptf77blas -latlas -lpthread -lg2c -lm
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifeq ($(COMPILER_F77), g77)
kusano 2b45e8
LIBACML		= -L$(ACMLPATH)/gnu32/lib -Wl,-rpath,$(ACMLPATH)/gnu32/lib -lacml -lg2c
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
LIBFLAME	= -L$(FLAMEPATH) -llapack2flame -lflame-lapack -lflame-base $(LIBS)
kusano 2b45e8
kusano 2b45e8
ifeq ($(F_COMPILER), GFORTRAN)
kusano 2b45e8
ifndef SMP
kusano 2b45e8
LIBACML		= -L$(ACMLPATH)/gfortran32/lib -Wl,-rpath,$(ACMLPATH)/gfortran32/lib -lacml -lgfortran -lm
kusano 2b45e8
else
kusano 2b45e8
LIBACML		= -L$(ACMLPATH)/gfortran32_mp/lib -Wl,-rpath,$(ACMLPATH)/gfortran32_mp/lib -lacml_mp -lgfortran -lgomp -lm
kusano 2b45e8
endif
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifeq ($(COMPILER_F77), pgf77)
kusano 2b45e8
LIBACML		= -L$(ACMLPATH)/pgi32/lib -lacml -L/opt/pgi/linux86-64/5.2/lib -lpgftnrtl -lnspgc -lpgc
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifeq ($(F_COMPILER), PATHSCALE)
kusano 2b45e8
ifndef SMP
kusano 2b45e8
LIBACML		= -L$(ACMLPATH)/pathscale32/lib -Wl,-rpath,$(ACMLPATH)/pathscale32/lib -lacml -Wl,-rpath,$(PATHSCALEPATH) -L$(PATHSCALEPATH) -lpathfortran -lm
kusano 2b45e8
else
kusano 2b45e8
LIBACML		= -L$(ACMLPATH)/pathscale32_mp/lib -Wl,-rpath,$(ACMLPATH)/pathscale32_mp/lib -lacml_mp -Wl,-rpath,$(PATHSCALEPATH) -L$(PATHSCALEPATH) -lopenmp -lpathfortran -lm
kusano 2b45e8
endif
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
LIBSUNPERF	= -L/opt/SUNWspro/lib/sse2 -Wl,-R,/opt/SUNWspro/lib/sse2 -lsunperf
kusano 2b45e8
kusano 2b45e8
LIBVECLIB	= /System/Library/Frameworks/vecLib.framework/Versions/Current/vecLib
kusano 2b45e8
kusano 2b45e8
ifndef SMP
kusano 2b45e8
LIBATLAS	= -L$(ATLASPATH)/32 -lcblas -lf77blas -latlas -lm 
kusano 2b45e8
else
kusano 2b45e8
LIBATLAS	= -L$(ATLASPATH)/32 -lptf77blas -lptatlas -lpthread -lm
kusano 2b45e8
endif