
Note: the ompi_check_libfca.m4 file had to be modified to avoid it stomping on global CPPFLAGS and the like. The file was also relocated to the ompi/config directory as it pertains solely to an ompi-layer component. Forgive the mid-day configure change, but I know Shiqing is working the windows issues and don't want to cause him unnecessary redo work. This commit was SVN r23966.
203 строки
6.1 KiB
Makefile
203 строки
6.1 KiB
Makefile
# 'foreign' means that we're not enforcing GNU package rules strictly.
|
|
# '1.7' means that we need automake 1.7 or later (and we do).
|
|
AUTOMAKE_OPTIONS = foreign 1.7
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
# This is the "Release" of the Libevent ABI. It takes precedence over
|
|
# the VERSION_INFO, so that two versions of Libevent with the same
|
|
# "Release" are never binary-compatible.
|
|
#
|
|
# This number incremented once for the 2.0 release candidate, and
|
|
# shouldn't increment again until Libevent 3.0. Also, we shouldn't
|
|
# increment to Libevent 3.0 unless we know in advance we're breaking
|
|
# the ABI.
|
|
#
|
|
#RELEASE = -release 2.0
|
|
#RELEASE =
|
|
|
|
# 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?
|
|
#
|
|
# To increment a VERSION_INFO (current:revision:age):
|
|
# If the ABI didn't change:
|
|
# Return (current:revision+1:age)
|
|
# If the ABI changed, but it's backward-compatible:
|
|
# Return (current+1:0:age+1)
|
|
# If the ABI changed and it isn't backward-compatible:
|
|
# Return (current+1:0:0)
|
|
#
|
|
# Once an RC is out, DO NOT MAKE ANY ABI-BREAKING CHANGES IN THAT SERIES.
|
|
#VERSION_INFO = 3:0:1
|
|
|
|
# History: RELEASE VERSION_INFO
|
|
# 2.0.1-alpha -- 2.0 1:0:0
|
|
# 2.0.2-alpha -- 2:0:0
|
|
# 2.0.3-alpha -- 2:0:0 (should have incremented; didn't.)
|
|
# 2.0.4-alpha -- 3:0:0
|
|
# 2.0.5-beta -- 4:0:0
|
|
# 2.0.6-rc -- 2.0 2:0:0
|
|
# 2.0.7-rc -- 2.0 3:0:1
|
|
# Planned:
|
|
# 2.0.8-stable -- 2.0 3:1:1 (Assuming no ABI change)
|
|
#
|
|
# If Libevent 2.1.1 makes 'struct event' etc opaque in the headers:
|
|
# 2.1.1-alpha -- 2.1 1:0:0
|
|
# If Libevent 2.1.1 does not makes 'struct event' opaque in the headers:
|
|
# 2.1.1-alpha -- 2.1 1:0:0
|
|
|
|
# ABI version history for this package effectively restarts every time
|
|
# we change RELEASE. Version 1.4.x had RELEASE of 1.4.
|
|
#
|
|
# Ideally, we would not be using RELEASE at all; instead we could just
|
|
# use the VERSION_INFO field to label our backward-incompatible ABI
|
|
# changes, and those would be few and far between. Unfortunately,
|
|
# Libevent still exposes far too many volatile structures in its
|
|
# headers, so we pretty much have to assume that most development
|
|
# series will break ABI compatibility. For now, it's simplest just to
|
|
# keep incrementing the RELEASE between series and resetting VERSION_INFO.
|
|
#
|
|
# Eventually, when we get to the point where the structures in the
|
|
# headers are all non-changing (or not there at all!), we can shift to
|
|
# a more normal worldview where backward-incompatible ABI changes are
|
|
# nice and rare. For the next couple of years, though, 'struct event'
|
|
# is user-visible, and so we can pretty much guarantee that release
|
|
# series won't be binary-compatible.
|
|
|
|
if RPC
|
|
dist_bin_SCRIPTS = event_rpcgen.py
|
|
endif
|
|
|
|
# These sources are conditionally added by configure.in or conditionally
|
|
# included from other files.
|
|
PLATFORM_DEPENDENT_SRC = \
|
|
epoll_sub.c \
|
|
arc4random.c
|
|
|
|
EXTRA_DIST = \
|
|
LICENSE \
|
|
autogen.sh \
|
|
libevent.pc.in \
|
|
Doxyfile \
|
|
whatsnew-2.0.txt \
|
|
Makefile.nmake \
|
|
$(PLATFORM_DEPENDENT_SRC)
|
|
|
|
# OMPI: Changed to noinst and libevent.la
|
|
noinst_LTLIBRARIES = libevent.la
|
|
|
|
SUBDIRS = . include
|
|
|
|
if BUILD_WIN32
|
|
|
|
SYS_LIBS = -lws2_32
|
|
SYS_SRC = win32select.c evthread_win32.c buffer_iocp.c event_iocp.c \
|
|
bufferevent_async.c
|
|
SYS_INCLUDES = -IWIN32-Code
|
|
|
|
else
|
|
|
|
SYS_LIBS =
|
|
SYS_SRC =
|
|
SYS_INCLUDES =
|
|
|
|
endif
|
|
|
|
if SELECT_BACKEND
|
|
SYS_SRC += select.c
|
|
endif
|
|
if POLL_BACKEND
|
|
SYS_SRC += poll.c
|
|
endif
|
|
if DEVPOLL_BACKEND
|
|
SYS_SRC += devpoll.c
|
|
endif
|
|
if KQUEUE_BACKEND
|
|
SYS_SRC += kqueue.c
|
|
endif
|
|
if EPOLL_BACKEND
|
|
SYS_SRC += epoll.c
|
|
endif
|
|
if EVPORT_BACKEND
|
|
SYS_SRC += evport.c
|
|
endif
|
|
if SIGNAL_SUPPORT
|
|
SYS_SRC += signal.c
|
|
endif
|
|
|
|
# Open MPI: commented this out. We generate event-config.h in the
|
|
# component configure.m4.
|
|
#BUILT_SOURCES = ./include/event2/event-config.h
|
|
|
|
# Open MPI: commented this out. We generate event-config.h in the
|
|
# component configure.m4.
|
|
#./include/event2/event-config.h: config.h
|
|
# @MKDIR_P@ ./include/event2
|
|
# echo '/* event2/event-config.h' > $@
|
|
# 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 ' *' >> $@
|
|
# echo ' * Do not rely on macros in this file existing in later versions.'>> $@
|
|
# echo ' */' >> $@
|
|
# echo '#ifndef _EVENT2_EVENT_CONFIG_H_' >> $@
|
|
# echo '#define _EVENT2_EVENT_CONFIG_H_' >> $@
|
|
# sed -e 's/#define /#define _EVENT_/' \
|
|
# -e 's/#undef /#undef _EVENT_/' \
|
|
# -e 's/#ifndef /#ifndef _EVENT_/' < config.h >> $@
|
|
# echo "#endif" >> $@
|
|
|
|
CORE_SRC = event.c evthread.c buffer.c \
|
|
bufferevent.c bufferevent_sock.c bufferevent_filter.c \
|
|
bufferevent_pair.c listener.c bufferevent_ratelim.c \
|
|
evmap.c log.c evutil.c evutil_rand.c strlcpy.c event_tagging.c $(SYS_SRC)
|
|
CORE_LIBS =
|
|
|
|
if HTTP
|
|
CORE_SRC += http.c
|
|
endif
|
|
if DNS
|
|
CORE_SRC += evdns.c
|
|
endif
|
|
if RPC
|
|
CORE_SRC += evrpc.c
|
|
endif
|
|
|
|
if PTHREADS
|
|
CORE_SRC += evthread_pthread.c
|
|
endif
|
|
|
|
if OPENSSL
|
|
CORE_SRC += bufferevent_openssl.c
|
|
CORE_LIBS += -lcrypto -lssl
|
|
endif
|
|
|
|
libevent_la_SOURCES = $(CORE_SRC) $(headers)
|
|
libevent_la_LIBADD = $(CORE_LIBS) $(SYS_LIBS)
|
|
|
|
EXTRA_DIST += event.h evutil.h util-internal.h mm-internal.h ipv6-internal.h \
|
|
strlcpy-internal.h evbuffer-internal.h \
|
|
bufferevent-internal.h event-internal.h \
|
|
evthread-internal.h defer-internal.h \
|
|
minheap-internal.h log-internal.h evsignal-internal.h evmap-internal.h \
|
|
changelist-internal.h iocp-internal.h \
|
|
ratelim-internal.h \
|
|
WIN32-Code/event2/event-config.h \
|
|
WIN32-Code/tree.h \
|
|
compat/sys/queue.h $(SYS_INCLUDES) \
|
|
evhttp.h http-internal.h ht-internal.h \
|
|
evrpc.h evrpc-internal.h \
|
|
evdns.h
|
|
|
|
AM_CPPFLAGS = -I$(srcdir)/compat -I$(srcdir)/include -I$(builddir)/include $(SYS_INCLUDES)
|
|
|
|
DISTCLEANFILES = *~ libevent.pc $(builddir)/include/event2/event-config.h
|
|
|