diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-03 03:34:00 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-03 03:34:00 +0100 |
commit | eabbb5eb368df3ff606a472bd96a4a4077a214d8 (patch) | |
tree | 211ad12c827a823949b1c5c3cc9dc4343e85ca01 /src/crypto/mac/ghash | |
parent | e7893cc54fb0eaba0cfe88ff44cf52a3f7ff2200 (diff) | |
download | fastd-eabbb5eb368df3ff606a472bd96a4a4077a214d8.tar fastd-eabbb5eb368df3ff606a472bd96a4a4077a214d8.zip |
Improve build system for ciphers and MACs as well
Diffstat (limited to 'src/crypto/mac/ghash')
-rw-r--r-- | src/crypto/mac/ghash/CMakeLists.txt | 20 | ||||
-rw-r--r-- | src/crypto/mac/ghash/builtin/CMakeLists.txt | 3 |
2 files changed, 3 insertions, 20 deletions
diff --git a/src/crypto/mac/ghash/CMakeLists.txt b/src/crypto/mac/ghash/CMakeLists.txt index 7d697e8..7d44b8a 100644 --- a/src/crypto/mac/ghash/CMakeLists.txt +++ b/src/crypto/mac/ghash/CMakeLists.txt @@ -1,18 +1,2 @@ -set(IMPLS "") - -if(WITH_MAC_GHASH_BUILTIN) - list(APPEND IMPLS builtin) -endif(WITH_MAC_GHASH_BUILTIN) - -set(IMPL_SOURCES "") - -foreach(impl ${IMPLS}) - add_subdirectory(${impl}) - - list(APPEND IMPL_SOURCES $<TARGET_OBJECTS:mac_ghash_${impl}>) -endforeach(impl) - - -set(MAC_NAME "ghash" PARENT_SCOPE) -set(IMPLS "${IMPLS}" PARENT_SCOPE) -set(IMPL_SOURCES "${IMPL_SOURCES}" PARENT_SCOPE) +fastd_mac(ghash) +add_subdirectory(builtin) diff --git a/src/crypto/mac/ghash/builtin/CMakeLists.txt b/src/crypto/mac/ghash/builtin/CMakeLists.txt index b7b862a..f5cb130 100644 --- a/src/crypto/mac/ghash/builtin/CMakeLists.txt +++ b/src/crypto/mac/ghash/builtin/CMakeLists.txt @@ -1,4 +1,3 @@ -add_library(mac_ghash_builtin OBJECT +fastd_mac_impl(ghash builtin ghash_builtin.c ) -set_property(TARGET mac_ghash_builtin PROPERTY COMPILE_FLAGS "${FASTD_CFLAGS}") |