2008-02-18 20:13:27 +00:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
2009-01-22 02:47:35 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2002-04-09 17:02:38 +00:00
|
|
|
|
2007-11-04 02:21:31 +00:00
|
|
|
# This is the version info for the libevent binary API. It has three
|
|
|
|
# numbers:
|
|
|
|
# Current -- the number of the binary API that we're implementing
|
|
|
|
# Revision -- which iteration of the implementation of the binary
|
|
|
|
# API are we supplying?
|
|
|
|
# Age -- How many previous binary API versions do we also
|
|
|
|
# support?
|
|
|
|
#
|
|
|
|
# If we release a new version that does not change the binary API,
|
|
|
|
# increment Revision.
|
|
|
|
#
|
|
|
|
# If we release a new version that changes the binary API, but does
|
|
|
|
# not break programs compiled against the old binary API, increment
|
|
|
|
# Current and Age. Set Revision to 0, since this is the first
|
|
|
|
# implementation of the new API.
|
|
|
|
#
|
|
|
|
# Otherwise, we're changing the binary API and breaking bakward
|
|
|
|
# compatibility with old binaries. Increment Current. Set Age to 0,
|
|
|
|
# since we're backward compatible with no previous APIs. Set Revision
|
|
|
|
# to 0 too.
|
2009-04-17 17:22:32 +00:00
|
|
|
#
|
2009-07-13 20:02:49 +00:00
|
|
|
# ABI version history for this package effectively begins with package
|
|
|
|
# version 2.0, because package version 1.4 erroneously applied both
|
|
|
|
# -release and -version-info to the same libraries; -release takes
|
|
|
|
# precedence, so the -version-info history of 1.4 libraries is moot.
|
|
|
|
# We are starting the numbering at 2 rather than 1 to avoid confusion.
|
2009-04-17 17:22:32 +00:00
|
|
|
#
|
2009-07-13 20:02:49 +00:00
|
|
|
# 2:0:0 -- Libevent 2.0.1-alpha.
|
|
|
|
VERSION_INFO = 2:0:0
|
2007-11-04 02:21:31 +00:00
|
|
|
|
2005-08-22 01:34:34 +00:00
|
|
|
bin_SCRIPTS = event_rpcgen.py
|
|
|
|
|
2009-04-17 00:24:58 +00:00
|
|
|
pkgconfigdir=$(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA=libevent.pc
|
|
|
|
|
2009-01-13 19:20:14 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
autogen.sh evdns.3 \
|
2006-10-09 01:55:23 +00:00
|
|
|
event.3 \
|
2009-04-17 00:24:58 +00:00
|
|
|
libevent.pc \
|
2009-03-12 17:43:43 +00:00
|
|
|
Doxyfile \
|
2007-11-07 03:40:26 +00:00
|
|
|
kqueue.c epoll_sub.c epoll.c select.c poll.c signal.c \
|
2009-11-05 18:49:08 +00:00
|
|
|
evport.c devpoll.c win32select.c event_rpcgen.py \
|
2009-04-14 20:11:10 +00:00
|
|
|
event_iocp.c buffer_iocp.c iocp-internal.h \
|
2003-04-14 17:32:19 +00:00
|
|
|
sample/Makefile.am sample/Makefile.in sample/event-test.c \
|
|
|
|
sample/signal-test.c sample/time-test.c \
|
|
|
|
test/Makefile.am test/Makefile.in test/bench.c test/regress.c \
|
|
|
|
test/test-eof.c test/test-weof.c test/test-time.c \
|
2003-10-25 21:49:44 +00:00
|
|
|
test/test-init.c test/test.sh \
|
Remove compat/sys/_time.h
I've gone through everything that it declared to see where it was used,
and it seems that we probably don't need it anywhere.
Here's what it declared, and why I think we're okay dropping it.
o struct timeval {}
(Used all over, and we can't really get away with declaring it ourselves;
we need the same definition the system uses. If we can't find struct
timeval, we're pretty much sunk.)
o struct timespec {}
(Used in event.c, evdns.c, kqueue.c, evport.c. Of these,
kqueue.c and event.c include sys/_time.h. event.c conditions its use on
_EVENT_HAVE_CLOCK_GETTIME, and kqueue() only works if timespec is defined.)
o TIMEVAL_TO_TIMESPEC
(Used in kqueue.c, but every place with kqueue has sys/time.h)
o struct timezone {}
(event2/util.h has a forward declaration; only evutil.c references it and
doesn't look at its contents.)
o timerclear, timerisset, timercmp, timeradd, timersub
(Everything now uses the evutil_timer* variants.)
o ITIMER_REAL, ITIMER_VIRTUAL, ITIMER_PROF, struct itemerval
(These are only used in test/regress.c, which does not include _time.h)
o CLOCK_REALTIME
(Only used in evdns.c, which does not include _time.h)
o TIMESPEC_TO_TIMEVAL
o DST_*
o timespecclear, timespecisset, timespeccmp, timespecadd, timespecsub
o struct clockinfo {}
o CLOCK_VIRTUAL, CLOCK_PROF
o TIMER_RELTIME, TIMER_ABSTIME
(unused)
svn:r1494
2009-11-03 19:54:56 +00:00
|
|
|
compat/sys/queue.h \
|
2009-01-21 07:51:25 +00:00
|
|
|
evthread_win32.c \
|
|
|
|
evthread_pthread.c \
|
2009-04-17 06:56:23 +00:00
|
|
|
whatsnew-2.0.txt \
|
2009-05-05 16:52:37 +00:00
|
|
|
bufferevent_async.c \
|
2009-05-15 01:38:23 +00:00
|
|
|
WIN32-Code/event-config.h \
|
2007-12-20 22:20:06 +00:00
|
|
|
WIN32-Code/tree.h \
|
2006-08-11 15:20:10 +00:00
|
|
|
WIN32-Prj/event_test/event_test.dsp \
|
2003-09-25 03:25:17 +00:00
|
|
|
WIN32-Prj/event_test/test.txt WIN32-Prj/libevent.dsp \
|
2006-08-11 15:20:10 +00:00
|
|
|
WIN32-Prj/libevent.dsw WIN32-Prj/signal_test/signal_test.dsp \
|
2009-11-05 20:45:07 +00:00
|
|
|
WIN32-Prj/time_test/time_test.dsp \
|
|
|
|
Makefile.nmake test/Makefile.nmake
|
2002-04-09 17:02:38 +00:00
|
|
|
|
2007-11-03 23:45:38 +00:00
|
|
|
lib_LTLIBRARIES = libevent.la libevent_core.la libevent_extra.la
|
2009-01-21 07:51:25 +00:00
|
|
|
if PTHREADS
|
|
|
|
lib_LTLIBRARIES += libevent_pthreads.la
|
|
|
|
endif
|
2009-07-28 04:03:57 +00:00
|
|
|
if OPENSSL
|
|
|
|
lib_LTLIBRARIES += libevent_openssl.la
|
|
|
|
endif
|
2002-04-09 17:02:38 +00:00
|
|
|
|
2008-02-28 02:47:43 +00:00
|
|
|
SUBDIRS = . include sample test
|
2007-12-06 19:35:55 +00:00
|
|
|
|
2006-09-27 03:07:38 +00:00
|
|
|
if BUILD_WIN32
|
|
|
|
|
|
|
|
SYS_LIBS = -lws2_32
|
2009-11-05 18:49:08 +00:00
|
|
|
SYS_SRC = win32select.c evthread_win32.c buffer_iocp.c event_iocp.c \
|
2009-05-05 16:52:37 +00:00
|
|
|
bufferevent_async.c
|
2006-09-27 03:07:38 +00:00
|
|
|
SYS_INCLUDES = -IWIN32-Code
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
SYS_LIBS =
|
|
|
|
SYS_SRC =
|
|
|
|
SYS_INCLUDES =
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2007-11-07 06:01:57 +00:00
|
|
|
BUILT_SOURCES = event-config.h
|
|
|
|
|
|
|
|
event-config.h: config.h
|
|
|
|
echo '/* event-config.h' > $@
|
2009-04-17 06:55:08 +00:00
|
|
|
echo ' *' >> $@
|
|
|
|
echo ' * This file was generated by autoconf when libevent was built, and post-' >> $@
|
|
|
|
echo ' * processed by Libevent so that its macros would have a uniform prefix.' >> $@
|
|
|
|
echo ' *' >> $@
|
|
|
|
echo ' * DO NOT EDIT THIS FILE.' >> $@
|
|
|
|
echo ' *' >> $@
|
2007-11-07 06:01:57 +00:00
|
|
|
echo ' * Do not rely on macros in this file existing in later versions.'>> $@
|
|
|
|
echo ' */' >> $@
|
|
|
|
echo '#ifndef _EVENT_CONFIG_H_' >> $@
|
|
|
|
echo '#define _EVENT_CONFIG_H_' >> $@
|
|
|
|
|
|
|
|
sed -e 's/#define /#define _EVENT_/' \
|
|
|
|
-e 's/#undef /#undef _EVENT_/' \
|
|
|
|
-e 's/#ifndef /#ifndef _EVENT_/' < config.h >> $@
|
|
|
|
echo "#endif" >> $@
|
|
|
|
|
2009-02-02 19:22:13 +00:00
|
|
|
CORE_SRC = event.c buffer.c \
|
|
|
|
bufferevent.c bufferevent_sock.c bufferevent_filter.c \
|
2009-05-05 02:59:26 +00:00
|
|
|
bufferevent_pair.c listener.c \
|
2009-01-13 19:20:14 +00:00
|
|
|
evmap.c log.c evutil.c strlcpy.c $(SYS_SRC)
|
2009-11-16 22:25:46 +00:00
|
|
|
EXTRA_SRC = event_tagging.c http.c evdns.c evrpc.c
|
2009-01-13 19:19:50 +00:00
|
|
|
|
2007-11-03 23:45:38 +00:00
|
|
|
|
|
|
|
libevent_la_SOURCES = $(CORE_SRC) $(EXTRA_SRC)
|
2006-09-27 03:07:38 +00:00
|
|
|
libevent_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
|
2009-07-13 20:02:49 +00:00
|
|
|
libevent_la_LDFLAGS = -version-info $(VERSION_INFO)
|
2002-04-09 17:02:38 +00:00
|
|
|
|
2007-11-03 23:45:38 +00:00
|
|
|
libevent_core_la_SOURCES = $(CORE_SRC)
|
|
|
|
libevent_core_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
|
2009-07-13 20:02:49 +00:00
|
|
|
libevent_core_la_LDFLAGS = -version-info $(VERSION_INFO)
|
2007-11-03 23:45:38 +00:00
|
|
|
|
2009-01-21 07:51:25 +00:00
|
|
|
if PTHREADS
|
|
|
|
libevent_pthreads_la_SOURCES = evthread_pthread.c
|
|
|
|
endif
|
|
|
|
|
2007-11-03 23:45:38 +00:00
|
|
|
libevent_extra_la_SOURCES = $(EXTRA_SRC)
|
2009-01-13 19:20:22 +00:00
|
|
|
libevent_extra_la_LIBADD =
|
2009-07-13 20:02:49 +00:00
|
|
|
libevent_extra_la_LDFLAGS = -version-info $(VERSION_INFO)
|
2007-11-03 23:45:38 +00:00
|
|
|
|
2009-07-28 04:03:57 +00:00
|
|
|
if OPENSSL
|
|
|
|
libevent_openssl_la_SOURCES = bufferevent_openssl.c
|
|
|
|
libevent_openssl_la_LIBADD = -lcrypto -lssl
|
|
|
|
libevent_openssl_la_LDFLAGS = -release $(RELEASE) -version-info $(VERSION_INFO)
|
|
|
|
endif
|
|
|
|
|
2009-01-13 19:20:14 +00:00
|
|
|
noinst_HEADERS = util-internal.h mm-internal.h ipv6-internal.h \
|
|
|
|
evrpc-internal.h strlcpy-internal.h evbuffer-internal.h \
|
|
|
|
bufferevent-internal.h http-internal.h event-internal.h \
|
2009-04-19 13:33:52 +00:00
|
|
|
evthread-internal.h ht-internal.h defer-internal.h \
|
2009-01-13 20:26:37 +00:00
|
|
|
minheap-internal.h log-internal.h evsignal-internal.h evmap-internal.h
|
2009-01-13 19:20:14 +00:00
|
|
|
|
2009-05-15 01:38:23 +00:00
|
|
|
include_HEADERS = event.h evhttp.h evdns.h evrpc.h evutil.h
|
|
|
|
|
|
|
|
nodist_include_HEADERS = event-config.h
|
2002-04-09 17:02:38 +00:00
|
|
|
|
2008-02-28 02:47:43 +00:00
|
|
|
INCLUDES = -I$(srcdir)/compat -I$(srcdir)/include $(SYS_INCLUDES)
|
2002-04-09 19:09:32 +00:00
|
|
|
|
2006-10-09 01:55:23 +00:00
|
|
|
man_MANS = event.3 evdns.3
|
2002-04-09 17:42:15 +00:00
|
|
|
|
2005-04-29 02:55:20 +00:00
|
|
|
verify: libevent.la
|
2007-08-20 14:44:15 +00:00
|
|
|
cd test && make verify
|
2004-12-01 19:59:00 +00:00
|
|
|
|
2007-09-18 15:16:23 +00:00
|
|
|
doxygen: FORCE
|
2007-09-18 15:12:09 +00:00
|
|
|
doxygen $(srcdir)/Doxyfile
|
2007-09-18 15:16:23 +00:00
|
|
|
FORCE:
|
2007-09-18 15:12:09 +00:00
|
|
|
|
2009-04-17 00:24:58 +00:00
|
|
|
DISTCLEANFILES = *~ event-config.h libevent.pc
|