Makefile.am (2492B)
1 # This Makefile.am is in the public domain 2 # src/tests/unit/Makefile.am 3 EMPTY_ITEM = 4 5 H2_SRC_DIR = $(srcdir)/../../mhd2/h2 6 HPACK_SRC_DIR = $(H2_SRC_DIR)/hpack 7 8 AM_CPPFLAGS = \ 9 -I$(top_srcdir)/src/mhd2 \ 10 -I$(top_srcdir)/src/incl_priv \ 11 -I$(top_srcdir)/src/include \ 12 -I$(top_srcdir)/src/tests \ 13 -DMHD_CPU_COUNT=$(CPU_COUNT) \ 14 -DMHD_UNIT_TESTING \ 15 $(CPPFLAGS_ac)\ 16 $(MHD_LIB_CPPFLAGS) \ 17 $(MHD_TLS_LIB_CPPFLAGS) 18 19 AM_CFLAGS = $(CFLAGS_ac) $(MHD_LIB_CFLAGS) 20 21 AM_LDFLAGS = $(LDFLAGS_ac) \ 22 $(MHD_LIB_LDFLAGS) \ 23 $(MHD_TLS_LIBDEPS) 24 25 AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac) 26 27 if USE_COVERAGE 28 AM_CFLAGS += -fprofile-arcs -ftest-coverage 29 endif 30 31 LDADD = $(MHD_LIBDEPS) 32 33 check_PROGRAMS = \ 34 unit_str_base64 \ 35 unit_str_bin_hex \ 36 unit_str_compare \ 37 unit_str_from_value \ 38 unit_str_quote \ 39 unit_str_to_value \ 40 unit_str_token \ 41 unit_str_token_remove \ 42 unit_str_tokens_remove \ 43 unit_str_pct \ 44 unit_str 45 46 if MHD_SUPPORT_HTTP2 47 check_PROGRAMS += \ 48 unit_h2_huffman_encode \ 49 unit_h2_huffman_decode \ 50 unit_hpack_tables_dynamic \ 51 unit_hpack_tables_static \ 52 unit_hpack_tables_combined \ 53 $(EMPTY_ITEM) 54 endif 55 56 if MHD_SUPPORT_MD5 57 check_PROGRAMS += \ 58 unit_md5 59 endif 60 61 if MHD_SUPPORT_SHA256 62 check_PROGRAMS += \ 63 unit_sha256 64 endif 65 66 if MHD_SUPPORT_SHA512_256 67 check_PROGRAMS += \ 68 unit_sha512_256 69 endif 70 71 TESTS = $(check_PROGRAMS) 72 73 unit_str_SOURCES = unit_str.c 74 75 unit_str_compare_SOURCES = \ 76 unit_str_compare.c \ 77 $(srcdir)/../mhdt_has_in_name.h 78 79 unit_str_to_value_SOURCES = \ 80 unit_str_to_value.c \ 81 $(srcdir)/../mhdt_has_in_name.h 82 83 unit_str_from_value_SOURCES = \ 84 unit_str_from_value.c \ 85 $(srcdir)/../mhdt_has_in_name.h 86 87 unit_str_token_SOURCES = \ 88 unit_str_token.c 89 90 unit_str_token_remove_SOURCES = \ 91 unit_str_token_remove.c 92 93 unit_str_tokens_remove_SOURCES = \ 94 unit_str_tokens_remove.c 95 96 unit_h2_huffman_encode_SOURCES = \ 97 unit_h2_huffman_codec.c \ 98 $(srcdir)/../mhdt_has_in_name.h \ 99 $(srcdir)/../mhdt_has_param.h \ 100 $(HPACK_SRC_DIR)/h2_huffman_codec.c 101 102 unit_h2_huffman_decode_SOURCES = $(unit_h2_huffman_encode_SOURCES) 103 104 unit_hpack_tables_dynamic_SOURCES = \ 105 unit_hpack_tables.c \ 106 $(srcdir)/../mhdt_has_in_name.h \ 107 $(srcdir)/../mhdt_has_param.h \ 108 $(srcdir)/../mhdt_checks.h 109 110 unit_hpack_tables_static_SOURCES = $(unit_hpack_tables_dynamic_SOURCES) 111 112 unit_hpack_tables_combined_SOURCES = $(unit_hpack_tables_dynamic_SOURCES) 113 114 115 unit_md5_SOURCES = unit_md5.c 116 117 unit_sha256_SOURCES = unit_sha256.c 118 119 unit_sha512_256_SOURCES = unit_sha512_256.c