1 # This Makefile.am is in the public domain 2 SUBDIRS = . 3 4 if USE_COVERAGE 5 AM_CFLAGS = --coverage 6 endif 7 8 if HAVE_GNUTLS_SNI 9 TEST_HTTPS_SNI = test_https_sni 10 endif 11 12 if HAVE_POSIX_THREADS 13 HTTPS_PARALLEL_TESTS = test_https_get_parallel \ 14 test_https_get_parallel_threads 15 endif 16 17 CPU_COUNT_DEF = -DCPU_COUNT=$(CPU_COUNT) 18 19 AM_CPPFLAGS = \ 20 -I$(top_srcdir)/src/include \ 21 -I$(top_srcdir)/src/microhttpd \ 22 -I$(top_srcdir)/src/platform \ 23 $(LIBCURL_CPPFLAGS) $(GNUTLS_CPPFLAGS) 24 25 check_PROGRAMS = \ 26 test_tls_options \ 27 test_tls_authentication \ 28 test_https_multi_daemon \ 29 test_https_get \ 30 $(TEST_HTTPS_SNI) \ 31 test_https_get_select \ 32 $(HTTPS_PARALLEL_TESTS) \ 33 test_https_session_info \ 34 test_https_time_out \ 35 test_empty_response 36 37 EXTRA_DIST = cert.pem key.pem tls_test_keys.h tls_test_common.h \ 38 host1.crt host1.key host2.crt host2.key 39 40 TESTS = \ 41 test_tls_options \ 42 test_https_multi_daemon \ 43 test_https_get \ 44 $(TEST_HTTPS_SNI) \ 45 test_https_get_select \ 46 $(HTTPS_PARALLEL_TESTS) \ 47 test_https_session_info \ 48 test_https_time_out \ 49 test_tls_authentication \ 50 test_empty_response 51 52 53 test_https_time_out_SOURCES = \ 54 test_https_time_out.c \ 55 tls_test_common.c 56 test_https_time_out_LDADD = \ 57 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 58 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 59 $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@ 60 61 test_tls_options_SOURCES = \ 62 test_tls_options.c \ 63 tls_test_common.c 64 test_tls_options_LDADD = \ 65 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 66 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 67 $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@ 68 69 test_https_get_parallel_SOURCES = \ 70 test_https_get_parallel.c \ 71 tls_test_common.c 72 test_https_get_parallel_CPPFLAGS = \ 73 $(AM_CPPFLAGS) $(CPU_COUNT_DEF) 74 test_https_get_parallel_CFLAGS = \ 75 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 76 test_https_get_parallel_LDADD = \ 77 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 78 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 79 $(PTHREAD_LIBS) $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@ 80 81 test_empty_response_SOURCES = \ 82 test_empty_response.c \ 83 tls_test_common.c 84 test_empty_response_LDADD = \ 85 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 86 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 87 $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@ 88 89 test_https_get_parallel_threads_SOURCES = \ 90 test_https_get_parallel_threads.c \ 91 tls_test_common.c 92 test_https_get_parallel_threads_CPPFLAGS = \ 93 $(AM_CPPFLAGS) $(CPU_COUNT_DEF) 94 test_https_get_parallel_threads_CFLAGS = \ 95 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 96 test_https_get_parallel_threads_LDADD = \ 97 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 98 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 99 $(PTHREAD_LIBS) $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@ 100 101 test_tls_authentication_SOURCES = \ 102 test_tls_authentication.c \ 103 tls_test_common.c 104 test_tls_authentication_LDADD = \ 105 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 106 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 107 $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@ 108 109 test_https_session_info_SOURCES = \ 110 test_https_session_info.c \ 111 tls_test_common.c 112 test_https_session_info_LDADD = \ 113 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 114 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 115 $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@ 116 117 test_https_multi_daemon_SOURCES = \ 118 test_https_multi_daemon.c \ 119 tls_test_common.c 120 test_https_multi_daemon_LDADD = \ 121 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 122 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 123 $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@ 124 125 test_https_get_SOURCES = \ 126 test_https_get.c \ 127 tls_test_common.c 128 test_https_get_LDADD = \ 129 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 130 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 131 $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@ 132 133 if HAVE_GNUTLS_SNI 134 test_https_sni_SOURCES = \ 135 test_https_sni.c \ 136 tls_test_common.c 137 test_https_sni_CPPFLAGS = \ 138 $(AM_CPPFLAGS) \ 139 -DABS_SRCDIR=\"$(abs_srcdir)\" 140 test_https_sni_LDADD = \ 141 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 142 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 143 $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@ 144 endif 145 146 test_https_get_select_SOURCES = \ 147 test_https_get_select.c \ 148 tls_test_common.c 149 test_https_get_select_LDADD = \ 150 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 151 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 152 $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@ 153 154