| 1 |
# This Makefile.am is in the public domain |
| 2 |
SUBDIRS = . |
| 3 |
|
| 4 |
AM_CPPFLAGS = \ |
| 5 |
-I$(top_srcdir)/src/include \ |
| 6 |
$(CPPFLAGS_ac) |
| 7 |
|
| 8 |
AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@ |
| 9 |
|
| 10 |
AM_LDFLAGS = $(LDFLAGS_ac) |
| 11 |
|
| 12 |
AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac) |
| 13 |
|
| 14 |
if USE_COVERAGE |
| 15 |
AM_CFLAGS += --coverage |
| 16 |
endif |
| 17 |
|
| 18 |
$(top_builddir)/src/microhttpd/libmicrohttpd.la: $(top_builddir)/src/microhttpd/Makefile |
| 19 |
@echo ' cd $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la'; \ |
| 20 |
$(am__cd) $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la |
| 21 |
|
| 22 |
# example programs |
| 23 |
noinst_PROGRAMS = \ |
| 24 |
hellobrowser \ |
| 25 |
logging \ |
| 26 |
responseheaders |
| 27 |
|
| 28 |
if ENABLE_BAUTH |
| 29 |
noinst_PROGRAMS += \ |
| 30 |
basicauthentication |
| 31 |
if ENABLE_HTTPS |
| 32 |
noinst_PROGRAMS += \ |
| 33 |
tlsauthentication |
| 34 |
endif |
| 35 |
endif |
| 36 |
|
| 37 |
if HAVE_POSTPROCESSOR |
| 38 |
noinst_PROGRAMS += simplepost largepost sessions |
| 39 |
endif |
| 40 |
|
| 41 |
if HAVE_W32 |
| 42 |
AM_CPPFLAGS += -DWINDOWS |
| 43 |
endif |
| 44 |
|
| 45 |
if HAVE_EXPERIMENTAL |
| 46 |
noinst_PROGRAMS += websocket |
| 47 |
endif |
| 48 |
|
| 49 |
basicauthentication_SOURCES = \ |
| 50 |
basicauthentication.c |
| 51 |
basicauthentication_LDADD = \ |
| 52 |
$(top_builddir)/src/microhttpd/libmicrohttpd.la |
| 53 |
|
| 54 |
hellobrowser_SOURCES = \ |
| 55 |
hellobrowser.c |
| 56 |
hellobrowser_LDADD = \ |
| 57 |
$(top_builddir)/src/microhttpd/libmicrohttpd.la |
| 58 |
|
| 59 |
logging_SOURCES = \ |
| 60 |
logging.c |
| 61 |
logging_LDADD = \ |
| 62 |
$(top_builddir)/src/microhttpd/libmicrohttpd.la |
| 63 |
|
| 64 |
responseheaders_SOURCES = \ |
| 65 |
responseheaders.c |
| 66 |
responseheaders_LDADD = \ |
| 67 |
$(top_builddir)/src/microhttpd/libmicrohttpd.la |
| 68 |
|
| 69 |
sessions_SOURCES = \ |
| 70 |
sessions.c |
| 71 |
sessions_LDADD = \ |
| 72 |
$(top_builddir)/src/microhttpd/libmicrohttpd.la |
| 73 |
|
| 74 |
tlsauthentication_SOURCES = \ |
| 75 |
tlsauthentication.c |
| 76 |
tlsauthentication_LDADD = \ |
| 77 |
$(top_builddir)/src/microhttpd/libmicrohttpd.la |
| 78 |
|
| 79 |
simplepost_SOURCES = \ |
| 80 |
simplepost.c |
| 81 |
simplepost_LDADD = \ |
| 82 |
$(top_builddir)/src/microhttpd/libmicrohttpd.la |
| 83 |
|
| 84 |
largepost_SOURCES = \ |
| 85 |
largepost.c |
| 86 |
largepost_LDADD = \ |
| 87 |
$(top_builddir)/src/microhttpd/libmicrohttpd.la |
| 88 |
|
| 89 |
websocket_SOURCES = \ |
| 90 |
websocket.c |
| 91 |
websocket_LDADD = \ |
| 92 |
$(top_builddir)/src/microhttpd/libmicrohttpd.la \ |
| 93 |
$(top_builddir)/src/microhttpd_ws/libmicrohttpd_ws.la |