Makefile.am revision 1920ef85b63738a06914e56508049dd0afe38732
noinst_LTLIBRARIES = libhttp.la
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
-I$(top_srcdir)/src/lib-dns \
-I$(top_srcdir)/src/lib-ssl-iostream
libhttp_la_SOURCES = \
headers = \
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
test_programs = \
test-http-date \
test-http-url \
test-http-header-parser \
test-http-transfer \
test-http-response-parser
test_nocheck_programs = \
test-http-client
noinst_PROGRAMS = $(test_programs) $(test_nocheck_programs)
test_libs = \
../lib/liblib.la \
$(MODULE_LIBS)
test_deps = \
$(noinst_LTLIBRARIES) \
test_http_url_SOURCES = test-http-url.c
test_http_url_LDADD = http-url.lo $(test_libs)
test_http_url_DEPENDENCIES = $(test_deps)
test_http_date_SOURCES = test-http-date.c
test_http_date_LDADD = http-date.lo $(test_libs)
test_http_date_DEPENDENCIES = $(test_deps)
test_http_header_parser_SOURCES = test-http-header-parser.c
test_http_header_parser_LDADD = http-parser.lo http-header-parser.lo $(test_libs)
test_http_header_parser_DEPENDENCIES = $(test_deps)
test_http_transfer_SOURCES = test-http-transfer.c
test_http_transfer_LDADD = \
$(test_libs)
test_http_transfer_DEPENDENCIES = $(test_deps)
test_http_response_parser_SOURCES = test-http-response-parser.c
test_http_response_parser_LDADD = \
$(test_libs)
test_http_response_parser_DEPENDENCIES = $(test_deps)
test_http_client_SOURCES = test-http-client.c
test_http_client_LDFLAGS = -export-dynamic
test_http_client_LDADD = \
$(test_libs)
test_http_client_DEPENDENCIES = \
$(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