aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-06 13:50:16 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-06 19:05:41 +0300
commitcbd62cc2d39557728a1c49b67cdd13951217fd3b (patch)
tree281a493b3f436df9983565517b21265604b755d4 /src/testcurl
parent895542a1ce315e58e33e0567ccec34f0792a98fd (diff)
downloadlibmicrohttpd-cbd62cc2d39557728a1c49b67cdd13951217fd3b.tar.gz
libmicrohttpd-cbd62cc2d39557728a1c49b67cdd13951217fd3b.zip
Autotools refactoring: better follow GNU coding standards
Never override CFLAGS, CPPFLAGS, and LDFLAGS in 'configure'. Let user override compile setting as make-time almost in the same way like at configure-time. Removed some redundant compile settings.
Diffstat (limited to 'src/testcurl')
-rw-r--r--src/testcurl/Makefile.am19
-rw-r--r--src/testcurl/https/Makefile.am21
2 files changed, 21 insertions, 19 deletions
diff --git a/src/testcurl/Makefile.am b/src/testcurl/Makefile.am
index 40a9fb13..5d7839f1 100644
--- a/src/testcurl/Makefile.am
+++ b/src/testcurl/Makefile.am
@@ -5,21 +5,24 @@ EMPTY_ITEM =
5 5
6SUBDIRS = . 6SUBDIRS = .
7 7
8AM_CPPFLAGS = \
9 -I$(top_srcdir)/src/include \
10 -I$(top_srcdir)/src/microhttpd \
11 -DMHD_CPU_COUNT=$(CPU_COUNT) \
12 $(CPPFLAGS_ac) $(LIBCURL_CPPFLAGS)
13
14AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@
15
16AM_LDFLAGS = $(LDFLAGS_ac)
17
8if USE_COVERAGE 18if USE_COVERAGE
9 AM_CFLAGS = -fprofile-arcs -ftest-coverage 19 AM_CFLAGS += -fprofile-arcs -ftest-coverage
10endif 20endif
11 21
12if ENABLE_HTTPS 22if ENABLE_HTTPS
13 SUBDIRS += https 23 SUBDIRS += https
14endif 24endif
15 25
16AM_CPPFLAGS = \
17-DMHD_CPU_COUNT=$(CPU_COUNT) \
18-I$(top_srcdir) \
19-I$(top_srcdir)/src/microhttpd \
20-I$(top_srcdir)/src/include \
21$(LIBCURL_CPPFLAGS)
22
23LDADD = \ 26LDADD = \
24 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 27 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
25 @LIBCURL@ 28 @LIBCURL@
diff --git a/src/testcurl/https/Makefile.am b/src/testcurl/https/Makefile.am
index 6c2134dc..203cddac 100644
--- a/src/testcurl/https/Makefile.am
+++ b/src/testcurl/https/Makefile.am
@@ -3,18 +3,21 @@ EMPTY_ITEM =
3 3
4SUBDIRS = . 4SUBDIRS = .
5 5
6if USE_COVERAGE
7 AM_CFLAGS = --coverage
8endif
9
10.NOTPARALLEL: 6.NOTPARALLEL:
11 7
12MHD_CPU_COUNT_DEF = -DMHD_CPU_COUNT=$(CPU_COUNT)
13
14AM_CPPFLAGS = \ 8AM_CPPFLAGS = \
15 -I$(top_srcdir)/src/include \ 9 -I$(top_srcdir)/src/include \
16 -I$(top_srcdir)/src/microhttpd \ 10 -I$(top_srcdir)/src/microhttpd \
17 $(LIBCURL_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) 11 -DMHD_CPU_COUNT=$(CPU_COUNT) \
12 $(CPPFLAGS_ac) $(LIBCURL_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS)
13
14AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@
15
16AM_LDFLAGS = $(LDFLAGS_ac)
17
18if USE_COVERAGE
19 AM_CFLAGS += --coverage
20endif
18 21
19LDADD = \ 22LDADD = \
20 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 23 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
@@ -83,8 +86,6 @@ test_https_get_parallel_SOURCES = \
83 tls_test_keys.h \ 86 tls_test_keys.h \
84 tls_test_common.h \ 87 tls_test_common.h \
85 tls_test_common.c 88 tls_test_common.c
86test_https_get_parallel_CPPFLAGS = \
87 $(AM_CPPFLAGS) $(MHD_CPU_COUNT_DEF)
88test_https_get_parallel_CFLAGS = \ 89test_https_get_parallel_CFLAGS = \
89 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 90 $(PTHREAD_CFLAGS) $(AM_CFLAGS)
90test_https_get_parallel_LDADD = \ 91test_https_get_parallel_LDADD = \
@@ -101,8 +102,6 @@ test_https_get_parallel_threads_SOURCES = \
101 tls_test_keys.h \ 102 tls_test_keys.h \
102 tls_test_common.h \ 103 tls_test_common.h \
103 tls_test_common.c 104 tls_test_common.c
104test_https_get_parallel_threads_CPPFLAGS = \
105 $(AM_CPPFLAGS) $(MHD_CPU_COUNT_DEF)
106test_https_get_parallel_threads_CFLAGS = \ 105test_https_get_parallel_threads_CFLAGS = \
107 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 106 $(PTHREAD_CFLAGS) $(AM_CFLAGS)
108test_https_get_parallel_threads_LDADD = \ 107test_https_get_parallel_threads_LDADD = \