diff options
Diffstat (limited to 'src/examples/Makefile.am')
-rw-r--r-- | src/examples/Makefile.am | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/examples/Makefile.am b/src/examples/Makefile.am index 545a236a..ce01107a 100644 --- a/src/examples/Makefile.am +++ b/src/examples/Makefile.am | |||
@@ -68,6 +68,11 @@ noinst_PROGRAMS += \ | |||
68 | endif | 68 | endif |
69 | endif | 69 | endif |
70 | 70 | ||
71 | if HAVE_ZLIB | ||
72 | noinst_PROGRAMS += \ | ||
73 | http_compression | ||
74 | endif | ||
75 | |||
71 | if HAVE_W32 | 76 | if HAVE_W32 |
72 | AM_CFLAGS += -DWINDOWS | 77 | AM_CFLAGS += -DWINDOWS |
73 | endif | 78 | endif |
@@ -198,3 +203,11 @@ https_fileserver_example_CPPFLAGS = \ | |||
198 | $(AM_CPPFLAGS) $(GNUTLS_CPPFLAGS) | 203 | $(AM_CPPFLAGS) $(GNUTLS_CPPFLAGS) |
199 | https_fileserver_example_LDADD = \ | 204 | https_fileserver_example_LDADD = \ |
200 | $(top_builddir)/src/microhttpd/libmicrohttpd.la | 205 | $(top_builddir)/src/microhttpd/libmicrohttpd.la |
206 | |||
207 | http_compression_SOURCES = \ | ||
208 | http_compression.c | ||
209 | http_compression_LDADD = \ | ||
210 | $(top_builddir)/src/microhttpd/libmicrohttpd.la | ||
211 | if HAVE_ZLIB | ||
212 | http_compression_LDADD += -lz | ||
213 | endif \ No newline at end of file | ||