Kenny Root | b849459 | 2015-09-25 02:29:14 +0000 | [diff] [blame] | 1 | include_directories(../../include) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 2 | |
Adam Langley | fad6327 | 2015-11-12 12:15:39 -0800 | [diff] [blame] | 3 | if (${ARCH} STREQUAL "x86_64") |
4 | set( | ||||
5 | EC_ARCH_SOURCES | ||||
6 | |||||
7 | p256-x86_64-asm.${ASM_EXT} | ||||
8 | ) | ||||
9 | endif() | ||||
10 | |||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 11 | add_library( |
12 | ec | ||||
13 | |||||
14 | OBJECT | ||||
15 | |||||
16 | ec.c | ||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 17 | ec_asn1.c |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 18 | ec_key.c |
19 | ec_montgomery.c | ||||
20 | oct.c | ||||
Kenny Root | e99801b | 2015-11-06 15:31:15 -0800 | [diff] [blame] | 21 | p224-64.c |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 22 | p256-64.c |
Adam Langley | fad6327 | 2015-11-12 12:15:39 -0800 | [diff] [blame] | 23 | p256-x86_64.c |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 24 | simple.c |
Adam Langley | fad6327 | 2015-11-12 12:15:39 -0800 | [diff] [blame] | 25 | util-64.c |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 26 | wnaf.c |
Adam Langley | fad6327 | 2015-11-12 12:15:39 -0800 | [diff] [blame] | 27 | |
28 | ${EC_ARCH_SOURCES} | ||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 29 | ) |
30 | |||||
Adam Langley | fad6327 | 2015-11-12 12:15:39 -0800 | [diff] [blame] | 31 | perlasm(p256-x86_64-asm.${ASM_EXT} asm/p256-x86_64-asm.pl) |
32 | |||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 33 | add_executable( |
34 | example_mul | ||||
35 | |||||
36 | example_mul.c | ||||
Adam Langley | f4e4272 | 2015-06-04 17:45:09 -0700 | [diff] [blame] | 37 | |
38 | $<TARGET_OBJECTS:test_support> | ||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 39 | ) |
40 | |||||
41 | add_executable( | ||||
Steven Valdez | 909b19f | 2016-11-21 15:35:44 -0500 | [diff] [blame] | 42 | p256-x86_64_test |
43 | |||||
44 | p256-x86_64_test.cc | ||||
45 | |||||
46 | $<TARGET_OBJECTS:test_support> | ||||
47 | ) | ||||
48 | |||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 49 | target_link_libraries(example_mul crypto) |
Steven Valdez | 909b19f | 2016-11-21 15:35:44 -0500 | [diff] [blame] | 50 | target_link_libraries(p256-x86_64_test crypto) |
Robert Sloan | a94fe05 | 2017-02-21 08:49:28 -0800 | [diff] [blame] | 51 | add_dependencies(all_tests example_mul p256-x86_64_test) |