summaryrefslogtreecommitdiffstats
path: root/src/crypto/rand/CMakeLists.txt
blob: 35d5290bc29c0457a55271e4afc593474fe15058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
include_directories(../../include)

if (${ARCH} STREQUAL "x86_64")
  set(
    RAND_ARCH_SOURCES

    rdrand-x86_64.${ASM_EXT}
  )
endif()

add_library(
  rand

  OBJECT

  rand.c
  urandom.c
  windows.c
  hwrand.c

  ${RAND_ARCH_SOURCES}
)

perlasm(rdrand-x86_64.${ASM_EXT} asm/rdrand-x86_64.pl)