1 AUTOMAKE_OPTIONS = foreign no-dependencies 2 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 7 # This is the version info for the libevent binary API. It has three 8 # numbers: 9 # Current -- the number of the binary API that we're implementing 10 # Revision -- which iteration of the implementation of the binary 11 # API are we supplying? 12 # Age -- How many previous binary API versions do we also 13 # support? 14 # 15 # If we release a new version that does not change the binary API, 16 # increment Revision. 17 # 18 # If we release a new version that changes the binary API, but does 19 # not break programs compiled against the old binary API, increment 20 # Current and Age. Set Revision to 0, since this is the first 21 # implementation of the new API. 22 # 23 # Otherwise, we're changing the binary API and breaking bakward 24 # compatibility with old binaries. Increment Current. Set Age to 0, 25 # since we're backward compatible with no previous APIs. Set Revision 26 # to 0 too. 27 28 # History: 29 # Libevent 1.4.1 was 2:0:0 30 # Libevent 1.4.2 should be 3:0:0 31 # Libevent 1.4.5 is 3:0:1 (we forgot to increment in the past) 32 VERSION_INFO = 3:3:1 33 34 bin_SCRIPTS = event_rpcgen.py 35 36 EXTRA_DIST = autogen.sh event.h event-internal.h log.h evsignal.h evdns.3 \ 37 evrpc.h evrpc-internal.h min_heap.h \ 38 event.3 \ 39 Doxyfile \ 40 kqueue.c epoll_sub.c epoll.c select.c poll.c signal.c \ 41 evport.c devpoll.c event_rpcgen.py \ 42 sample/Makefile.am sample/Makefile.in sample/event-test.c \ 43 sample/signal-test.c sample/time-test.c \ 44 test/Makefile.am test/Makefile.in test/bench.c test/regress.c \ 45 test/test-eof.c test/test-weof.c test/test-time.c \ 46 test/test-init.c test/test.sh \ 47 compat/sys/queue.h compat/sys/_libevent_time.h \ 48 WIN32-Code/config.h \ 49 WIN32-Code/event-config.h \ 50 WIN32-Code/win32.c \ 51 WIN32-Code/tree.h \ 52 WIN32-Prj/event_test/event_test.dsp \ 53 WIN32-Prj/event_test/test.txt WIN32-Prj/libevent.dsp \ 54 WIN32-Prj/libevent.dsw WIN32-Prj/signal_test/signal_test.dsp \ 55 WIN32-Prj/time_test/time_test.dsp WIN32-Prj/regress/regress.vcproj \ 56 WIN32-Prj/libevent.sln WIN32-Prj/libevent.vcproj 57 58 lib_LTLIBRARIES = libevent.la libevent_core.la libevent_extra.la 59 60 if BUILD_WIN32 61 62 SUBDIRS = . sample 63 SYS_LIBS = -lws2_32 64 SYS_SRC = WIN32-Code/win32.c 65 SYS_INCLUDES = -IWIN32-Code 66 67 else 68 69 SUBDIRS = . sample test 70 SYS_LIBS = 71 SYS_SRC = 72 SYS_INCLUDES = 73 74 endif 75 76 BUILT_SOURCES = event-config.h 77 78 event-config.h: config.h 79 echo '/* event-config.h' > $@ 80 echo ' * Generated by autoconf; post-processed by libevent.' >> $@ 81 echo ' * Do not edit this file.' >> $@ 82 echo ' * Do not rely on macros in this file existing in later versions.'>> $@ 83 echo ' */' >> $@ 84 echo '#ifndef _EVENT_CONFIG_H_' >> $@ 85 echo '#define _EVENT_CONFIG_H_' >> $@ 86 87 sed -e 's/#define /#define _EVENT_/' \ 88 -e 's/#undef /#undef _EVENT_/' \ 89 -e 's/#ifndef /#ifndef _EVENT_/' < config.h >> $@ 90 echo "#endif" >> $@ 91 92 CORE_SRC = event.c buffer.c evbuffer.c log.c evutil.c $(SYS_SRC) 93 EXTRA_SRC = event_tagging.c http.c evhttp.h http-internal.h evdns.c \ 94 evdns.h evrpc.c evrpc.h evrpc-internal.h \ 95 strlcpy.c strlcpy-internal.h strlcpy-internal.h 96 97 libevent_la_SOURCES = $(CORE_SRC) $(EXTRA_SRC) 98 libevent_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS) 99 libevent_la_LDFLAGS = -release $(RELEASE) -version-info $(VERSION_INFO) 100 101 libevent_core_la_SOURCES = $(CORE_SRC) 102 libevent_core_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS) 103 libevent_core_la_LDFLAGS = -release $(RELEASE) -version-info $(VERSION_INFO) 104 105 libevent_extra_la_SOURCES = $(EXTRA_SRC) 106 libevent_extra_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS) 107 libevent_extra_la_LDFLAGS = -release $(RELEASE) -version-info $(VERSION_INFO) 108 109 include_HEADERS = event.h evhttp.h evdns.h evrpc.h evutil.h 110 111 nodist_include_HEADERS = event-config.h 112 113 INCLUDES = -I$(srcdir)/compat $(SYS_INCLUDES) 114 115 man_MANS = event.3 evdns.3 116 117 verify: libevent.la 118 cd test && make verify 119 120 doxygen: FORCE 121 doxygen $(srcdir)/Doxyfile 122 FORCE: 123 124 DISTCLEANFILES = *~ event-config.h 125