# COMPILER_PREFIX = mingw32- ifneq ($(DYNAMIC_ARCH),1) ADD_CPUFLAGS = 1 else ifdef TARGET_CORE ADD_CPUFLAGS = 1 endif endif ifdef ADD_CPUFLAGS ifdef HAVE_SSE CCOMMON_OPT += -msse ifneq ($(F_COMPILER), NAG) FCOMMON_OPT += -msse endif endif 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 ifdef HAVE_SSE2 CCOMMON_OPT += -msse2 FCOMMON_OPT += -msse2 endif ifdef HAVE_SSE3 CCOMMON_OPT += -msse3 FCOMMON_OPT += -msse3 ifdef HAVE_SSSE3 CCOMMON_OPT += -mssse3 FCOMMON_OPT += -mssse3 endif ifdef HAVE_SSE4_1 CCOMMON_OPT += -msse4.1 FCOMMON_OPT += -msse4.1 endif endif