blob: 0f4b3d6d43b34e4d1c48d316c1f2b09450fcce80 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
SUBDIRS = .
if USE_PRIVATE_PLIBC_H
PLIBC_INCLUDE = -I$(top_srcdir)/src/include/plibc
endif
AM_CPPFLAGS = \
$(PLIBC_INCLUDE) \
-I$(top_srcdir)/src/include \
@LIBGCRYPT_CFLAGS@
AM_CFLAGS = -DDATA_DIR=\"$(top_srcdir)/src/datadir/\"
if USE_COVERAGE
AM_CFLAGS += --coverage
endif
if ENABLE_SPDY
spdyex = \
spdy_event_loop \
spdy_fileserver \
spdy_response_with_callback
if HAVE_SPDYLAY
spdyex += mhd2spdy
endif
endif
# example programs
noinst_PROGRAMS = \
benchmark \
minimal_example \
dual_stack_example \
minimal_example_comet \
querystring_example \
fileserver_example \
fileserver_example_dirs \
fileserver_example_external_select \
refuse_post_example \
$(spdyex)
if ENABLE_HTTPS
noinst_PROGRAMS += https_fileserver_example
endif
if HAVE_POSTPROCESSOR
noinst_PROGRAMS += \
post_example
if HAVE_MAGIC
bin_PROGRAMS = \
demo
endif
endif
if ENABLE_DAUTH
noinst_PROGRAMS += \
digest_auth_example
endif
if ENABLE_BAUTH
noinst_PROGRAMS += \
authorization_example
endif
if HAVE_W32
IBERTY=-liberty
endif
minimal_example_SOURCES = \
minimal_example.c
minimal_example_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la
demo_SOURCES = \
demo.c
demo_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la \
-lmagic
mhd2spdy_SOURCES = \
mhd2spdy.c \
mhd2spdy_spdy.c mhd2spdy_spdy.h \
mhd2spdy_http.c mhd2spdy_http.h \
mhd2spdy_structures.c mhd2spdy_structures.h
mhd2spdy_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la \
-lssl -lcrypto -lspdylay
benchmark_SOURCES = \
benchmark.c
benchmark_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la
dual_stack_example_SOURCES = \
dual_stack_example.c
dual_stack_example_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la
post_example_SOURCES = \
post_example.c
post_example_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la \
$(IBERTY)
minimal_example_comet_SOURCES = \
minimal_example_comet.c
minimal_example_comet_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la
authorization_example_SOURCES = \
authorization_example.c
authorization_example_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la
digest_auth_example_SOURCES = \
digest_auth_example.c
digest_auth_example_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la
refuse_post_example_SOURCES = \
refuse_post_example.c
refuse_post_example_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la
querystring_example_SOURCES = \
querystring_example.c
querystring_example_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la
fileserver_example_SOURCES = \
fileserver_example.c
fileserver_example_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la
fileserver_example_dirs_SOURCES = \
fileserver_example_dirs.c
fileserver_example_dirs_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la
fileserver_example_external_select_SOURCES = \
fileserver_example_external_select.c
fileserver_example_external_select_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la
https_fileserver_example_SOURCES = \
https_fileserver_example.c
https_fileserver_example_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la
spdy_event_loop_SOURCES = \
spdy_event_loop.c
spdy_event_loop_LDADD = \
$(top_builddir)/src/microspdy/libmicrospdy.la \
-lssl \
-lcrypto \
-lz \
-ldl
spdy_fileserver_SOURCES = \
spdy_fileserver.c
spdy_fileserver_LDADD = \
$(top_builddir)/src/microspdy/libmicrospdy.la \
-lssl \
-lcrypto \
-lz \
-ldl
spdy_response_with_callback_SOURCES = \
spdy_response_with_callback.c
spdy_response_with_callback_LDADD = \
$(top_builddir)/src/microspdy/libmicrospdy.la \
-lssl \
-lcrypto \
-lz \
-ldl
|