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