diff options
Diffstat (limited to 'src/microhttpd/Makefile.am')
-rw-r--r-- | src/microhttpd/Makefile.am | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am new file mode 100644 index 00000000..bb9dead6 --- /dev/null +++ b/src/microhttpd/Makefile.am | |||
@@ -0,0 +1,92 @@ | |||
1 | if USE_PRIVATE_PLIBC_H | ||
2 | PLIBC_INCLUDE = -I$(top_srcdir)/src/include/plibc | ||
3 | endif | ||
4 | |||
5 | AM_CPPFLAGS = \ | ||
6 | $(PLIBC_INCLUDE) \ | ||
7 | -I$(top_srcdir)/src/include \ | ||
8 | -I$(top_srcdir)/src/daemon \ | ||
9 | @LIBGCRYPT_CFLAGS@ | ||
10 | |||
11 | EXTRA_DIST = EXPORT.sym | ||
12 | |||
13 | lib_LTLIBRARIES = \ | ||
14 | libmicrohttpd.la | ||
15 | |||
16 | |||
17 | libmicrohttpd_la_SOURCES = \ | ||
18 | connection.c connection.h \ | ||
19 | reason_phrase.c reason_phrase.h \ | ||
20 | daemon.c \ | ||
21 | internal.c internal.h \ | ||
22 | memorypool.c memorypool.h \ | ||
23 | response.c response.h | ||
24 | libmicrohttpd_la_LDFLAGS = \ | ||
25 | $(MHD_LIB_LDFLAGS) \ | ||
26 | -version-info @LIB_VERSION_CURRENT@:@LIB_VERSION_REVISION@:@LIB_VERSION_AGE@ | ||
27 | |||
28 | if USE_COVERAGE | ||
29 | AM_CFLAGS = --coverage | ||
30 | endif | ||
31 | |||
32 | if !HAVE_TSEARCH | ||
33 | libmicrohttpd_la_SOURCES += \ | ||
34 | tsearch.c tsearch.h | ||
35 | endif | ||
36 | |||
37 | if HAVE_POSTPROCESSOR | ||
38 | libmicrohttpd_la_SOURCES += \ | ||
39 | postprocessor.c | ||
40 | endif | ||
41 | |||
42 | if ENABLE_DAUTH | ||
43 | libmicrohttpd_la_SOURCES += \ | ||
44 | digestauth.c \ | ||
45 | md5.c md5.h | ||
46 | endif | ||
47 | |||
48 | if ENABLE_BAUTH | ||
49 | libmicrohttpd_la_SOURCES += \ | ||
50 | basicauth.c \ | ||
51 | base64.c base64.h | ||
52 | endif | ||
53 | |||
54 | if ENABLE_HTTPS | ||
55 | libmicrohttpd_la_SOURCES += \ | ||
56 | connection_https.c connection_https.h | ||
57 | libmicrohttpd_la_LIBADD = -lgnutls @LIBGCRYPT_LIBS@ | ||
58 | endif | ||
59 | |||
60 | |||
61 | |||
62 | check_PROGRAMS = \ | ||
63 | test_daemon | ||
64 | |||
65 | if HAVE_POSTPROCESSOR | ||
66 | check_PROGRAMS += \ | ||
67 | test_postprocessor \ | ||
68 | test_postprocessor_large \ | ||
69 | test_postprocessor_amp | ||
70 | endif | ||
71 | |||
72 | TESTS = $(check_PROGRAMS) | ||
73 | |||
74 | test_daemon_SOURCES = \ | ||
75 | test_daemon.c | ||
76 | test_daemon_LDADD = \ | ||
77 | $(top_builddir)/src/daemon/libmicrohttpd.la | ||
78 | |||
79 | test_postprocessor_SOURCES = \ | ||
80 | test_postprocessor.c | ||
81 | test_postprocessor_LDADD = \ | ||
82 | $(top_builddir)/src/daemon/libmicrohttpd.la | ||
83 | |||
84 | test_postprocessor_amp_SOURCES = \ | ||
85 | test_postprocessor_amp.c | ||
86 | test_postprocessor_amp_LDADD = \ | ||
87 | $(top_builddir)/src/daemon/libmicrohttpd.la | ||
88 | |||
89 | test_postprocessor_large_SOURCES = \ | ||
90 | test_postprocessor_large.c | ||
91 | test_postprocessor_large_LDADD = \ | ||
92 | $(top_builddir)/src/daemon/libmicrohttpd.la | ||