1 # This Makefile.am is in the public domain 2 SUBDIRS = . 3 4 AM_CFLAGS = -DDATA_DIR=\"$(top_srcdir)/src/datadir/\" 5 6 if USE_COVERAGE 7 AM_CFLAGS += -fprofile-arcs -ftest-coverage 8 endif 9 10 AM_CPPFLAGS = \ 11 -I$(top_srcdir) \ 12 -I$(top_srcdir)/src/include \ 13 -I$(top_srcdir)/src/applicationlayer \ 14 $(LIBCURL_CPPFLAGS) 15 16 if !HAVE_W32 17 PERF_GET_CONCURRENT=perf_get_concurrent 18 endif 19 20 if ENABLE_SPDY 21 if HAVE_OPENSSL 22 check_PROGRAMS = \ 23 test_daemon_start_stop \ 24 test_daemon_start_stop_many \ 25 test_struct_namevalue 26 27 if HAVE_SPDYLAY 28 check_PROGRAMS += \ 29 test_new_connection \ 30 test_request_response \ 31 test_notls \ 32 test_request_response_with_callback \ 33 test_misc \ 34 test_session_timeout 35 #test_requests_with_assets 36 if HAVE_CURL_BINARY 37 check_PROGRAMS += \ 38 test_proxies 39 endif 40 endif 41 endif 42 endif 43 44 45 TESTS = $(check_PROGRAMS) 46 47 48 SPDY_SOURCES= \ 49 common.h common.c 50 51 SPDY_LDADD= \ 52 $(top_builddir)/src/microspdy/libmicrospdy.la \ 53 -lz 54 55 test_daemon_start_stop_SOURCES = \ 56 test_daemon_start_stop.c \ 57 $(SPDY_SOURCES) 58 test_daemon_start_stop_LDADD = $(SPDY_LDADD) 59 60 test_daemon_start_stop_many_SOURCES = \ 61 test_daemon_start_stop_many.c \ 62 $(SPDY_SOURCES) 63 test_daemon_start_stop_many_LDADD = $(SPDY_LDADD) 64 65 test_struct_namevalue_SOURCES = \ 66 test_struct_namevalue.c \ 67 $(SPDY_SOURCES) 68 test_struct_namevalue_LDADD = $(SPDY_LDADD) 69 70 if HAVE_SPDYLAY 71 test_new_connection_SOURCES = \ 72 test_new_connection.c \ 73 $(SPDY_SOURCES) 74 test_new_connection_LDADD = $(SPDY_LDADD) \ 75 -lspdylay 76 77 test_request_response_SOURCES = \ 78 test_request_response.c \ 79 $(SPDY_SOURCES) 80 test_request_response_LDADD = $(SPDY_LDADD) \ 81 -lspdylay 82 83 test_notls_SOURCES = \ 84 test_notls.c \ 85 $(SPDY_SOURCES) 86 test_notls_LDADD = $(SPDY_LDADD) \ 87 -lspdylay 88 89 test_request_response_with_callback_SOURCES = \ 90 test_request_response_with_callback.c \ 91 $(SPDY_SOURCES) 92 test_request_response_with_callback_LDADD = $(SPDY_LDADD) 93 94 #test_requests_with_assets_SOURCES = \ 95 # test_requests_with_assets.c \ 96 # $(SPDY_SOURCES) 97 #test_requests_with_assets_LDADD = $(SPDY_LDADD) 98 99 test_misc_SOURCES = \ 100 test_misc.c \ 101 $(SPDY_SOURCES) 102 test_misc_LDADD = $(SPDY_LDADD) 103 104 test_session_timeout_SOURCES = \ 105 test_session_timeout.c \ 106 $(SPDY_SOURCES) 107 test_session_timeout_LDADD = $(SPDY_LDADD) 108 109 110 test_proxies_SOURCES = \ 111 test_proxies.c \ 112 $(SPDY_SOURCES) 113 test_proxies_LDADD = $(SPDY_LDADD) 114 115 endif 116