Makefile.am 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. AM_CPPFLAGS = \
  2. -I$(top_srcdir)/src/libstrongswan \
  3. -I$(top_srcdir)/src/libstrongswan/math/libnttfft
  4. AM_CFLAGS = \
  5. $(PLUGIN_CFLAGS)
  6. # these file are also used by bliss_huffman
  7. noinst_LTLIBRARIES = libbliss-params.la
  8. libbliss_params_la_SOURCES = \
  9. bliss_param_set.h bliss_param_set.c
  10. libbliss_params_la_LIBADD = \
  11. $(top_builddir)/src/libstrongswan/math/libnttfft/libnttfft.la
  12. # these files are also used by the tests, we can't directly refer to them
  13. # because of the subdirectory, which would cause distclean to fail
  14. noinst_LTLIBRARIES += libbliss.la
  15. libbliss_la_SOURCES = \
  16. bliss_private_key.h bliss_private_key.c \
  17. bliss_public_key.h bliss_public_key.c \
  18. bliss_signature.h bliss_signature.c \
  19. bliss_utils.h bliss_utils.c \
  20. bliss_bitpacker.h bliss_bitpacker.c \
  21. bliss_huffman_code.h bliss_huffman_code.c \
  22. bliss_huffman_code_1.c bliss_huffman_code_3.c bliss_huffman_code_4.c \
  23. bliss_huffman_coder.h bliss_huffman_coder.c \
  24. bliss_sampler.h bliss_sampler.c
  25. libbliss_la_LIBADD = \
  26. $(top_builddir)/src/libstrongswan/math/libnttfft/libnttfft.la \
  27. libbliss-params.la
  28. if MONOLITHIC
  29. noinst_LTLIBRARIES += libstrongswan-bliss.la
  30. else
  31. plugin_LTLIBRARIES = libstrongswan-bliss.la
  32. endif
  33. libstrongswan_bliss_la_SOURCES = \
  34. bliss_plugin.h bliss_plugin.c
  35. libstrongswan_bliss_la_LDFLAGS = -module -avoid-version
  36. libstrongswan_bliss_la_LIBADD = libbliss.la
  37. noinst_PROGRAMS = bliss_huffman
  38. bliss_huffman_SOURCES = bliss_huffman.c
  39. bliss_huffman_LDADD = -lm \
  40. $(top_builddir)/src/libstrongswan/math/libnttfft/libnttfft.la \
  41. libbliss-params.la
  42. recreate-bliss-huffman : bliss_huffman bliss_huffman_code.h
  43. $(AM_V_GEN) \
  44. ./bliss_huffman 1 8 > $(srcdir)/bliss_huffman_code_1.c 2>/dev/null
  45. $(AM_V_GEN) \
  46. ./bliss_huffman 3 16 > $(srcdir)/bliss_huffman_code_3.c 2>/dev/null
  47. $(AM_V_GEN) \
  48. ./bliss_huffman 4 32 > $(srcdir)/bliss_huffman_code_4.c 2>/dev/null