Makefile.am revision 316cbe323513a0f20d1cf519fe9405e231d633e2
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Boschnoinst_LTLIBRARIES = libhttp.la
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
4c7d704408fc77467143a945dc2d0a856f72e674Timo SirainenAM_CPPFLAGS = \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen -I$(top_srcdir)/src/lib \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen -I$(top_srcdir)/src/lib-test \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen -I$(top_srcdir)/src/lib-dns \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen -I$(top_srcdir)/src/lib-ssl-iostream \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen -I$(top_srcdir)/src/lib-master
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainenlibhttp_la_SOURCES = \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-date.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-url.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-parser.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-header.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-header-parser.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-transfer-chunked.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-auth.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-message-parser.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-request.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-request-parser.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-response.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-response-parser.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-client-request.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-client-connection.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-client-peer.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-client-queue.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-client-host.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-client.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-server-response.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-server-request.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-server-connection.c \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-server.c
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainenheaders = \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-date.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-url.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-parser.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-header.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-header-parser.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-transfer.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-auth.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-message-parser.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-request.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-request-parser.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-response.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-response-parser.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-client-private.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-client.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-server-private.h \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen http-server.h
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainenpkginc_libdir=$(pkgincludedir)
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainenpkginc_lib_HEADERS = $(headers)
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_programs = \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen test-http-date \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen test-http-url \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen test-http-header-parser \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen test-http-transfer \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen test-http-auth \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen test-http-response-parser \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen test-http-request-parser
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_nocheck_programs = \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen test-http-payload \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen test-http-client \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen test-http-client-errors \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen test-http-server
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainennoinst_PROGRAMS = $(test_programs) $(test_nocheck_programs)
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_libs = \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen ../lib-test/libtest.la \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen ../lib/liblib.la \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen $(MODULE_LIBS)
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_deps = \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen $(noinst_LTLIBRARIES) \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen ../lib-test/libtest.la \
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen ../lib/liblib.la
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_http_url_SOURCES = test-http-url.c
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_http_url_LDADD = http-url.lo http-header.lo $(test_libs)
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_http_url_DEPENDENCIES = $(test_deps)
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_http_date_SOURCES = test-http-date.c
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_http_date_LDADD = http-date.lo $(test_libs)
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_http_date_DEPENDENCIES = $(test_deps)
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_http_header_parser_SOURCES = test-http-header-parser.c
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_http_header_parser_LDADD = http-parser.lo http-header-parser.lo http-header.lo $(test_libs)
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainentest_http_header_parser_DEPENDENCIES = $(test_deps)
4c7d704408fc77467143a945dc2d0a856f72e674Timo Sirainen
test_http_transfer_SOURCES = test-http-transfer.c
test_http_transfer_LDADD = \
http-parser.lo \
http-header-parser.lo \
http-transfer-chunked.lo \
http-header.lo \
$(test_libs)
test_http_transfer_DEPENDENCIES = $(test_deps)
test_http_auth_SOURCES = test-http-auth.c
test_http_auth_LDADD = \
http-auth.lo \
http-parser.lo \
$(test_libs)
test_http_auth_DEPENDENCIES = $(test_deps)
test_http_response_parser_SOURCES = test-http-response-parser.c
test_http_response_parser_LDADD = \
http-date.lo \
http-parser.lo \
http-header.lo \
http-header-parser.lo \
http-transfer-chunked.lo \
http-message-parser.lo \
http-response-parser.lo \
$(test_libs)
test_http_response_parser_DEPENDENCIES = $(test_deps)
test_http_request_parser_SOURCES = test-http-request-parser.c
test_http_request_parser_LDADD = \
http-date.lo \
http-parser.lo \
http-url.lo \
http-header.lo \
http-header-parser.lo \
http-transfer-chunked.lo \
http-message-parser.lo \
http-request-parser.lo \
$(test_libs)
test_http_request_parser_DEPENDENCIES = $(test_deps)
test_http_payload_SOURCES = test-http-payload.c
test_http_payload_LDFLAGS = -export-dynamic
test_http_payload_LDADD = \
libhttp.la \
../lib-dns/libdns.la \
../lib-ssl-iostream/libssl_iostream.la \
../lib-master/libmaster.la \
../lib-settings/libsettings.la \
$(test_libs)
test_http_payload_DEPENDENCIES = \
libhttp.la \
../lib-dns/libdns.la \
../lib-ssl-iostream/libssl_iostream.la \
../lib-master/libmaster.la \
../lib-settings/libsettings.la \
$(test_deps)
test_http_client_SOURCES = test-http-client.c
test_http_client_LDFLAGS = -export-dynamic
test_http_client_LDADD = \
libhttp.la \
../lib-dns/libdns.la \
../lib-ssl-iostream/libssl_iostream.la \
../lib-master/libmaster.la \
../lib-settings/libsettings.la \
$(test_libs)
test_http_client_DEPENDENCIES = \
libhttp.la \
../lib-dns/libdns.la \
../lib-ssl-iostream/libssl_iostream.la \
../lib-master/libmaster.la \
../lib-settings/libsettings.la \
$(test_deps)
test_http_client_errors_SOURCES = test-http-client-errors.c
test_http_client_errors_LDFLAGS = -export-dynamic
test_http_client_errors_LDADD = \
libhttp.la \
../lib-dns/libdns.la \
../lib-ssl-iostream/libssl_iostream.la \
../lib-master/libmaster.la \
../lib-settings/libsettings.la \
$(test_libs)
test_http_client_errors_DEPENDENCIES = \
libhttp.la \
../lib-dns/libdns.la \
../lib-ssl-iostream/libssl_iostream.la \
../lib-master/libmaster.la \
../lib-settings/libsettings.la \
$(test_deps)
test_http_server_SOURCES = test-http-server.c
test_http_server_LDFLAGS = -export-dynamic
test_http_server_LDADD = \
libhttp.la \
../lib-dns/libdns.la \
../lib-ssl-iostream/libssl_iostream.la \
../lib-master/libmaster.la \
../lib-settings/libsettings.la \
$(test_libs)
test_http_server_DEPENDENCIES = \
libhttp.la \
../lib-dns/libdns.la \
../lib-ssl-iostream/libssl_iostream.la \
../lib-master/libmaster.la \
../lib-settings/libsettings.la \
$(test_deps)
check: check-am check-test
check-test: all-am
for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
done