Makefile.am 2.0 KB

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