Makefile.am 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. AUTOMAKE_OPTIONS = gnu
  2. NAME=srtp
  3. AM_CFLAGS = $(new_AM_CFLAGS) -I./src -Icrypto/include -I$(srcdir)/include -I$(srcdir)/crypto/include
  4. AM_CPPFLAGS = $(AM_CFLAGS)
  5. AM_LDFLAGS = $(new_AM_LDFLAGS) -L.
  6. HMAC_OBJS = @HMAC_OBJS@
  7. RNG_EXTRA_OBJS = @RNG_EXTRA_OBJS@
  8. AES_ICM_OBJS = @AES_ICM_OBJS@
  9. lib_LTLIBRARIES = libsrtp.la libcryptomath.la
  10. libsrtp_la_SOURCES = srtp/srtp.c srtp/ekt.c crypto/cipher/cipher.c crypto/cipher/null_cipher.c \
  11. crypto/hash/null_auth.c crypto/hash/auth.c \
  12. crypto/math/datatypes.c crypto/math/stat.c \
  13. crypto/kernel/crypto_kernel.c crypto/kernel/alloc.c \
  14. crypto/kernel/key.c \
  15. crypto/kernel/err.c \
  16. crypto/replay/rdb.c crypto/replay/rdbx.c crypto/replay/ut_sim.c
  17. libsrtp_la_LDFLAGS = -version-info 1:42:1
  18. EXTRA_DIST=
  19. if ENABLE_OPENSSL
  20. libsrtp_la_SOURCES += crypto/cipher/aes_icm_ossl.c crypto/cipher/aes_gcm_ossl.c
  21. libsrtp_la_SOURCES += crypto/rng/rand_source_ossl.c
  22. libsrtp_la_SOURCES += crypto/hash/hmac_ossl.c
  23. else
  24. libsrtp_la_SOURCES += crypto/hash/sha1.c crypto/hash/hmac.c
  25. libsrtp_la_SOURCES += crypto/cipher/aes_icm.c crypto/cipher/aes.c crypto/cipher/aes_cbc.c
  26. libsrtp_la_SOURCES += crypto/rng/prng.c crypto/rng/ctr_prng.c
  27. if RNG_OBJS_LINUX
  28. libsrtp_la_SOURCES += crypto/rng/rand_linux_kernel.c
  29. EXTRA_DIST += crypto/rng/rand_source.c
  30. else
  31. libsrtp_la_SOURCES += crypto/rng/rand_source.c
  32. endif
  33. endif
  34. if GDOI
  35. libsrtp_la_SOURCES += gdoi/srtp+gdoi.c
  36. endif
  37. libcryptomath_la_SOURCES = crypto/math/math.c crypto/math/gf2_8.c
  38. libcryptomath_la_LDFLAGS = -version-info 1:42:1
  39. library_includedir = $(prefix)/include/srtp
  40. library_include_HEADERS = include/rtp.h include/srtp.h include/ut_sim.h crypto/include/aes_cbc.h crypto/include/auth.h \
  41. crypto/include/crypto_math.h crypto/include/datatypes.h crypto/include/integers.h crypto/include/null_cipher.h \
  42. crypto/include/rdbx.h crypto/include/aes_icm.h crypto/include/cipher.h crypto/include/crypto_types.h \
  43. crypto/include/err.h crypto/include/kernel_compat.h crypto/include/prng.h crypto/include/sha1.h \
  44. crypto/include/aes.h crypto/include/config.h crypto/include/crypto.h crypto/include/gf2_8.h crypto/include/key.h \
  45. crypto/include/rand_source.h crypto/include/stat.h crypto/include/alloc.h crypto/include/crypto_kernel.h \
  46. crypto/include/cryptoalg.h crypto/include/hmac.h crypto/include/null_auth.h crypto/include/rdb.h crypto/include/xfm.h
  47. noinst_PROGRAMS = aes_tables
  48. aes_tables_SOURCES = tables/aes_tables.c
  49. aes_tables_LDADD = libcryptomath.la
  50. pkgconfigdir = $(libdir)/pkgconfig
  51. pkgconfig_DATA = srtp-1.42.pc