Makefile.am 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. AUTOMAKE_OPTIONS = foreign no-dependencies
  2. ACLOCAL_AMFLAGS = -I m4
  3. # This is the point release for libevent. It shouldn't include any
  4. # a/b/c/d/e notations.
  5. RELEASE = 1.4
  6. # This is the version info for the libevent binary API. It has three
  7. # numbers:
  8. # Current -- the number of the binary API that we're implementing
  9. # Revision -- which iteration of the implementation of the binary
  10. # API are we supplying?
  11. # Age -- How many previous binary API versions do we also
  12. # support?
  13. #
  14. # If we release a new version that does not change the binary API,
  15. # increment Revision.
  16. #
  17. # If we release a new version that changes the binary API, but does
  18. # not break programs compiled against the old binary API, increment
  19. # Current and Age. Set Revision to 0, since this is the first
  20. # implementation of the new API.
  21. #
  22. # Otherwise, we're changing the binary API and breaking bakward
  23. # compatibility with old binaries. Increment Current. Set Age to 0,
  24. # since we're backward compatible with no previous APIs. Set Revision
  25. # to 0 too.
  26. VERSION_INFO = 4:1:2
  27. ###
  28. # History:
  29. # We started using Libtool around version 1.0d. For all versions from
  30. # 1.0d through 1.3e, we set RELEASE to the version name, and
  31. # VERSION_INFO to something haphazard. The didn't matter, since
  32. # setting RELEASE meant that no version of Libevent was treated as
  33. # binary-compatible with any other version.
  34. #
  35. # As of 1.4.0-beta, we set RELEASE to "1.4", so that releases in the
  36. # 1.4.x series could be potentially binary-compatible with one another,
  37. # but not with any other series. (They aren't.) We didn't necessarily
  38. # set VERSION_INFO correctly, or update it as often as we should have.
  39. # The VERSION_INFO values were:
  40. # 1.4.0-beta .. 1.4.4-stable : 2:0:0 [See note 1]
  41. # 1.4.5-stable : 3:0:1 (compatible ABI change)
  42. # 1.4.6-stable : 3:1:1 (no ABI change)
  43. # 1.4.7-stable : 3:1:1 [see note 1]
  44. # 1.4.8-stable : 3:2:1 (no ABI change)
  45. # 1.4.9-stable : 3:2:1 [see note 1]
  46. # 1.4.10-stable : 3:3:1 (no ABI change)
  47. # 1.4.11-stable .. 1.4.13-stable : 3:3:1 [see note 1]
  48. # 1.4.14a-stable: : 3:3:2 [see note 2]
  49. # 1.4.14b-stable: : 4:0:2 (compatible ABI change)
  50. # 1.4.15-stable: : 4:1:2 (no ABI change)
  51. #
  52. # [1]: Using the same VERSION_INFO value was wrong; we should have been
  53. # updating the Revision field.
  54. # [2]: We set the VERSION_INFO completely wrong on 1.4.14b-stable
  55. bin_SCRIPTS = event_rpcgen.py
  56. EXTRA_DIST = autogen.sh event.h event-internal.h log.h evsignal.h evdns.3 \
  57. evrpc.h evrpc-internal.h min_heap.h \
  58. event.3 \
  59. Doxyfile \
  60. kqueue.c epoll_sub.c epoll.c select.c poll.c signal.c \
  61. evport.c devpoll.c event_rpcgen.py \
  62. sample/Makefile.am sample/Makefile.in sample/event-test.c \
  63. sample/signal-test.c sample/time-test.c \
  64. test/Makefile.am test/Makefile.in test/bench.c test/regress.c \
  65. test/test-eof.c test/test-weof.c test/test-time.c \
  66. test/test-init.c test/test.sh \
  67. compat/sys/queue.h compat/sys/_libevent_time.h \
  68. WIN32-Code/config.h \
  69. WIN32-Code/event-config.h \
  70. WIN32-Code/win32.c \
  71. WIN32-Code/tree.h \
  72. WIN32-Prj/event_test/event_test.dsp \
  73. WIN32-Prj/event_test/test.txt WIN32-Prj/libevent.dsp \
  74. WIN32-Prj/libevent.dsw WIN32-Prj/signal_test/signal_test.dsp \
  75. WIN32-Prj/time_test/time_test.dsp WIN32-Prj/regress/regress.vcproj \
  76. WIN32-Prj/libevent.sln WIN32-Prj/libevent.vcproj \
  77. Makefile.nmake test/Makefile.nmake \
  78. LICENSE
  79. lib_LTLIBRARIES = libevent.la libevent_core.la libevent_extra.la
  80. if BUILD_WIN32
  81. SUBDIRS = . sample
  82. SYS_LIBS = -lws2_32
  83. SYS_SRC = WIN32-Code/win32.c
  84. SYS_INCLUDES = -IWIN32-Code
  85. else
  86. SUBDIRS = . sample test
  87. SYS_LIBS =
  88. SYS_SRC =
  89. SYS_INCLUDES =
  90. endif
  91. BUILT_SOURCES = event-config.h
  92. event-config.h: config.h
  93. echo '/* event-config.h' > $@
  94. echo ' * Generated by autoconf; post-processed by libevent.' >> $@
  95. echo ' * Do not edit this file.' >> $@
  96. echo ' * Do not rely on macros in this file existing in later versions.'>> $@
  97. echo ' */' >> $@
  98. echo '#ifndef _EVENT_CONFIG_H_' >> $@
  99. echo '#define _EVENT_CONFIG_H_' >> $@
  100. sed -e 's/#define /#define _EVENT_/' \
  101. -e 's/#undef /#undef _EVENT_/' \
  102. -e 's/#ifndef /#ifndef _EVENT_/' < config.h >> $@
  103. echo "#endif" >> $@
  104. CORE_SRC = event.c buffer.c evbuffer.c log.c evutil.c $(SYS_SRC)
  105. EXTRA_SRC = event_tagging.c http.c evhttp.h http-internal.h evdns.c \
  106. evdns.h evrpc.c evrpc.h evrpc-internal.h \
  107. strlcpy.c strlcpy-internal.h strlcpy-internal.h
  108. libevent_la_SOURCES = $(CORE_SRC) $(EXTRA_SRC)
  109. libevent_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
  110. libevent_la_LDFLAGS = -release $(RELEASE) -version-info $(VERSION_INFO)
  111. libevent_core_la_SOURCES = $(CORE_SRC)
  112. libevent_core_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
  113. libevent_core_la_LDFLAGS = -release $(RELEASE) -version-info $(VERSION_INFO)
  114. libevent_extra_la_SOURCES = $(EXTRA_SRC)
  115. libevent_extra_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
  116. libevent_extra_la_LDFLAGS = -release $(RELEASE) -version-info $(VERSION_INFO)
  117. include_HEADERS = event.h evhttp.h evdns.h evrpc.h evutil.h
  118. nodist_include_HEADERS = event-config.h
  119. INCLUDES = -I$(srcdir)/compat $(SYS_INCLUDES)
  120. man_MANS = event.3 evdns.3
  121. verify: libevent.la
  122. cd test && make verify
  123. doxygen: FORCE
  124. doxygen $(srcdir)/Doxyfile
  125. FORCE:
  126. DISTCLEANFILES = *~ event-config.h