include $(top_srcdir)/common.mk

noinst_LTLIBRARIES = libspml_lumatrix.la
EXTRA_DIST = \
	lumatrix_vec.f90 \
	lumatrix_omp.f90 \
	lumatrix.f90 \
	lumatrix_lapack.f90 \
	lumatrix_ssl2.f90 \
	lumatrix_ssl2tp.f90 \
	lumatrix_cuda.cuf

if LU_VEC
libspml_lumatrix_la_SOURCES = lumatrix_vec.f90 lumatrix.f90
lumatrix.lo: lumatrix_vec.lo
endif
if LU_SSL2
libspml_lumatrix_la_SOURCES = lumatrix_ssl2.f90
endif
if LU_SSL2TP
libspml_lumatrix_la_SOURCES = lumatrix_ssl2tp.f90
endif
if LU_LAPACK
libspml_lumatrix_la_SOURCES = lumatrix_lapack.f90
endif
if LU_CUDA
libspml_lumatrix_la_SOURCES = lumatrix_cuda.cuf lumatrix.f90
lumatrix.lo: lumatrix_cuda.lo
.cuf.lo:
	$(LTFCCOMPILE) -c -o $@ $(FCFLAGS_f90) $<
endif
if LU_OMP
libspml_lumatrix_la_SOURCES = lumatrix_omp.f90 lumatrix.f90
lumatrix.lo: lumatrix_omp.lo
endif
