diff options
Diffstat (limited to 'src/microhttpd/Makefile.am')
-rw-r--r-- | src/microhttpd/Makefile.am | 46 |
1 files changed, 44 insertions, 2 deletions
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am index 10a32f59..c4c15608 100644 --- a/src/microhttpd/Makefile.am +++ b/src/microhttpd/Makefile.am | |||
@@ -171,11 +171,25 @@ libmicrohttpd_la_SOURCES += \ | |||
171 | mhd_bithelpers.h mhd_byteorder.h mhd_align.h | 171 | mhd_bithelpers.h mhd_byteorder.h mhd_align.h |
172 | if ENABLE_MD5 | 172 | if ENABLE_MD5 |
173 | libmicrohttpd_la_SOURCES += \ | 173 | libmicrohttpd_la_SOURCES += \ |
174 | mhd_md5_wrap.h | ||
175 | if ! ENABLE_MD5_EXT | ||
176 | libmicrohttpd_la_SOURCES += \ | ||
174 | md5.c md5.h | 177 | md5.c md5.h |
178 | else | ||
179 | libmicrohttpd_la_SOURCES += \ | ||
180 | md5_ext.c md5_ext.h | ||
181 | endif | ||
175 | endif | 182 | endif |
176 | if ENABLE_SHA256 | 183 | if ENABLE_SHA256 |
177 | libmicrohttpd_la_SOURCES += \ | 184 | libmicrohttpd_la_SOURCES += \ |
185 | mhd_sha256_wrap.h | ||
186 | if ! ENABLE_SHA256_EXT | ||
187 | libmicrohttpd_la_SOURCES += \ | ||
178 | sha256.c sha256.h | 188 | sha256.c sha256.h |
189 | else | ||
190 | libmicrohttpd_la_SOURCES += \ | ||
191 | sha256_ext.c sha256_ext.h | ||
192 | endif | ||
179 | endif | 193 | endif |
180 | if ENABLE_SHA512_256 | 194 | if ENABLE_SHA512_256 |
181 | libmicrohttpd_la_SOURCES += \ | 195 | libmicrohttpd_la_SOURCES += \ |
@@ -462,12 +476,40 @@ test_http_reasons_SOURCES = \ | |||
462 | reason_phrase.c mhd_str.c mhd_str.h | 476 | reason_phrase.c mhd_str.c mhd_str.h |
463 | 477 | ||
464 | test_md5_SOURCES = \ | 478 | test_md5_SOURCES = \ |
465 | test_md5.c test_helpers.h \ | 479 | test_md5.c test_helpers.h mhd_md5_wrap.h ../include/mhd_options.h |
480 | if ! ENABLE_MD5_EXT | ||
481 | test_md5_SOURCES += \ | ||
466 | md5.c md5.h mhd_bithelpers.h mhd_byteorder.h mhd_align.h | 482 | md5.c md5.h mhd_bithelpers.h mhd_byteorder.h mhd_align.h |
483 | test_md5_CPPFLAGS = $(AM_CPPFLAGS) | ||
484 | test_md5_CFLAGS = $(AM_CFLAGS) | ||
485 | test_md5_LDFLAGS = $(AM_LDFLAGS) | ||
486 | test_md5_LDADD = $(LDADD) | ||
487 | else | ||
488 | test_md5_SOURCES += \ | ||
489 | md5_ext.c md5_ext.h | ||
490 | test_md5_CPPFLAGS = $(AM_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) | ||
491 | test_md5_CFLAGS = $(AM_CFLAGS) $(MHD_TLS_LIB_CFLAGS) | ||
492 | test_md5_LDFLAGS = $(AM_LDFLAGS) $(MHD_TLS_LIB_LDFLAGS) | ||
493 | test_md5_LDADD = $(MHD_TLS_LIBDEPS) $(LDADD) | ||
494 | endif | ||
467 | 495 | ||
468 | test_sha256_SOURCES = \ | 496 | test_sha256_SOURCES = \ |
469 | test_sha256.c test_helpers.h \ | 497 | test_sha256.c test_helpers.h mhd_sha256_wrap.h ../include/mhd_options.h |
498 | if ! ENABLE_SHA256_EXT | ||
499 | test_sha256_SOURCES += \ | ||
470 | sha256.c sha256.h mhd_bithelpers.h mhd_byteorder.h mhd_align.h | 500 | sha256.c sha256.h mhd_bithelpers.h mhd_byteorder.h mhd_align.h |
501 | test_sha256_CPPFLAGS = $(AM_CPPFLAGS) | ||
502 | test_sha256_CFLAGS = $(AM_CFLAGS) | ||
503 | test_sha256_LDFLAGS = $(AM_LDFLAGS) | ||
504 | test_sha256_LDADD = $(LDADD) | ||
505 | else | ||
506 | test_sha256_SOURCES += \ | ||
507 | sha256_ext.c sha256_ext.h | ||
508 | test_sha256_CPPFLAGS = $(AM_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) | ||
509 | test_sha256_CFLAGS = $(AM_CFLAGS) $(MHD_TLS_LIB_CFLAGS) | ||
510 | test_sha256_LDFLAGS = $(AM_LDFLAGS) $(MHD_TLS_LIB_LDFLAGS) | ||
511 | test_sha256_LDADD = $(MHD_TLS_LIBDEPS) $(LDADD) | ||
512 | endif | ||
471 | 513 | ||
472 | test_sha512_256_SOURCES = \ | 514 | test_sha512_256_SOURCES = \ |
473 | test_sha512_256.c test_helpers.h \ | 515 | test_sha512_256.c test_helpers.h \ |