Makefile.am 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. SUBDIRS = . tests
  2. AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
  3. AM_CPPFLAGS += $(BOOST_INCLUDES)
  4. AM_CXXFLAGS = $(KEA_CXXFLAGS)
  5. # Define rule to build logging source files from message file
  6. http_messages.h http_messages.cc: s-messages
  7. s-messages: http_messages.mes
  8. $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/lib/http/http_messages.mes
  9. touch $@
  10. # Tell automake that the message files are built as part of the build process
  11. # (so that they are built before the main library is built).
  12. BUILT_SOURCES = http_messages.h http_messages.cc
  13. # Ensure that the message file is included in the distribution
  14. EXTRA_DIST = http_messages.mes
  15. # Get rid of generated message files on a clean
  16. CLEANFILES = *.gcno *.gcda http_messages.h http_messages.cc s-messages
  17. lib_LTLIBRARIES = libkea-http.la
  18. libkea_http_la_SOURCES = connection.cc connection.h
  19. libkea_http_la_SOURCES += connection_pool.cc connection_pool.h
  20. libkea_http_la_SOURCES += date_time.cc date_time.h
  21. libkea_http_la_SOURCES += http_log.cc http_log.h
  22. libkea_http_la_SOURCES += header_context.h
  23. libkea_http_la_SOURCES += http_acceptor.h
  24. libkea_http_la_SOURCES += http_types.h
  25. libkea_http_la_SOURCES += listener.cc listener.h
  26. libkea_http_la_SOURCES += post_request.cc post_request.h
  27. libkea_http_la_SOURCES += post_request_json.cc post_request_json.h
  28. libkea_http_la_SOURCES += request.cc request.h
  29. libkea_http_la_SOURCES += request_context.h
  30. libkea_http_la_SOURCES += request_parser.cc request_parser.h
  31. libkea_http_la_SOURCES += response.cc response.h
  32. libkea_http_la_SOURCES += response_creator.cc response_creator.h
  33. libkea_http_la_SOURCES += response_creator_factory.h
  34. libkea_http_la_SOURCES += response_json.cc response_json.h
  35. nodist_libkea_http_la_SOURCES = http_messages.cc http_messages.h
  36. libkea_http_la_CXXFLAGS = $(AM_CXXFLAGS)
  37. libkea_http_la_CPPFLAGS = $(AM_CPPFLAGS)
  38. libkea_http_la_LDFLAGS = $(AM_LDFLAGS)
  39. libkea_http_la_LDFLAGS += -no-undefined -version-info 0:0:0
  40. libkea_http_la_LIBADD =
  41. libkea_http_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
  42. libkea_http_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
  43. libkea_http_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
  44. libkea_http_la_LIBADD += $(top_builddir)/src/lib/util/threads/libkea-threads.la
  45. libkea_http_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
  46. libkea_http_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
  47. libkea_http_la_LIBADD += $(LOG4CPLUS_LIBS) $(BOOST_LIBS)
  48. # Specify the headers for copying into the installation directory tree.
  49. libkea_process_includedir = $(pkgincludedir)/http
  50. libkea_process_include_HEADERS = \
  51. http_log.h