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