Add kernel/Makefile.LA to CMake
@@ -464,6 +464,30 @@ function (build_core TARGET_CORE KDIR TSUFFIX KERNEL_DEFINITIONS)
GenerateNamedObjects("${KERNELDIR}/${${float_char}GEADD_KERNEL}" "" "geadd_k" false "" "" false ${float_type})
endforeach ()
+ # Makefile.LA
+ if(NOT NO_LAPACK)
+ foreach (float_type ${FLOAT_TYPES})
+ if (NOT DEFINED ${float_char}NEG_TCOPY)
+ if (${float_char} STREQUAL "Z" OR ${float_char} STREQUAL "C" OR ${float_char} STREQUAL "X")
+ set(${float_char}NEG_TCOPY ../generic/zneg_tcopy.c)
+ else ()
+ set(${float_char}NEG_TCOPY ../generic/neg_tcopy.c)
+ endif ()
+ endif ()
+
+ if (NOT DEFINED ${float_char}LASWP_NCOPY)
+ if (${float_char} STREQUAL "Z" OR ${float_char} STREQUAL "C" OR ${float_char} STREQUAL "X")
+ set(${float_char}LASWP_NCOPY ../generic/zlaswp_ncopy.c)
+ else ()
+ set(${float_char}LASWP_NCOPY ../generic/laswp_ncopy.c)
+ endif ()
+ endif ()
+ string(SUBSTRING ${float_type} 0 1 float_char)
+ GenerateNamedObjects("${KERNELDIR}/${${float_char}NEG_TCOPY}_${${float_char}GEMM_UNROLL_M}" "" "neg_tcopy" false "" "" false ${float_type})
+ GenerateNamedObjects("${KERNELDIR}/${${float_char}LASWP_NCOPY}_${${float_char}GEMM_UNROLL_N}" "" "laswp_ncopy" false "" "" false ${float_type})
+ endforeach()
+ endif()
+
if (${DYNAMIC_ARCH})
set(SETPARAM_TARGET_DIR ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY})
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/setparam-ref.c SETPARAM_REF_CONTENTS)
@@ -484,9 +508,6 @@ function (build_core TARGET_CORE KDIR TSUFFIX KERNEL_DEFINITIONS)
file(REMOVE ${SETPARAM_TARGET_DIR}/kernel${TSUFFIX}.tmp)
endif ()
- # Makefile.LA
- #DBLASOBJS += dneg_tcopy$(TSUFFIX).$(SUFFIX) dlaswp_ncopy$(TSUFFIX).$(SUFFIX)
-
add_library(kernel${TSUFFIX} OBJECT ${OPENBLAS_SRC})
set_target_properties(kernel${TSUFFIX} PROPERTIES COMPILE_FLAGS "${KERNEL_DEFINITIONS}")
get_target_property(KERNEL_INCLUDE_DIRECTORIES kernel${TSUFFIX} INCLUDE_DIRECTORIES)
