5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschnoinst_LTLIBRARIES = libhttp.la
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan BoschAM_CPPFLAGS = \
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch -I$(top_srcdir)/src/lib \
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch -I$(top_srcdir)/src/lib-test \
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch -I$(top_srcdir)/src/lib-dns \
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschlibhttp_la_SOURCES = \
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschpkginc_libdir=$(pkgincludedir)
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschpkginc_lib_HEADERS = $(headers)
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschtest_programs = \
1bd20e2a575473f3d05499f05f1d72da59b34fd6Stephan Bosch test-http-date \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch test-http-url \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch test-http-header-parser \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch test-http-transfer \
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Bosch test-http-auth \
10962368c30afde135743fd9796122e88a708e87Stephan Bosch test-http-response-parser \
10962368c30afde135743fd9796122e88a708e87Stephan Bosch test-http-request-parser
49beae176b0fadb122c776bbdfa0ea789c30f47fTimo Sirainentest_nocheck_programs = \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch test-http-payload \
7e59e4fdc89e55399fa60b3f6d866e7029c230feTimo Sirainen test-http-client \
03142e79fbd4dd407b54348fe7aa16c11f577663Stephan Bosch test-http-client-errors \
f98d562bc4d52d2e5274d6efb714640184a45cf3Stephan Bosch test-http-server \
f98d562bc4d52d2e5274d6efb714640184a45cf3Stephan Bosch test-http-server-errors
49beae176b0fadb122c776bbdfa0ea789c30f47fTimo Sirainennoinst_PROGRAMS = $(test_programs) $(test_nocheck_programs)
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch $(MODULE_LIBS)
ec383c7840663a34033f5b1b027e7c530af564beTimo Sirainen $(noinst_LTLIBRARIES) \
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschtest_http_url_SOURCES = test-http-url.c
34de49959c6612f519bff07ba5cd1f3ef964bb0cTimo Sirainentest_http_url_LDADD = http-url.lo http-header.lo $(test_libs)
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschtest_http_url_DEPENDENCIES = $(test_deps)
1bd20e2a575473f3d05499f05f1d72da59b34fd6Stephan Boschtest_http_date_SOURCES = test-http-date.c
1bd20e2a575473f3d05499f05f1d72da59b34fd6Stephan Boschtest_http_date_LDADD = http-date.lo $(test_libs)
1bd20e2a575473f3d05499f05f1d72da59b34fd6Stephan Boschtest_http_date_DEPENDENCIES = $(test_deps)
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_header_parser_SOURCES = test-http-header-parser.c
34de49959c6612f519bff07ba5cd1f3ef964bb0cTimo Sirainentest_http_header_parser_LDADD = http-parser.lo http-header-parser.lo http-header.lo $(test_libs)
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_header_parser_DEPENDENCIES = $(test_deps)
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_transfer_SOURCES = test-http-transfer.c
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_transfer_LDADD = \
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_transfer_DEPENDENCIES = $(test_deps)
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Boschtest_http_auth_SOURCES = test-http-auth.c
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Boschtest_http_auth_LDADD = \
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Boschtest_http_auth_DEPENDENCIES = $(test_deps)
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_response_parser_SOURCES = test-http-response-parser.c
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_response_parser_LDADD = \
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_response_parser_DEPENDENCIES = $(test_deps)
10962368c30afde135743fd9796122e88a708e87Stephan Boschtest_http_request_parser_SOURCES = test-http-request-parser.c
10962368c30afde135743fd9796122e88a708e87Stephan Boschtest_http_request_parser_LDADD = \
10962368c30afde135743fd9796122e88a708e87Stephan Boschtest_http_request_parser_DEPENDENCIES = $(test_deps)
b154be7ad172a0cc89284dc4a92599050579a3beStephan Boschtest_http_libs = \
b154be7ad172a0cc89284dc4a92599050579a3beStephan Boschtest_http_deps = \
21680ee5e2af010b0d776618fb38c65015cdf113Aki Tuomitest_http_libs_ssl=
21680ee5e2af010b0d776618fb38c65015cdf113Aki Tuomiif BUILD_OPENSSL
21680ee5e2af010b0d776618fb38c65015cdf113Aki Tuomitest_http_libs_ssl += ../lib-ssl-iostream/libssl_iostream_openssl.la
b154be7ad172a0cc89284dc4a92599050579a3beStephan Boschtest_http_payload_SOURCES = test-http-payload.c
b154be7ad172a0cc89284dc4a92599050579a3beStephan Boschtest_http_payload_LDFLAGS = -export-dynamic
b154be7ad172a0cc89284dc4a92599050579a3beStephan Boschtest_http_payload_LDADD = \
b154be7ad172a0cc89284dc4a92599050579a3beStephan Bosch $(test_http_libs)
b154be7ad172a0cc89284dc4a92599050579a3beStephan Boschtest_http_payload_DEPENDENCIES = \
b154be7ad172a0cc89284dc4a92599050579a3beStephan Bosch $(test_http_deps)
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_client_SOURCES = test-http-client.c
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_client_LDFLAGS = -export-dynamic
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_client_LDADD = \
c45da70c96800ce9d84a886b163ad913e3d8ddeaTimo Sirainen $(test_http_libs) \
21680ee5e2af010b0d776618fb38c65015cdf113Aki Tuomi $(test_http_libs_ssl)
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_client_DEPENDENCIES = \
b154be7ad172a0cc89284dc4a92599050579a3beStephan Bosch $(test_http_deps)
03142e79fbd4dd407b54348fe7aa16c11f577663Stephan Boschtest_http_client_errors_SOURCES = test-http-client-errors.c
03142e79fbd4dd407b54348fe7aa16c11f577663Stephan Boschtest_http_client_errors_LDFLAGS = -export-dynamic
03142e79fbd4dd407b54348fe7aa16c11f577663Stephan Boschtest_http_client_errors_LDADD = \
b154be7ad172a0cc89284dc4a92599050579a3beStephan Bosch $(test_http_libs)
03142e79fbd4dd407b54348fe7aa16c11f577663Stephan Boschtest_http_client_errors_DEPENDENCIES = \
b154be7ad172a0cc89284dc4a92599050579a3beStephan Bosch $(test_http_deps)
7e59e4fdc89e55399fa60b3f6d866e7029c230feTimo Sirainentest_http_server_SOURCES = test-http-server.c
7e59e4fdc89e55399fa60b3f6d866e7029c230feTimo Sirainentest_http_server_LDFLAGS = -export-dynamic
7e59e4fdc89e55399fa60b3f6d866e7029c230feTimo Sirainentest_http_server_LDADD = \
b154be7ad172a0cc89284dc4a92599050579a3beStephan Bosch $(test_http_libs)
7e59e4fdc89e55399fa60b3f6d866e7029c230feTimo Sirainentest_http_server_DEPENDENCIES = \
b154be7ad172a0cc89284dc4a92599050579a3beStephan Bosch $(test_http_deps)
f98d562bc4d52d2e5274d6efb714640184a45cf3Stephan Boschtest_http_server_errors_SOURCES = test-http-server-errors.c
f98d562bc4d52d2e5274d6efb714640184a45cf3Stephan Boschtest_http_server_errors_LDFLAGS = -export-dynamic
f98d562bc4d52d2e5274d6efb714640184a45cf3Stephan Boschtest_http_server_errors_LDADD = \
f98d562bc4d52d2e5274d6efb714640184a45cf3Stephan Bosch $(test_http_libs)
f98d562bc4d52d2e5274d6efb714640184a45cf3Stephan Boschtest_http_server_errors_DEPENDENCIES = \
f98d562bc4d52d2e5274d6efb714640184a45cf3Stephan Bosch $(test_http_deps)
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch for bin in $(test_programs); do \
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \