Makefile.am (20224B)
1 # This Makefile.am is in the public domain 2 3 AM_CPPFLAGS = \ 4 -I$(top_srcdir)/src/include \ 5 $(CPPFLAGS_ac) 6 7 AM_CFLAGS = $(CFLAGS_ac) $(HIDDEN_VISIBILITY_CFLAGS) 8 9 AM_LDFLAGS = $(LDFLAGS_ac) 10 11 AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac) 12 13 lib_LTLIBRARIES = \ 14 libmicrohttpd.la 15 16 noinst_DATA = 17 MOSTLYCLEANFILES = 18 19 # Test-only header, #included by every test program but not compiled on its 20 # own and not part of the library; see mhd_panic_tripwire.h. 21 EXTRA_DIST = \ 22 mhd_panic_tripwire.h 23 24 AM_V_LIB = $(am__v_LIB_@AM_V@) 25 am__v_LIB_ = $(am__v_LIB_@AM_DEFAULT_V@) 26 am__v_LIB_0 = @echo " LIB " $@; 27 am__v_LIB_1 = 28 29 if W32_SHARED_LIB_EXP 30 AM_V_DLLTOOL = $(am__v_DLLTOOL_@AM_V@) 31 am__v_DLLTOOL_ = $(am__v_DLLTOOL_@AM_DEFAULT_V@) 32 am__v_DLLTOOL_0 = @echo " DLLTOOL " $@; 33 am__v_DLLTOOL_1 = 34 35 W32_MHD_LIB_LDFLAGS = -Wl,--output-def,$(lt_cv_objdir)/libmicrohttpd.def -XCClinker -static-libgcc 36 noinst_DATA += $(lt_cv_objdir)/libmicrohttpd.lib $(lt_cv_objdir)/libmicrohttpd.def 37 MOSTLYCLEANFILES += $(lt_cv_objdir)/libmicrohttpd.lib $(lt_cv_objdir)/libmicrohttpd.def $(lt_cv_objdir)/libmicrohttpd.exp 38 39 $(lt_cv_objdir)/libmicrohttpd.def: libmicrohttpd.la 40 $(AM_V_at)test -f $@ && touch $@ || \ 41 ( rm -f libmicrohttpd.la ; $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la && touch $@ ) 42 43 if USE_EXPORT_FILE 44 noinst_DATA += $(lt_cv_objdir)/libmicrohttpd.exp 45 46 $(lt_cv_objdir)/libmicrohttpd.exp: $(lt_cv_objdir)/libmicrohttpd.lib 47 $(AM_V_at)test -f $@ && touch $@ || \ 48 ( rm -f $(lt_cv_objdir)/libmicrohttpd.lib ; $(MAKE) $(AM_MAKEFLAGS) $(lt_cv_objdir)/libmicrohttpd.lib && touch $@ ) 49 endif 50 51 if USE_MS_LIB_TOOL 52 $(lt_cv_objdir)/libmicrohttpd.lib: $(lt_cv_objdir)/libmicrohttpd.def libmicrohttpd.la $(libmicrohttpd_la_OBJECTS) 53 $(AM_V_LIB) cd "$(lt_cv_objdir)" && dll_name=`$(SED) -n -e "s/^dlname='\(.*\)'/\1/p" libmicrohttpd.la` && test -n "$$dll_name" && \ 54 $(MS_LIB_TOOL) -nologo -def:libmicrohttpd.def -name:$$dll_name -out:libmicrohttpd.lib $(libmicrohttpd_la_OBJECTS:.lo=.o) -ignore:4221 55 else 56 if USE_EXPORT_FILE 57 $(lt_cv_objdir)/libmicrohttpd.lib: $(lt_cv_objdir)/libmicrohttpd.def libmicrohttpd.la $(libmicrohttpd_la_OBJECTS) 58 $(AM_V_DLLTOOL) cd "$(lt_cv_objdir)" && dll_name=`$(SED) -n -e "s/^dlname='\(.*\)'/\1/p" libmicrohttpd.la` && test -n "$$dll_name" && \ 59 $(DLLTOOL) -d libmicrohttpd.def -D $$dll_name -l libmicrohttpd.lib $(libmicrohttpd_la_OBJECTS:.lo=.o) -e ./libmicrohttpd.exp 60 else 61 $(lt_cv_objdir)/libmicrohttpd.lib: $(lt_cv_objdir)/libmicrohttpd.def libmicrohttpd.la 62 $(AM_V_DLLTOOL) cd "$(lt_cv_objdir)" && dll_name=`$(SED) -n -e "s/^dlname='\(.*\)'/\1/p" libmicrohttpd.la` && test -n "$$dll_name" && \ 63 $(DLLTOOL) -d libmicrohttpd.def -D $$dll_name -l libmicrohttpd.lib 64 endif 65 endif 66 else 67 W32_MHD_LIB_LDFLAGS = 68 endif 69 70 if W32_STATIC_LIB 71 noinst_DATA += $(lt_cv_objdir)/libmicrohttpd-static.lib 72 MOSTLYCLEANFILES += $(lt_cv_objdir)/libmicrohttpd-static.lib 73 74 $(lt_cv_objdir)/libmicrohttpd-static.lib: libmicrohttpd.la $(libmicrohttpd_la_OBJECTS) 75 if USE_MS_LIB_TOOL 76 $(AM_V_LIB) $(MS_LIB_TOOL) -nologo -out:$@ $(libmicrohttpd_la_OBJECTS:.lo=.o) 77 else 78 $(AM_V_at)cp $(lt_cv_objdir)/libmicrohttpd.a $@ 79 endif 80 endif 81 82 83 libmicrohttpd_la_SOURCES = \ 84 connection.c connection.h \ 85 reason_phrase.c \ 86 daemon.c \ 87 internal.c internal.h \ 88 memorypool.c memorypool.h \ 89 mhd_mono_clock.c mhd_mono_clock.h \ 90 mhd_limits.h \ 91 sysfdsetsize.h \ 92 mhd_str.c mhd_str.h mhd_str_types.h\ 93 mhd_send.h mhd_send.c \ 94 mhd_assert.h \ 95 mhd_check.h \ 96 mhd_sockets.c mhd_sockets.h \ 97 mhd_itc.c mhd_itc.h mhd_itc_types.h \ 98 mhd_compat.c mhd_compat.h \ 99 mhd_panic.c mhd_panic.h \ 100 response.c response.h 101 102 if USE_POSIX_THREADS 103 libmicrohttpd_la_SOURCES += \ 104 mhd_threads.c mhd_threads.h \ 105 mhd_locks.h 106 endif 107 if USE_W32_THREADS 108 libmicrohttpd_la_SOURCES += \ 109 mhd_threads.c mhd_threads.h \ 110 mhd_locks.h 111 endif 112 113 if NEED_SYS_FD_SET_SIZE_VALUE 114 libmicrohttpd_la_SOURCES += \ 115 sysfdsetsize.c 116 endif 117 118 libmicrohttpd_la_CPPFLAGS = \ 119 $(AM_CPPFLAGS) $(MHD_LIB_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) \ 120 -DBUILDING_MHD_LIB=1 121 libmicrohttpd_la_CFLAGS = \ 122 $(AM_CFLAGS) $(MHD_LIB_CFLAGS) $(MHD_TLS_LIB_CFLAGS) 123 libmicrohttpd_la_LDFLAGS = \ 124 $(AM_LDFLAGS) $(MHD_LIB_LDFLAGS) $(MHD_TLS_LIB_LDFLAGS) \ 125 $(W32_MHD_LIB_LDFLAGS) \ 126 -export-dynamic -no-undefined \ 127 -version-info @LIB_VERSION_CURRENT@:@LIB_VERSION_REVISION@:@LIB_VERSION_AGE@ 128 libmicrohttpd_la_LIBADD = \ 129 $(MHD_LIBDEPS) $(MHD_TLS_LIBDEPS) 130 131 132 AM_V_RC = $(am__v_RC_@AM_V@) 133 am__v_RC_ = $(am__v_RC_@AM_DEFAULT_V@) 134 am__v_RC_0 = @echo " RC " $@; 135 am__v_RC_1 = 136 137 # General rule is not required, but keep it just in case 138 # Note: windres does not understand '-isystem' flag, so all 139 # possible '-isystem' flags are replaced by simple '-I' flags. 140 .rc.lo: 141 $(AM_V_RC) RC_ALL_CPPFLAGS=`echo ' $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) ' | $(SED) -e 's/ -isystem / -I /g'`; \ 142 $(LIBTOOL) $(AM_V_lt) --tag=RC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(RC) $(RCFLAGS) $(DEFS) $${RC_ALL_CPPFLAGS} $< -o $@ 143 144 # Note: windres does not understand '-isystem' flag, so all 145 # possible '-isystem' flags are replaced by simple '-I' flags. 146 libmicrohttpd_la-microhttpd_dll_res.lo: $(builddir)/microhttpd_dll_res.rc 147 $(AM_V_RC) RC_ALL_CPPFLAGS=`echo ' $(DEFAULT_INCLUDES) $(INCLUDES) $(libmicrohttpd_la_CPPFLAGS) $(CPPFLAGS) ' | $(SED) -e 's/ -isystem / -I /g'`; \ 148 $(LIBTOOL) $(AM_V_lt) --tag=RC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(RC) $(RCFLAGS) $(DEFS) $${RC_ALL_CPPFLAGS} $(builddir)/microhttpd_dll_res.rc -o $@ 149 150 if HAVE_W32 151 MHD_DLL_RES_LO = libmicrohttpd_la-microhttpd_dll_res.lo 152 else 153 MHD_DLL_RES_LO = 154 endif 155 156 EXTRA_libmicrohttpd_la_DEPENDENCIES = $(MHD_DLL_RES_LO) 157 libmicrohttpd_la_LIBADD += $(MHD_DLL_RES_LO) 158 159 160 if USE_COVERAGE 161 AM_CFLAGS += --coverage 162 endif 163 164 if !MHD_USE_SYS_TSEARCH 165 libmicrohttpd_la_SOURCES += \ 166 tsearch.c tsearch.h 167 endif 168 169 if HAVE_POSTPROCESSOR 170 libmicrohttpd_la_SOURCES += \ 171 postprocessor.c postprocessor.h 172 endif 173 174 if HAVE_ANYAUTH 175 libmicrohttpd_la_SOURCES += \ 176 gen_auth.c gen_auth.h 177 endif 178 if ENABLE_DAUTH 179 libmicrohttpd_la_SOURCES += \ 180 digestauth.c digestauth.h \ 181 mhd_bithelpers.h mhd_byteorder.h mhd_align.h 182 if ENABLE_MD5 183 libmicrohttpd_la_SOURCES += \ 184 mhd_md5_wrap.h 185 if ! ENABLE_MD5_EXT 186 libmicrohttpd_la_SOURCES += \ 187 md5.c md5.h 188 else 189 libmicrohttpd_la_SOURCES += \ 190 md5_ext.c md5_ext.h 191 endif 192 endif 193 if ENABLE_SHA256 194 libmicrohttpd_la_SOURCES += \ 195 mhd_sha256_wrap.h 196 if ! ENABLE_SHA256_EXT 197 libmicrohttpd_la_SOURCES += \ 198 sha256.c sha256.h 199 else 200 libmicrohttpd_la_SOURCES += \ 201 sha256_ext.c sha256_ext.h 202 endif 203 endif 204 if ENABLE_SHA512_256 205 libmicrohttpd_la_SOURCES += \ 206 sha512_256.c sha512_256.h 207 endif 208 endif 209 210 if ENABLE_BAUTH 211 libmicrohttpd_la_SOURCES += \ 212 basicauth.c basicauth.h 213 endif 214 215 if ENABLE_HTTPS 216 libmicrohttpd_la_SOURCES += \ 217 connection_https.c connection_https.h 218 endif 219 220 check_PROGRAMS = \ 221 test_str_compare \ 222 test_str_to_value \ 223 test_str_from_value \ 224 test_str_token \ 225 test_str_token_remove \ 226 test_str_tokens_remove \ 227 test_str_pct \ 228 test_str_bin_hex \ 229 test_http_reasons \ 230 test_sha1 \ 231 test_start_stop \ 232 test_daemon \ 233 test_response_entries \ 234 test_postprocessor_md \ 235 test_client_put_shutdown \ 236 test_client_put_close \ 237 test_client_put_hard_close \ 238 test_client_put_steps_shutdown \ 239 test_client_put_steps_close \ 240 test_client_put_steps_hard_close \ 241 test_client_put_chunked_shutdown \ 242 test_client_put_chunked_close \ 243 test_client_put_chunked_hard_close \ 244 test_client_put_chunked_steps_shutdown \ 245 test_client_put_chunked_steps_close \ 246 test_client_put_chunked_steps_hard_close \ 247 test_options \ 248 test_mhd_version \ 249 test_set_panic \ 250 test_rq_shift_back \ 251 test_chunked_ext \ 252 test_raw_requests \ 253 test_option_matrix 254 255 if ENABLE_MD5 256 check_PROGRAMS += \ 257 test_md5 258 endif 259 if ENABLE_SHA256 260 check_PROGRAMS += \ 261 test_sha256 262 endif 263 if ENABLE_SHA512_256 264 check_PROGRAMS += \ 265 test_sha512_256 266 endif 267 268 if HAVE_POSIX_THREADS 269 if ENABLE_UPGRADE 270 if USE_THREADS 271 check_PROGRAMS += test_upgrade test_upgrade_large test_upgrade_vlarge 272 if ENABLE_HTTPS 273 if USE_UPGRADE_TLS_TESTS 274 check_PROGRAMS += test_upgrade_tls test_upgrade_large_tls test_upgrade_vlarge_tls 275 endif 276 endif 277 endif 278 endif 279 endif 280 281 if HAVE_POSTPROCESSOR 282 check_PROGRAMS += \ 283 test_postprocessor \ 284 test_postprocessor_large \ 285 test_postprocessor_amp 286 endif 287 288 # Do not test trigger of select by shutdown of listen socket 289 # on Cygwin as this ability is deliberately ignored on Cygwin 290 # to improve compatibility with core OS. 291 if !CYGWIN_TARGET 292 if HAVE_POSIX_THREADS 293 if HAVE_LISTEN_SHUTDOWN 294 check_PROGRAMS += \ 295 test_shutdown_select \ 296 test_shutdown_poll 297 else 298 check_PROGRAMS += \ 299 test_shutdown_select_ignore \ 300 test_shutdown_poll_ignore 301 endif 302 endif 303 endif 304 305 if HAVE_ANYAUTH 306 if HAVE_MESSAGES 307 check_PROGRAMS += \ 308 test_auth_parse 309 endif 310 endif 311 if ENABLE_DAUTH 312 check_PROGRAMS += \ 313 test_str_quote \ 314 test_dauth_userdigest \ 315 test_dauth_userhash \ 316 test_dauth_malformed 317 endif 318 if ENABLE_BAUTH 319 check_PROGRAMS += \ 320 test_str_base64 321 endif 322 323 324 if HEAVY_TESTS 325 if TESTS_STRESS_OS 326 check_PROGRAMS += \ 327 test_client_put_hard_close_stress_os \ 328 test_client_put_steps_hard_close_stress_os \ 329 test_client_put_chunked_steps_hard_close_stress_os 330 endif 331 endif 332 333 334 TESTS = $(check_PROGRAMS) 335 336 update-po-POTFILES.in: $(top_srcdir)/po/POTFILES.in 337 338 $(top_srcdir)/po/POTFILES.in: $(srcdir)/Makefile.am 339 @echo "Creating $@" 340 @echo src/include/microhttpd.h > "$@" && \ 341 for src in $(am__libmicrohttpd_la_SOURCES_DIST) ; do \ 342 echo "$(subdir)/$$src" >> "$@" ; \ 343 done 344 345 test_start_stop_SOURCES = \ 346 test_start_stop.c 347 test_start_stop_LDADD = \ 348 libmicrohttpd.la 349 350 test_daemon_SOURCES = \ 351 test_daemon.c 352 test_daemon_LDADD = \ 353 $(builddir)/libmicrohttpd.la 354 355 test_response_entries_SOURCES = \ 356 test_response_entries.c 357 test_response_entries_LDADD = \ 358 libmicrohttpd.la 359 360 test_upgrade_SOURCES = \ 361 test_upgrade.c test_helpers.h mhd_sockets.h 362 test_upgrade_CPPFLAGS = \ 363 $(AM_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) 364 test_upgrade_CFLAGS = \ 365 $(AM_CFLAGS) $(PTHREAD_CFLAGS) $(MHD_TLS_LIB_CFLAGS) 366 test_upgrade_LDFLAGS = \ 367 $(MHD_TLS_LIB_LDFLAGS) 368 test_upgrade_LDADD = \ 369 $(builddir)/libmicrohttpd.la \ 370 $(MHD_TLS_LIBDEPS) \ 371 $(PTHREAD_LIBS) 372 373 test_upgrade_large_SOURCES = \ 374 $(test_upgrade_SOURCES) 375 test_upgrade_large_CPPFLAGS = \ 376 $(test_upgrade_CPPFLAGS) 377 test_upgrade_large_CFLAGS = \ 378 $(test_upgrade_CFLAGS) 379 test_upgrade_large_LDFLAGS = \ 380 $(test_upgrade_LDFLAGS) 381 test_upgrade_large_LDADD = \ 382 $(test_upgrade_LDADD) 383 384 test_upgrade_vlarge_SOURCES = \ 385 $(test_upgrade_SOURCES) 386 test_upgrade_vlarge_CPPFLAGS = \ 387 $(test_upgrade_CPPFLAGS) 388 test_upgrade_vlarge_CFLAGS = \ 389 $(test_upgrade_CFLAGS) 390 test_upgrade_vlarge_LDFLAGS = \ 391 $(test_upgrade_LDFLAGS) 392 test_upgrade_vlarge_LDADD = \ 393 $(test_upgrade_LDADD) 394 395 test_upgrade_tls_SOURCES = \ 396 $(test_upgrade_SOURCES) 397 test_upgrade_tls_CPPFLAGS = \ 398 $(test_upgrade_CPPFLAGS) 399 test_upgrade_tls_CFLAGS = \ 400 $(test_upgrade_CFLAGS) 401 test_upgrade_tls_LDFLAGS = \ 402 $(test_upgrade_LDFLAGS) 403 test_upgrade_tls_LDADD = \ 404 $(test_upgrade_LDADD) 405 406 test_upgrade_large_tls_SOURCES = \ 407 $(test_upgrade_SOURCES) 408 test_upgrade_large_tls_CPPFLAGS = \ 409 $(test_upgrade_CPPFLAGS) 410 test_upgrade_large_tls_CFLAGS = \ 411 $(test_upgrade_CFLAGS) 412 test_upgrade_large_tls_LDFLAGS = \ 413 $(test_upgrade_LDFLAGS) 414 test_upgrade_large_tls_LDADD = \ 415 $(test_upgrade_LDADD) 416 417 test_upgrade_vlarge_tls_SOURCES = \ 418 $(test_upgrade_SOURCES) 419 test_upgrade_vlarge_tls_CPPFLAGS = \ 420 $(test_upgrade_CPPFLAGS) 421 test_upgrade_vlarge_tls_CFLAGS = \ 422 $(test_upgrade_CFLAGS) 423 test_upgrade_vlarge_tls_LDFLAGS = \ 424 $(test_upgrade_LDFLAGS) 425 test_upgrade_vlarge_tls_LDADD = \ 426 $(test_upgrade_LDADD) 427 428 test_postprocessor_SOURCES = \ 429 test_postprocessor.c 430 test_postprocessor_CPPFLAGS = \ 431 $(AM_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) 432 test_postprocessor_CFLAGS = \ 433 $(AM_CFLAGS) $(MHD_TLS_LIB_CFLAGS) 434 test_postprocessor_LDADD = \ 435 $(builddir)/libmicrohttpd.la 436 437 test_postprocessor_amp_SOURCES = \ 438 test_postprocessor_amp.c 439 test_postprocessor_amp_CPPFLAGS = \ 440 $(AM_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) 441 test_postprocessor_amp_CFLAGS = \ 442 $(AM_CFLAGS) $(MHD_TLS_LIB_CFLAGS) 443 test_postprocessor_amp_LDADD = \ 444 $(builddir)/libmicrohttpd.la 445 446 test_postprocessor_large_SOURCES = \ 447 test_postprocessor_large.c 448 test_postprocessor_large_CPPFLAGS = \ 449 $(AM_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) 450 test_postprocessor_large_CFLAGS = \ 451 $(AM_CFLAGS) $(MHD_TLS_LIB_CFLAGS) 452 test_postprocessor_large_LDADD = \ 453 $(builddir)/libmicrohttpd.la 454 455 test_postprocessor_md_SOURCES = \ 456 test_postprocessor_md.c postprocessor.h postprocessor.c \ 457 internal.h internal.c mhd_str.h mhd_str.c \ 458 mhd_panic.h mhd_panic.c 459 test_postprocessor_md_CPPFLAGS = \ 460 $(AM_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) 461 462 test_shutdown_select_SOURCES = \ 463 test_shutdown_select.c 464 test_shutdown_select_CFLAGS = $(AM_CFLAGS) 465 test_shutdown_select_LDADD = $(LDADD) 466 if USE_POSIX_THREADS 467 test_shutdown_select_CFLAGS += \ 468 $(PTHREAD_CFLAGS) 469 test_shutdown_select_LDADD += \ 470 $(PTHREAD_LIBS) 471 endif 472 473 test_shutdown_poll_SOURCES = \ 474 test_shutdown_select.c mhd_threads.h 475 test_shutdown_poll_CFLAGS = $(AM_CFLAGS) 476 test_shutdown_poll_LDADD = $(LDADD) 477 if USE_POSIX_THREADS 478 test_shutdown_poll_CFLAGS += \ 479 $(AM_CFLAGS) $(PTHREAD_CFLAGS) 480 test_shutdown_poll_LDADD += \ 481 $(PTHREAD_LIBS) 482 endif 483 484 test_shutdown_select_ignore_SOURCES = \ 485 test_shutdown_select.c 486 test_shutdown_select_ignore_CFLAGS = $(AM_CFLAGS) 487 test_shutdown_select_ignore_LDADD = $(LDADD) 488 if USE_POSIX_THREADS 489 test_shutdown_select_ignore_CFLAGS += \ 490 $(PTHREAD_CFLAGS) 491 test_shutdown_select_ignore_LDADD += \ 492 $(PTHREAD_LIBS) 493 endif 494 495 test_shutdown_poll_ignore_SOURCES = \ 496 test_shutdown_select.c mhd_threads.h 497 test_shutdown_poll_ignore_CFLAGS = $(AM_CFLAGS) 498 test_shutdown_poll_ignore_LDADD = $(LDADD) 499 if USE_POSIX_THREADS 500 test_shutdown_poll_ignore_CFLAGS += \ 501 $(AM_CFLAGS) $(PTHREAD_CFLAGS) 502 test_shutdown_poll_ignore_LDADD += \ 503 $(PTHREAD_LIBS) 504 endif 505 506 test_str_compare_SOURCES = \ 507 test_str.c test_helpers.h mhd_str.c mhd_str.h 508 509 test_str_to_value_SOURCES = \ 510 test_str.c test_helpers.h mhd_str.c mhd_str.h 511 512 test_str_from_value_SOURCES = \ 513 test_str.c test_helpers.h mhd_str.c mhd_str.h 514 515 test_str_token_SOURCES = \ 516 test_str_token.c mhd_str.c mhd_str.h 517 518 test_str_token_remove_SOURCES = \ 519 test_str_token_remove.c mhd_str.c mhd_str.h mhd_assert.h ../include/mhd_options.h 520 521 test_str_tokens_remove_SOURCES = \ 522 test_str_tokens_remove.c mhd_str.c mhd_str.h mhd_assert.h ../include/mhd_options.h 523 524 test_http_reasons_SOURCES = \ 525 test_http_reasons.c \ 526 reason_phrase.c mhd_str.c mhd_str.h 527 528 test_md5_SOURCES = \ 529 test_md5.c test_helpers.h mhd_md5_wrap.h ../include/mhd_options.h 530 if ! ENABLE_MD5_EXT 531 test_md5_SOURCES += \ 532 md5.c md5.h mhd_bithelpers.h mhd_byteorder.h mhd_align.h 533 test_md5_CPPFLAGS = $(AM_CPPFLAGS) 534 test_md5_CFLAGS = $(AM_CFLAGS) 535 test_md5_LDFLAGS = $(AM_LDFLAGS) 536 test_md5_LDADD = $(LDADD) 537 else 538 test_md5_SOURCES += \ 539 md5_ext.c md5_ext.h 540 test_md5_CPPFLAGS = $(AM_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) 541 test_md5_CFLAGS = $(AM_CFLAGS) $(MHD_TLS_LIB_CFLAGS) 542 test_md5_LDFLAGS = $(AM_LDFLAGS) $(MHD_TLS_LIB_LDFLAGS) 543 test_md5_LDADD = $(MHD_TLS_LIBDEPS) $(LDADD) 544 endif 545 546 test_sha256_SOURCES = \ 547 test_sha256.c test_helpers.h mhd_sha256_wrap.h ../include/mhd_options.h 548 if ! ENABLE_SHA256_EXT 549 test_sha256_SOURCES += \ 550 sha256.c sha256.h mhd_bithelpers.h mhd_byteorder.h mhd_align.h 551 test_sha256_CPPFLAGS = $(AM_CPPFLAGS) 552 test_sha256_CFLAGS = $(AM_CFLAGS) 553 test_sha256_LDFLAGS = $(AM_LDFLAGS) 554 test_sha256_LDADD = $(LDADD) 555 else 556 test_sha256_SOURCES += \ 557 sha256_ext.c sha256_ext.h 558 test_sha256_CPPFLAGS = $(AM_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) 559 test_sha256_CFLAGS = $(AM_CFLAGS) $(MHD_TLS_LIB_CFLAGS) 560 test_sha256_LDFLAGS = $(AM_LDFLAGS) $(MHD_TLS_LIB_LDFLAGS) 561 test_sha256_LDADD = $(MHD_TLS_LIBDEPS) $(LDADD) 562 endif 563 564 test_sha512_256_SOURCES = \ 565 test_sha512_256.c test_helpers.h \ 566 sha512_256.c sha512_256.h mhd_bithelpers.h mhd_byteorder.h mhd_align.h 567 568 test_sha1_SOURCES = \ 569 test_sha1.c test_helpers.h \ 570 sha1.c sha1.h mhd_bithelpers.h mhd_byteorder.h mhd_align.h 571 572 test_auth_parse_SOURCES = \ 573 test_auth_parse.c gen_auth.c gen_auth.h mhd_str.h mhd_str.c mhd_assert.h 574 test_auth_parse_CPPFLAGS = \ 575 $(AM_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) 576 577 test_str_quote_SOURCES = \ 578 test_str_quote.c mhd_str.h mhd_str.c mhd_assert.h 579 580 test_str_base64_SOURCES = \ 581 test_str_base64.c mhd_str.h mhd_str.c mhd_assert.h 582 583 test_str_pct_SOURCES = \ 584 test_str_pct.c mhd_str.h mhd_str.c mhd_assert.h 585 586 test_str_bin_hex_SOURCES = \ 587 test_str_bin_hex.c mhd_str.h mhd_str.c mhd_assert.h 588 589 test_options_SOURCES = \ 590 test_options.c 591 test_options_LDADD = \ 592 $(builddir)/libmicrohttpd.la 593 594 # The environment-driven daemon option matrix (see mhd_opt_matrix.h and 595 # contrib/run-option-matrix.sh). It uses the public API only, so it is 596 # simply compiled into every test that honours the matrix. 597 MHD_OPT_MATRIX_SOURCES = \ 598 mhd_opt_matrix.c mhd_opt_matrix.h 599 600 test_rq_shift_back_SOURCES = \ 601 test_rq_shift_back.c mhd_sockets.h mhd_assert.h \ 602 $(MHD_OPT_MATRIX_SOURCES) 603 test_rq_shift_back_LDADD = \ 604 $(builddir)/libmicrohttpd.la 605 606 test_chunked_ext_SOURCES = \ 607 test_chunked_ext.c mhd_sockets.h mhd_assert.h \ 608 $(MHD_OPT_MATRIX_SOURCES) 609 test_chunked_ext_LDADD = \ 610 $(builddir)/libmicrohttpd.la 611 612 test_raw_requests_SOURCES = \ 613 test_raw_requests.c mhd_sockets.h mhd_assert.h \ 614 $(MHD_OPT_MATRIX_SOURCES) 615 test_raw_requests_LDADD = \ 616 $(builddir)/libmicrohttpd.la 617 618 test_option_matrix_SOURCES = \ 619 test_option_matrix.c mhd_sockets.h mhd_assert.h \ 620 $(MHD_OPT_MATRIX_SOURCES) 621 test_option_matrix_LDADD = \ 622 $(builddir)/libmicrohttpd.la 623 624 test_dauth_malformed_SOURCES = \ 625 test_dauth_malformed.c mhd_sockets.h mhd_assert.h \ 626 $(MHD_OPT_MATRIX_SOURCES) 627 test_dauth_malformed_LDADD = \ 628 $(builddir)/libmicrohttpd.la 629 630 test_client_put_shutdown_SOURCES = \ 631 test_client_put_stop.c 632 test_client_put_shutdown_LDADD = \ 633 libmicrohttpd.la 634 635 test_client_put_close_SOURCES = \ 636 test_client_put_stop.c 637 test_client_put_close_LDADD = \ 638 libmicrohttpd.la 639 640 test_client_put_hard_close_SOURCES = \ 641 test_client_put_stop.c 642 test_client_put_hard_close_LDADD = \ 643 libmicrohttpd.la 644 645 test_client_put_hard_close_stress_os_SOURCES = \ 646 $(test_client_put_hard_close_SOURCES) 647 test_client_put_hard_close_stress_os_LDADD = \ 648 $(test_client_put_hard_close_LDADD) 649 650 test_client_put_steps_shutdown_SOURCES = \ 651 test_client_put_stop.c 652 test_client_put_steps_shutdown_LDADD = \ 653 libmicrohttpd.la 654 655 test_client_put_steps_close_SOURCES = \ 656 test_client_put_stop.c 657 test_client_put_steps_close_LDADD = \ 658 libmicrohttpd.la 659 660 test_client_put_steps_hard_close_SOURCES = \ 661 test_client_put_stop.c 662 test_client_put_steps_hard_close_LDADD = \ 663 libmicrohttpd.la 664 665 test_client_put_steps_hard_close_stress_os_SOURCES = \ 666 $(test_client_put_steps_hard_close_SOURCES) 667 test_client_put_steps_hard_close_stress_os_LDADD = \ 668 $(test_client_put_steps_hard_close_LDADD) 669 670 test_client_put_chunked_shutdown_SOURCES = \ 671 test_client_put_stop.c 672 test_client_put_chunked_shutdown_LDADD = \ 673 libmicrohttpd.la 674 675 test_client_put_chunked_close_SOURCES = \ 676 test_client_put_stop.c 677 test_client_put_chunked_close_LDADD = \ 678 libmicrohttpd.la 679 680 test_client_put_chunked_hard_close_SOURCES = \ 681 test_client_put_stop.c 682 test_client_put_chunked_hard_close_LDADD = \ 683 libmicrohttpd.la 684 685 test_client_put_chunked_steps_shutdown_SOURCES = \ 686 test_client_put_stop.c 687 test_client_put_chunked_steps_shutdown_LDADD = \ 688 libmicrohttpd.la 689 690 test_client_put_chunked_steps_close_SOURCES = \ 691 test_client_put_stop.c 692 test_client_put_chunked_steps_close_LDADD = \ 693 libmicrohttpd.la 694 695 test_client_put_chunked_steps_hard_close_SOURCES = \ 696 test_client_put_stop.c 697 test_client_put_chunked_steps_hard_close_LDADD = \ 698 libmicrohttpd.la 699 700 test_client_put_chunked_steps_hard_close_stress_os_SOURCES = \ 701 $(test_client_put_chunked_steps_hard_close_SOURCES) 702 test_client_put_chunked_steps_hard_close_stress_os_LDADD = \ 703 $(test_client_put_chunked_steps_hard_close_LDADD) 704 705 test_set_panic_SOURCES = \ 706 test_set_panic.c 707 test_set_panic_LDADD = \ 708 libmicrohttpd.la 709 710 test_dauth_userdigest_SOURCES = \ 711 test_dauth_userdigest.c 712 test_dauth_userdigest_LDADD = \ 713 libmicrohttpd.la 714 715 test_dauth_userhash_SOURCES = \ 716 test_dauth_userhash.c 717 test_dauth_userhash_LDADD = \ 718 libmicrohttpd.la 719 720 test_mhd_version_SOURCES = \ 721 test_mhd_version.c 722 test_mhd_version_LDADD = \ 723 libmicrohttpd.la 724 725 .PHONY: update-po-POTFILES.in