diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-01-06 13:50:16 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-01-06 19:05:41 +0300 |
commit | cbd62cc2d39557728a1c49b67cdd13951217fd3b (patch) | |
tree | 281a493b3f436df9983565517b21265604b755d4 /src/testcurl | |
parent | 895542a1ce315e58e33e0567ccec34f0792a98fd (diff) | |
download | libmicrohttpd-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.am | 19 | ||||
-rw-r--r-- | src/testcurl/https/Makefile.am | 21 |
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 | ||
6 | SUBDIRS = . | 6 | SUBDIRS = . |
7 | 7 | ||
8 | AM_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 | |||
14 | AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@ | ||
15 | |||
16 | AM_LDFLAGS = $(LDFLAGS_ac) | ||
17 | |||
8 | if USE_COVERAGE | 18 | if USE_COVERAGE |
9 | AM_CFLAGS = -fprofile-arcs -ftest-coverage | 19 | AM_CFLAGS += -fprofile-arcs -ftest-coverage |
10 | endif | 20 | endif |
11 | 21 | ||
12 | if ENABLE_HTTPS | 22 | if ENABLE_HTTPS |
13 | SUBDIRS += https | 23 | SUBDIRS += https |
14 | endif | 24 | endif |
15 | 25 | ||
16 | AM_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 | |||
23 | LDADD = \ | 26 | LDADD = \ |
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 | ||
4 | SUBDIRS = . | 4 | SUBDIRS = . |
5 | 5 | ||
6 | if USE_COVERAGE | ||
7 | AM_CFLAGS = --coverage | ||
8 | endif | ||
9 | |||
10 | .NOTPARALLEL: | 6 | .NOTPARALLEL: |
11 | 7 | ||
12 | MHD_CPU_COUNT_DEF = -DMHD_CPU_COUNT=$(CPU_COUNT) | ||
13 | |||
14 | AM_CPPFLAGS = \ | 8 | AM_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 | |||
14 | AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@ | ||
15 | |||
16 | AM_LDFLAGS = $(LDFLAGS_ac) | ||
17 | |||
18 | if USE_COVERAGE | ||
19 | AM_CFLAGS += --coverage | ||
20 | endif | ||
18 | 21 | ||
19 | LDADD = \ | 22 | LDADD = \ |
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 |
86 | test_https_get_parallel_CPPFLAGS = \ | ||
87 | $(AM_CPPFLAGS) $(MHD_CPU_COUNT_DEF) | ||
88 | test_https_get_parallel_CFLAGS = \ | 89 | test_https_get_parallel_CFLAGS = \ |
89 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) | 90 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) |
90 | test_https_get_parallel_LDADD = \ | 91 | test_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 |
104 | test_https_get_parallel_threads_CPPFLAGS = \ | ||
105 | $(AM_CPPFLAGS) $(MHD_CPU_COUNT_DEF) | ||
106 | test_https_get_parallel_threads_CFLAGS = \ | 105 | test_https_get_parallel_threads_CFLAGS = \ |
107 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) | 106 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) |
108 | test_https_get_parallel_threads_LDADD = \ | 107 | test_https_get_parallel_threads_LDADD = \ |