diff options
Diffstat (limited to 'src/crypto/rc4/CMakeLists.txt')
-rw-r--r-- | src/crypto/rc4/CMakeLists.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/crypto/rc4/CMakeLists.txt b/src/crypto/rc4/CMakeLists.txt new file mode 100644 index 0000000..fe2d0c6 --- /dev/null +++ b/src/crypto/rc4/CMakeLists.txt @@ -0,0 +1,31 @@ +include_directories(. .. ../../include) + +if (${ARCH} STREQUAL "x86_64") + set( + RC4_ARCH_SOURCES + + rc4-x86_64.${ASM_EXT} + rc4-md5-x86_64.${ASM_EXT} + ) +endif() + +if (${ARCH} STREQUAL "x86") + set( + RC4_ARCH_SOURCES + + rc4-586.${ASM_EXT} + ) +endif() + +add_library( + rc4 + + OBJECT + + rc4.c + ${RC4_ARCH_SOURCES} +) + +perlasm(rc4-x86_64.${ASM_EXT} asm/rc4-x86_64.pl) +perlasm(rc4-md5-x86_64.${ASM_EXT} asm/rc4-md5-x86_64.pl) +perlasm(rc4-586.${ASM_EXT} asm/rc4-586.pl) |