|
kusano |
2b45e8 |
TOPDIR = ../..
|
|
kusano |
2b45e8 |
include ../../Makefile.system
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
COMMONOBJS = memory.$(SUFFIX) xerbla.$(SUFFIX) c_abs.$(SUFFIX) z_abs.$(SUFFIX)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
COMMONOBJS += slamch.$(SUFFIX) slamc3.$(SUFFIX) dlamch.$(SUFFIX) dlamc3.$(SUFFIX)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifdef SMP
|
|
kusano |
2b45e8 |
COMMONOBJS += blas_server.$(SUFFIX) divtable.$(SUFFIX) blasL1thread.$(SUFFIX) openblas_set_num_threads.$(SUFFIX)
|
|
kusano |
2b45e8 |
ifndef NO_AFFINITY
|
|
kusano |
2b45e8 |
COMMONOBJS += init.$(SUFFIX)
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
# COMMONOBJS += info.$(SUFFIX)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifdef DYNAMIC_ARCH
|
|
kusano |
2b45e8 |
COMMONOBJS += dynamic.$(SUFFIX)
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
COMMONOBJS += parameter.$(SUFFIX)
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifdef EXPRECISION
|
|
kusano |
2b45e8 |
COMMONOBJS += x_abs.$(SUFFIX) qlamch.$(SUFFIX) qlamc3.$(SUFFIX)
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifdef QUAD_PRECISION
|
|
kusano |
2b45e8 |
COMMONOBJS += addx.$(SUFFIX) mulx.$(SUFFIX)
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(OSNAME), CYGWIN_NT)
|
|
kusano |
2b45e8 |
ifeq ($(C_COMPILER), PGI)
|
|
kusano |
2b45e8 |
# COMMONOBJS += __builtin_stinit.$(SUFFIX)
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifdef USE_CUDA
|
|
kusano |
2b45e8 |
COMMONOBJS += cuda_init.$(SUFFIX)
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifdef FUNCTION_PROFILE
|
|
kusano |
2b45e8 |
COMMONOBJS += profile.$(SUFFIX)
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LIBOTHERS = libothers.$(LIBSUFFIX)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(CORE), PPC440)
|
|
kusano |
2b45e8 |
MEMORY = memory_qalloc.c
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifndef MEMORY
|
|
kusano |
2b45e8 |
MEMORY = memory.c
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(USE_OPENMP), 1)
|
|
kusano |
2b45e8 |
BLAS_SERVER = blas_server_omp.c
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
ifeq ($(OSNAME), WINNT)
|
|
kusano |
2b45e8 |
BLAS_SERVER = blas_server_win32.c
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
ifeq ($(OSNAME), CYGWIN_NT)
|
|
kusano |
2b45e8 |
BLAS_SERVER = blas_server_win32.c
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
ifeq ($(OSNAME), Interix)
|
|
kusano |
2b45e8 |
BLAS_SERVER = blas_server_win32.c
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifndef BLAS_SERVER
|
|
kusano |
2b45e8 |
BLAS_SERVER = blas_server.c
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifdef DYNAMIC_ARCH
|
|
kusano |
2b45e8 |
HPLOBJS = memory.$(SUFFIX) xerbla.$(SUFFIX) dynamic.$(SUFFIX)
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
HPLOBJS = memory.$(SUFFIX) xerbla.$(SUFFIX) parameter.$(SUFFIX)
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
xerbla.$(SUFFIX) : xerbla.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
dynamic.$(SUFFIX) : dynamic.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
dynamic.$(PSUFFIX) : dynamic.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
parameter.$(SUFFIX) : parameter.c ../../param.h
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
init.$(SUFFIX) : init.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
profile.$(SUFFIX) : profile.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
memory.$(SUFFIX) : $(MEMORY) ../../common.h ../../param.h
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blas_server.$(SUFFIX) : $(BLAS_SERVER) ../../common.h ../../common_thread.h ../../param.h
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
openblas_set_num_threads.$(SUFFIX) : openblas_set_num_threads.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blasL1thread.$(SUFFIX) : blas_l1_thread.c ../../common.h ../../common_thread.h
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cuda_init.$(SUFFIX) : cuda_init.c
|
|
kusano |
2b45e8 |
$(CUCC) $(COMMON_OPT) -I$(TOPDIR) $(CUFLAGS) -DCNAME=$(*F) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
c_abs.$(SUFFIX) : abs.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -UDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
z_abs.$(SUFFIX) : abs.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -DDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
x_abs.$(SUFFIX) : abs.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -DXDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
slamch.$(SUFFIX) : lamch.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -UDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
dlamch.$(SUFFIX) : lamch.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -DDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
qlamch.$(SUFFIX) : lamch.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -DXDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
slamc3.$(SUFFIX) : lamc3.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -UDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
dlamc3.$(SUFFIX) : lamc3.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -DDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
qlamc3.$(SUFFIX) : lamc3.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -DXDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
divtable.$(SUFFIX) : divtable.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -UDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
__builtin_stinit.$(SUFFIX) : $(ARCH)/builtin_stinit.S
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -UDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addx.$(SUFFIX) : $(ARCH)/addx.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -DXDOUBLE -UCOMPLEX $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulx.$(SUFFIX) : $(ARCH)/mulx.c
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c -DXDOUBLE -UCOMPLEX $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
xerbla.$(PSUFFIX) : xerbla.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
parameter.$(PSUFFIX) : parameter.c ../../param.h
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
init.$(PSUFFIX) : init.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
profile.$(PSUFFIX) : profile.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
memory.$(PSUFFIX) : $(MEMORY) ../../common.h ../../param.h
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blas_server.$(PSUFFIX) : $(BLAS_SERVER) ../../common.h ../../common_thread.h
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blasL1thread.$(PSUFFIX) : blas_l1_thread.c ../../common.h ../../common_thread.h
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cuda_init.$(PSUFFIX) : cuda_init.c
|
|
kusano |
2b45e8 |
$(CUCC) $(COMMON_OPT) -I$(TOPDIR) $(CUFLAGS) -DCNAME=$(*F) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
c_abs.$(PSUFFIX) : abs.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -UDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
z_abs.$(PSUFFIX) : abs.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -DDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
x_abs.$(PSUFFIX) : abs.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -DXDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
slamch.$(PUFFIX) : lamch.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -UDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
dlamch.$(PUFFIX) : lamch.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -DDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
qlamch.$(PUFFIX) : lamch.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -DXDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
slamc3.$(PUFFIX) : lamc3.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -UDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
dlamc3.$(PUFFIX) : lamc3.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -DDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
qlamc3.$(PUFFIX) : lamc3.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -DXDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
divtable.$(PSUFFIX) : divtable.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -UDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
__builtin_stinit.$(PPSUFFIX) : $(ARCH)/builtin_stinit.S
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -UDOUBLE $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addx.$(PSUFFIX) : $(ARCH)/addx.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -DXDOUBLE -UCOMPLEX $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulx.$(PSUFFIX) : $(ARCH)/mulx.c
|
|
kusano |
2b45e8 |
$(CC) $(PFLAGS) -c -DXDOUBLE -UCOMPLEX $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
info.$(SUFFIX) : info.c info.h ../../common.h ../../param.h
|
|
kusano |
2b45e8 |
$(CC) $(CFLAGS) -c $< -o $(@F)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
hpl : CFLAGS += -DHPL
|
|
kusano |
2b45e8 |
hpl_p : CFLAGS += -DHPL
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
include $(TOPDIR)/Makefile.tail
|