1AUTOMAKE_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.
5RELEASE = 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)
32VERSION_INFO = 3:3:1
33
34bin_SCRIPTS = event_rpcgen.py
35
36EXTRA_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
58lib_LTLIBRARIES = libevent.la libevent_core.la libevent_extra.la
59
60if BUILD_WIN32
61
62SUBDIRS = . sample
63SYS_LIBS = -lws2_32
64SYS_SRC = WIN32-Code/win32.c
65SYS_INCLUDES = -IWIN32-Code
66
67else
68
69SUBDIRS = . sample test
70SYS_LIBS =
71SYS_SRC =
72SYS_INCLUDES =
73
74endif
75
76BUILT_SOURCES = event-config.h
77
78event-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
92CORE_SRC = event.c buffer.c evbuffer.c log.c evutil.c $(SYS_SRC)
93EXTRA_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
97libevent_la_SOURCES = $(CORE_SRC) $(EXTRA_SRC)
98libevent_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
99libevent_la_LDFLAGS = -release $(RELEASE) -version-info $(VERSION_INFO)
100
101libevent_core_la_SOURCES = $(CORE_SRC)
102libevent_core_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
103libevent_core_la_LDFLAGS = -release $(RELEASE) -version-info $(VERSION_INFO)
104
105libevent_extra_la_SOURCES = $(EXTRA_SRC)
106libevent_extra_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
107libevent_extra_la_LDFLAGS = -release $(RELEASE) -version-info $(VERSION_INFO)
108
109include_HEADERS = event.h evhttp.h evdns.h evrpc.h evutil.h
110
111nodist_include_HEADERS = event-config.h
112
113INCLUDES = -I$(srcdir)/compat $(SYS_INCLUDES)
114
115man_MANS = event.3 evdns.3
116
117verify: libevent.la
118	cd test && make verify
119
120doxygen: FORCE
121	doxygen $(srcdir)/Doxyfile
122FORCE:
123
124DISTCLEANFILES = *~ event-config.h
125