Files
libmicrohttpd/src/tests/client_server/Makefile.am
T

90 lines
1.8 KiB
Makefile

# This Makefile.am is in the public domain
EMPTY_ITEM =
AM_CPPFLAGS = \
-I$(top_srcdir)/src/include \
-I$(top_srcdir)/src/mhd2 \
-DMHD_CPU_COUNT=$(CPU_COUNT) \
$(CPPFLAGS_ac)
AM_CFLAGS = $(CFLAGS_ac)
AM_LDFLAGS = $(LDFLAGS_ac)
AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac)
if USE_COVERAGE
AM_CFLAGS += -fprofile-arcs -ftest-coverage
endif
LDADD = $(top_builddir)/src/mhd2/libmicrohttpd2.la
LIBADD = $(top_builddir)/src/mhd2/libmicrohttpd2.la
$(top_builddir)/src/mhd2/libmicrohttpd2.la: $(top_builddir)/src/mhd2/Makefile
@echo ' cd $(top_builddir)/src/mhd2 && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd2.la'; \
$(am__cd) $(top_builddir)/src/mhd2 && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd2.la
check_PROGRAMS = \
test_client_server \
test_authentication \
test_postprocessor
if MHD_SUPPORT_HTTPS
check_PROGRAMS += \
test_tls \
test_cert_tls
endif
TESTS = $(check_PROGRAMS)
noinst_LTLIBRARIES = \
libmhdt.la
libmhdt_la_SOURCES = \
libtest.c libtest.h \
libtest_convenience.c \
libtest_convenience_client_request.c \
libtest_convenience_server_reply.c
# TODO: fix flags, use configure-detected
libmhdt_la_LIBADD = \
-lpthread \
-lcurl \
$(LIBADD)
test_client_server_SOURCES = \
test_client_server.c
test_client_server_LDADD = \
libmhdt.la
test_authentication_SOURCES = \
test_authentication.c
test_authentication_LDADD = \
libmhdt.la
test_tls_SOURCES = \
test_tls.c
test_tls_LDADD = \
libmhdt.la
test_cert_tls_SOURCES = \
test_cert_tls.c
test_cert_tls_LDADD = \
libmhdt.la
test_postprocessor_SOURCES = \
test_postprocessor.c
test_postprocessor_LDADD = \
libmhdt.la
# TODO: fix out-of-tree 'make check'
EXTRA_DIST = \
data/root-ca.crt \
data/inter1-ca.crt \
data/inter2-ca.crt \
data/test-server.crt \
data/test-server-key.pem \
data/check_certs.sh \
data/make_chain.sh \
data/chain.crt