Makefile.am revision cd24dc2196f7480d4793ca5d5f9f8d70741bc103
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschnoinst_LTLIBRARIES = libhttp.la
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch
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 \
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch -I$(top_srcdir)/src/lib-ssl-iostream \
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch -I$(top_srcdir)/src/lib-master
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschlibhttp_la_SOURCES = \
1bd20e2a575473f3d05499f05f1d72da59b34fd6Stephan Bosch http-date.c \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-url.c \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-parser.c \
e8f1e510df3ab051a816715c2056f0d10aee929eStephan Bosch http-header.c \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-header-parser.c \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-transfer-chunked.c \
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Bosch http-auth.c \
b72c3363092b73cab1da2de4a9d75592e7d8fd6bTimo Sirainen http-message-parser.c \
e8f1e510df3ab051a816715c2056f0d10aee929eStephan Bosch http-request.c \
b72c3363092b73cab1da2de4a9d75592e7d8fd6bTimo Sirainen http-request-parser.c \
e8f1e510df3ab051a816715c2056f0d10aee929eStephan Bosch http-response.c \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-response-parser.c \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-client-request.c \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-client-connection.c \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-client-peer.c \
de96afeeaa5242cffe89f1966457e935806b5746Stephan Bosch http-client-queue.c \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-client-host.c \
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch http-client.c \
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch http-server-response.c \
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch http-server-request.c \
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch http-server-connection.c \
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch http-server.c
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschheaders = \
1bd20e2a575473f3d05499f05f1d72da59b34fd6Stephan Bosch http-date.h \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-url.h \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-parser.h \
e8f1e510df3ab051a816715c2056f0d10aee929eStephan Bosch http-header.h \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-header-parser.h \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-transfer.h \
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Bosch http-auth.h \
b72c3363092b73cab1da2de4a9d75592e7d8fd6bTimo Sirainen http-message-parser.h \
e8f1e510df3ab051a816715c2056f0d10aee929eStephan Bosch http-request.h \
b72c3363092b73cab1da2de4a9d75592e7d8fd6bTimo Sirainen http-request-parser.h \
1920ef85b63738a06914e56508049dd0afe38732Timo Sirainen http-response.h \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-response-parser.h \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-client-private.h \
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch http-client.h \
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch http-server-private.h \
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch http-server.h
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschpkginc_libdir=$(pkgincludedir)
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschpkginc_lib_HEADERS = $(headers)
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch
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 Sirainen
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
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch
49beae176b0fadb122c776bbdfa0ea789c30f47fTimo Sirainennoinst_PROGRAMS = $(test_programs) $(test_nocheck_programs)
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschtest_libs = \
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch ../lib-test/libtest.la \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch ../lib/liblib.la \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch $(MODULE_LIBS)
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_deps = \
ec383c7840663a34033f5b1b027e7c530af564beTimo Sirainen $(noinst_LTLIBRARIES) \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch ../lib-test/libtest.la \
905fb741e6f9a40e7721bff095c52a87110b4de3Timo Sirainen ../lib/liblib.la
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch
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)
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch
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)
1bd20e2a575473f3d05499f05f1d72da59b34fd6Stephan Bosch
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 Bosch
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_transfer_SOURCES = test-http-transfer.c
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_transfer_LDADD = \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-parser.lo \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-header-parser.lo \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-transfer-chunked.lo \
34de49959c6612f519bff07ba5cd1f3ef964bb0cTimo Sirainen http-header.lo \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch $(test_libs)
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_transfer_DEPENDENCIES = $(test_deps)
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Boschtest_http_auth_SOURCES = test-http-auth.c
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Boschtest_http_auth_LDADD = \
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Bosch http-auth.lo \
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Bosch http-parser.lo \
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Bosch $(test_libs)
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Boschtest_http_auth_DEPENDENCIES = $(test_deps)
0b5bdb5ba6c8cb928b6d2dcc4636148bfa1a7ec7Stephan Bosch
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_response_parser_SOURCES = test-http-response-parser.c
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_response_parser_LDADD = \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-date.lo \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-parser.lo \
e8f1e510df3ab051a816715c2056f0d10aee929eStephan Bosch http-header.lo \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-header-parser.lo \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-transfer-chunked.lo \
b72c3363092b73cab1da2de4a9d75592e7d8fd6bTimo Sirainen http-message-parser.lo \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch http-response-parser.lo \
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch $(test_libs)
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_response_parser_DEPENDENCIES = $(test_deps)
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch
10962368c30afde135743fd9796122e88a708e87Stephan Boschtest_http_request_parser_SOURCES = test-http-request-parser.c
10962368c30afde135743fd9796122e88a708e87Stephan Boschtest_http_request_parser_LDADD = \
10962368c30afde135743fd9796122e88a708e87Stephan Bosch http-date.lo \
10962368c30afde135743fd9796122e88a708e87Stephan Bosch http-parser.lo \
10962368c30afde135743fd9796122e88a708e87Stephan Bosch http-url.lo \
10962368c30afde135743fd9796122e88a708e87Stephan Bosch http-header.lo \
10962368c30afde135743fd9796122e88a708e87Stephan Bosch http-header-parser.lo \
10962368c30afde135743fd9796122e88a708e87Stephan Bosch http-transfer-chunked.lo \
10962368c30afde135743fd9796122e88a708e87Stephan Bosch http-message-parser.lo \
10962368c30afde135743fd9796122e88a708e87Stephan Bosch http-request-parser.lo \
10962368c30afde135743fd9796122e88a708e87Stephan Bosch $(test_libs)
10962368c30afde135743fd9796122e88a708e87Stephan Boschtest_http_request_parser_DEPENDENCIES = $(test_deps)
10962368c30afde135743fd9796122e88a708e87Stephan Bosch
b154be7ad172a0cc89284dc4a92599050579a3beStephan Boschtest_http_libs = \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch libhttp.la \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch ../lib-dns/libdns.la \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch ../lib-ssl-iostream/libssl_iostream.la \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch ../lib-master/libmaster.la \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch ../lib-settings/libsettings.la \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch $(test_libs)
b154be7ad172a0cc89284dc4a92599050579a3beStephan Boschtest_http_deps = \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch libhttp.la \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch ../lib-dns/libdns.la \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch ../lib-ssl-iostream/libssl_iostream.la \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch ../lib-master/libmaster.la \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch ../lib-settings/libsettings.la \
d5cdf90f01fe1b5a5e049f341398b2ee329b4de5Stephan Bosch $(test_deps)
10962368c30afde135743fd9796122e88a708e87Stephan Bosch
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)
b154be7ad172a0cc89284dc4a92599050579a3beStephan Bosch
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_client_SOURCES = test-http-client.c
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_client_LDFLAGS = -export-dynamic
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_client_LDADD = \
b154be7ad172a0cc89284dc4a92599050579a3beStephan Bosch $(test_http_libs)
7384b4e78eaab44693c985192276e31322155e32Stephan Boschtest_http_client_DEPENDENCIES = \
b154be7ad172a0cc89284dc4a92599050579a3beStephan Bosch $(test_http_deps)
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch
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)
03142e79fbd4dd407b54348fe7aa16c11f577663Stephan Bosch
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)
7e59e4fdc89e55399fa60b3f6d866e7029c230feTimo Sirainen
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)
f98d562bc4d52d2e5274d6efb714640184a45cf3Stephan Bosch
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschcheck: check-am check-test
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Boschcheck-test: all-am
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch for bin in $(test_programs); do \
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
5394bed8aaef2a6c1c870a34a23a7824e1f370bbStephan Bosch done