kusano 2b45e8
# CCOMMON_OPT	+= -DALLOC_SHM
kusano 2b45e8
kusano 2b45e8
FLAMEPATH	= $(HOME)/flame/lib
kusano 2b45e8
kusano 2b45e8
#ifeq ($(CORE), CELL)
kusano 2b45e8
#CELL_SDK_ROOT = /opt/IBM/cell-sdk-1.1/sysroot/usr
kusano 2b45e8
#SPU_CC	         = spu-gcc
kusano 2b45e8
#EXTRALIB	+= -lspe 
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
ifeq ($(OSNAME), Linux)
kusano 2b45e8
ifdef BINARY64
kusano 2b45e8
# COMPILER_PREFIX = powerpc64-linux-
kusano 2b45e8
else
kusano 2b45e8
# COMPILER_PREFIX = powerpc-linux-
kusano 2b45e8
endif
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifdef BINARY64
kusano 2b45e8
ifeq ($(OSNAME), Linux)
kusano 2b45e8
LDFLAGS		= -m elf64ppc
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifeq ($(OSNAME), Darwin)
kusano 2b45e8
LDFLAGS		= -arch ppc64
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifeq ($(OSNAME), AIX)
kusano 2b45e8
CCOMMON_OPT	+= -mpowerpc64 -maix64
kusano 2b45e8
ifeq ($(COMPILER_F77), g77)
kusano 2b45e8
FCOMMON_OPT	+= -mpowerpc64 -maix64
kusano 2b45e8
endif
kusano 2b45e8
ifeq ($(COMPILER_F77), xlf)
kusano 2b45e8
FCOMMON_OPT	+= -q64
kusano 2b45e8
endif
kusano 2b45e8
ARFLAGS		= -X 64
kusano 2b45e8
LDFLAGS		= -b64
kusano 2b45e8
ASFLAGS		= -a64
kusano 2b45e8
endif
kusano 2b45e8
else
kusano 2b45e8
ifeq ($(OSNAME), Linux)
kusano 2b45e8
LDFLAGS		 = -m elf32ppc
kusano 2b45e8
endif
kusano 2b45e8
ifeq ($(OSNAME), AIX)
kusano 2b45e8
CCOMMON_OPT	+= -Wa,-a32
kusano 2b45e8
ARFLAGS		= -X 32
kusano 2b45e8
LDFLAGS		= -b32
kusano 2b45e8
ASFLAGS		= -a32
kusano 2b45e8
endif
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
# CCOMMON_OPT	+= -maltivec -mabi=altivec 
kusano 2b45e8
kusano 2b45e8
LIBFLAME	= -L$(FLAMEPATH) -llapack2flame -lflame-lapack -lflame-base $(LIBS)
kusano 2b45e8
kusano 2b45e8
ifeq ($(OSNAME), Darwin)
kusano 2b45e8
CCOMMON_OPT	+= -force_cpusubtype_ALL
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
ifndef BINARY64
kusano 2b45e8
ifeq ($(OSNAME), Linux)
kusano 2b45e8
ESSLPATH = -L/opt/ibmcmp/lib -L/opt/ibmcmp/xlf/11.1/lib -Wl,-rpath,/opt/ibmcmp/lib -Wl,-rpath,/opt/ibmcmp/xlf/11.1/lib -lxlf90_r -lxlomp_ser -lxlfmath -lxl -lpthread
kusano 2b45e8
else
kusano 2b45e8
ESSLPATH = -lxlf90_r
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
LIBVECLIB	= -framework VecLib
kusano 2b45e8
ifndef SMP
kusano 2b45e8
LIBATLAS	= -L/usr/lib/atlas3.7.11 -lf77blas -latlas -lg2c -lm 
kusano 2b45e8
LIBESSL		= -lessl $(ESSLPATH) ../../level1/others/libmisc.a -lm
kusano 2b45e8
else
kusano 2b45e8
LIBATLAS	= -L/usr/lib/atlas3.7.11p -lptf77blas -latlas -lm -lpthread
kusano 2b45e8
LIBESSL		= -lesslsmp $(ESSLPATH)  ../../level1/others/libmisc.a -lm
kusano 2b45e8
endif
kusano 2b45e8
else
kusano 2b45e8
ifeq ($(OSNAME), Linux)
kusano 2b45e8
ESSLPATH = -L/opt/ibmcmp/lib64 -Wl,-rpath,/opt/ibmcmp/lib64 -L/opt/ibmcmp/xlf/11.1/lib64 -Wl,-rpath,/opt/ibmcmp/xlf/11.1/lib64 -lxlf90_r -lxlomp_ser
kusano 2b45e8
else
kusano 2b45e8
ESSLPATH = -lxlf90_r
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
LIBVECLIB	= /System/Library/Frameworks/vecLib.framework/Versions/Current/vecLib
kusano 2b45e8
kusano 2b45e8
ifndef SMP
kusano 2b45e8
LIBATLAS	= -L/usr/lib64/atlas3.7.11  -lf77blas -latlas -lg2c -lm 
kusano 2b45e8
LIBESSL		= -lessl $(ESSLPATH) -lm
kusano 2b45e8
else
kusano 2b45e8
LIBATLAS	= -L/usr/lib64/atlas3.7.11p -lptf77blas -latlas -lm -lpthread
kusano 2b45e8
LIBESSL		= -lesslsmp $(ESSLPATH) -lxlsmp -lm
kusano 2b45e8
endif
kusano 2b45e8
endif