aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-27 14:51:32 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-27 14:51:32 +0300
commitdb4d4cb4bd70ff330750a8605376f41071498681 (patch)
tree6181fa9f8599773d1dbd9e2e47392ab1f2de32d7
parent14b7b4d3b1faad237948b4cfa2ca99d14f77e336 (diff)
downloadlibmicrohttpd-db4d4cb4bd70ff330750a8605376f41071498681.tar.gz
libmicrohttpd-db4d4cb4bd70ff330750a8605376f41071498681.zip
test-suite: sorted and fixed build flags
-rw-r--r--src/microhttpd/Makefile.am28
-rw-r--r--src/testcurl/Makefile.am12
-rw-r--r--src/testcurl/https/Makefile.am4
3 files changed, 26 insertions, 18 deletions
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am
index c4c15608..c25abab7 100644
--- a/src/microhttpd/Makefile.am
+++ b/src/microhttpd/Makefile.am
@@ -419,37 +419,45 @@ test_postprocessor_md_SOURCES = \
419 419
420test_shutdown_select_SOURCES = \ 420test_shutdown_select_SOURCES = \
421 test_shutdown_select.c 421 test_shutdown_select.c
422test_shutdown_select_CFLAGS = $(AM_CFLAGS)
423test_shutdown_select_LDADD = $(LDADD)
422if USE_POSIX_THREADS 424if USE_POSIX_THREADS
423test_shutdown_select_CFLAGS = \ 425test_shutdown_select_CFLAGS += \
424 $(AM_CFLAGS) $(PTHREAD_CFLAGS) 426 $(PTHREAD_CFLAGS)
425test_shutdown_select_LDADD = \ 427test_shutdown_select_LDADD += \
426 $(PTHREAD_LIBS) 428 $(PTHREAD_LIBS)
427endif 429endif
428 430
429test_shutdown_poll_SOURCES = \ 431test_shutdown_poll_SOURCES = \
430 test_shutdown_select.c mhd_threads.h 432 test_shutdown_select.c mhd_threads.h
433test_shutdown_poll_CFLAGS = $(AM_CFLAGS)
434test_shutdown_poll_LDADD = $(LDADD)
431if USE_POSIX_THREADS 435if USE_POSIX_THREADS
432test_shutdown_poll_CFLAGS = \ 436test_shutdown_poll_CFLAGS += \
433 $(AM_CFLAGS) $(PTHREAD_CFLAGS) 437 $(AM_CFLAGS) $(PTHREAD_CFLAGS)
434test_shutdown_poll_LDADD = \ 438test_shutdown_poll_LDADD += \
435 $(PTHREAD_LIBS) 439 $(PTHREAD_LIBS)
436endif 440endif
437 441
438test_shutdown_select_ignore_SOURCES = \ 442test_shutdown_select_ignore_SOURCES = \
439 test_shutdown_select.c 443 test_shutdown_select.c
444test_shutdown_select_ignore_CFLAGS = $(AM_CFLAGS)
445test_shutdown_select_ignore_LDADD = $(LDADD)
440if USE_POSIX_THREADS 446if USE_POSIX_THREADS
441test_shutdown_select_ignore_CFLAGS = \ 447test_shutdown_select_ignore_CFLAGS += \
442 $(AM_CFLAGS) $(PTHREAD_CFLAGS) 448 $(PTHREAD_CFLAGS)
443test_shutdown_select_ignore_LDADD = \ 449test_shutdown_select_ignore_LDADD += \
444 $(PTHREAD_LIBS) 450 $(PTHREAD_LIBS)
445endif 451endif
446 452
447test_shutdown_poll_ignore_SOURCES = \ 453test_shutdown_poll_ignore_SOURCES = \
448 test_shutdown_select.c mhd_threads.h 454 test_shutdown_select.c mhd_threads.h
455test_shutdown_poll_ignore_CFLAGS = $(AM_CFLAGS)
456test_shutdown_poll_ignore_LDADD = $(LDADD)
449if USE_POSIX_THREADS 457if USE_POSIX_THREADS
450test_shutdown_poll_ignore_CFLAGS = \ 458test_shutdown_poll_ignore_CFLAGS += \
451 $(AM_CFLAGS) $(PTHREAD_CFLAGS) 459 $(AM_CFLAGS) $(PTHREAD_CFLAGS)
452test_shutdown_poll_ignore_LDADD = \ 460test_shutdown_poll_ignore_LDADD += \
453 $(PTHREAD_LIBS) 461 $(PTHREAD_LIBS)
454endif 462endif
455 463
diff --git a/src/testcurl/Makefile.am b/src/testcurl/Makefile.am
index a4bc94ef..3fa81ced 100644
--- a/src/testcurl/Makefile.am
+++ b/src/testcurl/Makefile.am
@@ -225,7 +225,7 @@ endif
225test_concurrent_stop_SOURCES = \ 225test_concurrent_stop_SOURCES = \
226 test_concurrent_stop.c 226 test_concurrent_stop.c
227test_concurrent_stop_CFLAGS = \ 227test_concurrent_stop_CFLAGS = \
228 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 228 $(AM_CFLAGS) $(PTHREAD_CFLAGS)
229test_concurrent_stop_LDADD = \ 229test_concurrent_stop_LDADD = \
230 $(PTHREAD_LIBS) $(LDADD) 230 $(PTHREAD_LIBS) $(LDADD)
231 231
@@ -235,14 +235,14 @@ test_get_SOURCES = \
235test_quiesce_SOURCES = \ 235test_quiesce_SOURCES = \
236 test_quiesce.c mhd_has_param.h mhd_has_in_name.h 236 test_quiesce.c mhd_has_param.h mhd_has_in_name.h
237test_quiesce_CFLAGS = \ 237test_quiesce_CFLAGS = \
238 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 238 $(AM_CFLAGS) $(PTHREAD_CFLAGS)
239test_quiesce_LDADD = \ 239test_quiesce_LDADD = \
240 $(PTHREAD_LIBS) $(LDADD) 240 $(PTHREAD_LIBS) $(LDADD)
241 241
242test_quiesce_stream_SOURCES = \ 242test_quiesce_stream_SOURCES = \
243 test_quiesce_stream.c 243 test_quiesce_stream.c
244test_quiesce_stream_CFLAGS = \ 244test_quiesce_stream_CFLAGS = \
245 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 245 $(AM_CFLAGS) $(PTHREAD_CFLAGS)
246test_quiesce_stream_LDADD = \ 246test_quiesce_stream_LDADD = \
247 $(PTHREAD_LIBS) $(LDADD) 247 $(PTHREAD_LIBS) $(LDADD)
248 248
@@ -257,7 +257,7 @@ perf_get_concurrent_SOURCES = \
257 perf_get_concurrent.c \ 257 perf_get_concurrent.c \
258 gauger.h mhd_has_in_name.h 258 gauger.h mhd_has_in_name.h
259perf_get_concurrent_CFLAGS = \ 259perf_get_concurrent_CFLAGS = \
260 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 260 $(AM_CFLAGS) $(PTHREAD_CFLAGS)
261perf_get_concurrent_LDADD = \ 261perf_get_concurrent_LDADD = \
262 $(PTHREAD_LIBS) $(LDADD) 262 $(PTHREAD_LIBS) $(LDADD)
263 263
@@ -265,7 +265,7 @@ perf_get_concurrent11_SOURCES = \
265 perf_get_concurrent.c \ 265 perf_get_concurrent.c \
266 gauger.h mhd_has_in_name.h 266 gauger.h mhd_has_in_name.h
267perf_get_concurrent11_CFLAGS = \ 267perf_get_concurrent11_CFLAGS = \
268 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 268 $(AM_CFLAGS) $(PTHREAD_CFLAGS)
269perf_get_concurrent11_LDADD = \ 269perf_get_concurrent11_LDADD = \
270 $(PTHREAD_LIBS) $(LDADD) 270 $(PTHREAD_LIBS) $(LDADD)
271 271
@@ -299,7 +299,7 @@ test_digestauth_with_arguments_LDADD = \
299test_digestauth_concurrent_SOURCES = \ 299test_digestauth_concurrent_SOURCES = \
300 test_digestauth_concurrent.c 300 test_digestauth_concurrent.c
301test_digestauth_concurrent_CFLAGS = \ 301test_digestauth_concurrent_CFLAGS = \
302 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 302 $(AM_CFLAGS) $(PTHREAD_CFLAGS)
303test_digestauth_concurrent_LDADD = \ 303test_digestauth_concurrent_LDADD = \
304 @LIBGCRYPT_LIBS@ $(LDADD) $(PTHREAD_LIBS) $(LDADD) 304 @LIBGCRYPT_LIBS@ $(LDADD) $(PTHREAD_LIBS) $(LDADD)
305 305
diff --git a/src/testcurl/https/Makefile.am b/src/testcurl/https/Makefile.am
index 11b1ea20..39394db1 100644
--- a/src/testcurl/https/Makefile.am
+++ b/src/testcurl/https/Makefile.am
@@ -87,7 +87,7 @@ test_https_get_parallel_SOURCES = \
87 tls_test_common.h \ 87 tls_test_common.h \
88 tls_test_common.c 88 tls_test_common.c
89test_https_get_parallel_CFLAGS = \ 89test_https_get_parallel_CFLAGS = \
90 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 90 $(AM_CFLAGS) $(PTHREAD_CFLAGS)
91test_https_get_parallel_LDADD = \ 91test_https_get_parallel_LDADD = \
92 $(PTHREAD_LIBS) $(LDADD) 92 $(PTHREAD_LIBS) $(LDADD)
93 93
@@ -103,7 +103,7 @@ test_https_get_parallel_threads_SOURCES = \
103 tls_test_common.h \ 103 tls_test_common.h \
104 tls_test_common.c 104 tls_test_common.c
105test_https_get_parallel_threads_CFLAGS = \ 105test_https_get_parallel_threads_CFLAGS = \
106 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 106 $(AM_CFLAGS) $(PTHREAD_CFLAGS)
107test_https_get_parallel_threads_LDADD = \ 107test_https_get_parallel_threads_LDADD = \
108 $(PTHREAD_LIBS) $(LDADD) 108 $(PTHREAD_LIBS) $(LDADD)
109 109