2015-08-25 02:03:17 +01:00
|
|
|
include_directories(../../include)
|
2014-06-20 20:00:00 +01:00
|
|
|
|
2015-04-13 19:04:21 +01:00
|
|
|
if (${ARCH} STREQUAL "x86_64")
|
|
|
|
set(
|
|
|
|
RAND_ARCH_SOURCES
|
|
|
|
|
|
|
|
rdrand-x86_64.${ASM_EXT}
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2014-06-20 20:00:00 +01:00
|
|
|
add_library(
|
2015-01-29 00:37:10 +00:00
|
|
|
rand
|
2014-06-20 20:00:00 +01:00
|
|
|
|
2015-01-29 00:37:10 +00:00
|
|
|
OBJECT
|
2014-06-20 20:00:00 +01:00
|
|
|
|
2015-01-29 00:37:10 +00:00
|
|
|
rand.c
|
|
|
|
urandom.c
|
|
|
|
windows.c
|
2015-04-13 19:04:21 +01:00
|
|
|
|
|
|
|
${RAND_ARCH_SOURCES}
|
2014-06-20 20:00:00 +01:00
|
|
|
)
|
2015-04-13 19:04:21 +01:00
|
|
|
|
|
|
|
perlasm(rdrand-x86_64.${ASM_EXT} asm/rdrand-x86_64.pl)
|