| 1 |
# This Makefile.am is in the public domain |
| 2 |
EMPTY_ITEM = |
| 3 |
|
| 4 |
SUBDIRS = . |
| 5 |
|
| 6 |
@HEAVY_TESTS_NOTPARALLEL@ |
| 7 |
|
| 8 |
AM_CPPFLAGS = \ |
| 9 |
-I$(top_srcdir)/src/include \ |
| 10 |
-I$(top_srcdir)/src/microhttpd \ |
| 11 |
-DMHD_CPU_COUNT=$(CPU_COUNT) \ |
| 12 |
-DSRCDIR=\"$(srcdir)\" \ |
| 13 |
$(CPPFLAGS_ac) $(LIBCURL_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) |
| 14 |
|
| 15 |
AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@ |
| 16 |
|
| 17 |
AM_LDFLAGS = $(LDFLAGS_ac) |
| 18 |
|
| 19 |
AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac) |
| 20 |
|
| 21 |
if USE_COVERAGE |
| 22 |
AM_CFLAGS += --coverage |
| 23 |
endif |
| 24 |
|
| 25 |
$(top_builddir)/src/microhttpd/libmicrohttpd.la: $(top_builddir)/src/microhttpd/Makefile |
| 26 |
@echo ' cd $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la'; \ |
| 27 |
$(am__cd) $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la |
| 28 |
|
| 29 |
LDADD = \ |
| 30 |
$(top_builddir)/src/microhttpd/libmicrohttpd.la \ |
| 31 |
$(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@ |
| 32 |
|
| 33 |
if HAVE_GNUTLS_SNI |
| 34 |
TEST_HTTPS_SNI = test_https_sni |
| 35 |
endif |
| 36 |
|
| 37 |
if !HAVE_GNUTLS_MTHREAD_BROKEN |
| 38 |
HTTPS_PARALLEL_TESTS = \ |
| 39 |
test_https_time_out \ |
| 40 |
test_https_get_parallel \ |
| 41 |
test_https_get_parallel_threads |
| 42 |
endif |
| 43 |
|
| 44 |
THREAD_ONLY_TESTS = \ |
| 45 |
test_tls_options \ |
| 46 |
test_tls_authentication \ |
| 47 |
$(HTTPS_PARALLEL_TESTS) \ |
| 48 |
$(TEST_HTTPS_SNI) \ |
| 49 |
test_https_session_info \ |
| 50 |
test_https_session_info_append \ |
| 51 |
test_https_multi_daemon \ |
| 52 |
test_https_get \ |
| 53 |
test_empty_response \ |
| 54 |
test_https_get_iovec \ |
| 55 |
$(EMPTY_ITEM) |
| 56 |
|
| 57 |
check_PROGRAMS = \ |
| 58 |
test_https_get_select |
| 59 |
|
| 60 |
if USE_THREADS |
| 61 |
check_PROGRAMS += \ |
| 62 |
$(THREAD_ONLY_TESTS) |
| 63 |
endif |
| 64 |
|
| 65 |
EXTRA_DIST = \ |
| 66 |
test-ca.crt test-ca.key \ |
| 67 |
mhdhost1.crt mhdhost1.key \ |
| 68 |
mhdhost2.crt mhdhost2.key |
| 69 |
|
| 70 |
TESTS = \ |
| 71 |
$(check_PROGRAMS) |
| 72 |
|
| 73 |
|
| 74 |
test_https_time_out_SOURCES = \ |
| 75 |
test_https_time_out.c \ |
| 76 |
tls_test_keys.h \ |
| 77 |
tls_test_common.h \ |
| 78 |
tls_test_common.c |
| 79 |
|
| 80 |
test_tls_options_SOURCES = \ |
| 81 |
test_tls_options.c \ |
| 82 |
tls_test_keys.h \ |
| 83 |
tls_test_common.h \ |
| 84 |
tls_test_common.c |
| 85 |
|
| 86 |
test_https_get_parallel_SOURCES = \ |
| 87 |
test_https_get_parallel.c \ |
| 88 |
tls_test_keys.h \ |
| 89 |
tls_test_common.h \ |
| 90 |
tls_test_common.c |
| 91 |
test_https_get_parallel_CFLAGS = \ |
| 92 |
$(AM_CFLAGS) $(PTHREAD_CFLAGS) |
| 93 |
test_https_get_parallel_LDADD = \ |
| 94 |
$(PTHREAD_LIBS) $(LDADD) |
| 95 |
|
| 96 |
test_empty_response_SOURCES = \ |
| 97 |
test_empty_response.c \ |
| 98 |
tls_test_keys.h \ |
| 99 |
tls_test_common.h \ |
| 100 |
tls_test_common.c |
| 101 |
|
| 102 |
test_https_get_parallel_threads_SOURCES = \ |
| 103 |
test_https_get_parallel_threads.c \ |
| 104 |
tls_test_keys.h \ |
| 105 |
tls_test_common.h \ |
| 106 |
tls_test_common.c |
| 107 |
test_https_get_parallel_threads_CFLAGS = \ |
| 108 |
$(AM_CFLAGS) $(PTHREAD_CFLAGS) |
| 109 |
test_https_get_parallel_threads_LDADD = \ |
| 110 |
$(PTHREAD_LIBS) $(LDADD) |
| 111 |
|
| 112 |
test_tls_authentication_SOURCES = \ |
| 113 |
test_tls_authentication.c \ |
| 114 |
tls_test_keys.h \ |
| 115 |
tls_test_common.h \ |
| 116 |
tls_test_common.c |
| 117 |
|
| 118 |
test_https_session_info_SOURCES = \ |
| 119 |
test_https_session_info.c \ |
| 120 |
tls_test_keys.h \ |
| 121 |
tls_test_common.h \ |
| 122 |
tls_test_common.c |
| 123 |
|
| 124 |
test_https_session_info_append_SOURCES = $(test_https_session_info_SOURCES) |
| 125 |
|
| 126 |
test_https_multi_daemon_SOURCES = \ |
| 127 |
test_https_multi_daemon.c \ |
| 128 |
tls_test_keys.h \ |
| 129 |
tls_test_common.h \ |
| 130 |
tls_test_common.c |
| 131 |
|
| 132 |
test_https_get_SOURCES = \ |
| 133 |
test_https_get.c \ |
| 134 |
tls_test_keys.h \ |
| 135 |
tls_test_common.h \ |
| 136 |
tls_test_common.c |
| 137 |
|
| 138 |
test_https_get_iovec_SOURCES = \ |
| 139 |
test_https_get_iovec.c \ |
| 140 |
tls_test_keys.h \ |
| 141 |
tls_test_common.h \ |
| 142 |
tls_test_common.c |
| 143 |
|
| 144 |
test_https_sni_SOURCES = \ |
| 145 |
test_https_sni.c \ |
| 146 |
tls_test_keys.h \ |
| 147 |
tls_test_common.h \ |
| 148 |
tls_test_common.c |
| 149 |
|
| 150 |
test_https_get_select_SOURCES = \ |
| 151 |
test_https_get_select.c \ |
| 152 |
tls_test_keys.h \ |
| 153 |
tls_test_common.h \ |
| 154 |
tls_test_common.c |