ipc/chromium/src/third_party/libevent/Makefile.am

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ipc/chromium/src/third_party/libevent/Makefile.am	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,243 @@
     1.4 +# Makefile.am for libevent
     1.5 +# Copyright 2000-2007 Niels Provos
     1.6 +# Copyright 2007-2012 Niels Provos and Nick Mathewson
     1.7 +#
     1.8 +# See LICENSE for copying information.
     1.9 +
    1.10 +# 'foreign' means that we're not enforcing GNU package rules strictly.
    1.11 +# '1.7' means that we need automake 1.7 or later (and we do).
    1.12 +AUTOMAKE_OPTIONS = foreign 1.7
    1.13 +
    1.14 +ACLOCAL_AMFLAGS = -I m4
    1.15 +
    1.16 +# This is the "Release" of the Libevent ABI.  It takes precedence over
    1.17 +# the VERSION_INFO, so that two versions of Libevent with the same
    1.18 +# "Release" are never binary-compatible.
    1.19 +#
    1.20 +# This number incremented once for the 2.0 release candidate, and
    1.21 +# will increment for each series until we revise our interfaces enough
    1.22 +# that we can seriously expect ABI compatibility between series.
    1.23 +#
    1.24 +RELEASE = -release 2.0
    1.25 +
    1.26 +# This is the version info for the libevent binary API.  It has three
    1.27 +# numbers:
    1.28 +#   Current  -- the number of the binary API that we're implementing
    1.29 +#   Revision -- which iteration of the implementation of the binary
    1.30 +#               API are we supplying?
    1.31 +#   Age      -- How many previous binary API versions do we also
    1.32 +#               support?
    1.33 +#
    1.34 +# To increment a VERSION_INFO (current:revision:age):
    1.35 +#    If the ABI didn't change:
    1.36 +#        Return (current:revision+1:age)
    1.37 +#    If the ABI changed, but it's backward-compatible:
    1.38 +#        Return (current+1:0:age+1)
    1.39 +#    If the ABI changed and it isn't backward-compatible:
    1.40 +#        Return (current+1:0:0)
    1.41 +#
    1.42 +# Once an RC is out, DO NOT MAKE ANY ABI-BREAKING CHANGES IN THAT SERIES
    1.43 +# UNLESS YOU REALLY REALLY HAVE TO.
    1.44 +VERSION_INFO = 6:9:1
    1.45 +
    1.46 +# History:          RELEASE    VERSION_INFO
    1.47 +#  2.0.1-alpha --     2.0        1:0:0
    1.48 +#  2.0.2-alpha --                2:0:0
    1.49 +#  2.0.3-alpha --                2:0:0  (should have incremented; didn't.)
    1.50 +#  2.0.4-alpha --                3:0:0
    1.51 +#  2.0.5-beta  --                4:0:0
    1.52 +#  2.0.6-rc    --     2.0        2:0:0
    1.53 +#  2.0.7-rc    --     2.0        3:0:1
    1.54 +#  2.0.8-rc    --     2.0        4:0:2
    1.55 +#  2.0.9-rc    --     2.0        5:0:0 (ABI changed slightly)
    1.56 +#  2.0.10-stable--    2.0        5:1:0 (No ABI change)
    1.57 +#  2.0.11-stable--    2.0        6:0:1 (ABI changed, backward-compatible)
    1.58 +#  2.0.12-stable--    2.0        6:1:1 (No ABI change)
    1.59 +#  2.0.13-stable--    2.0        6:2:1 (No ABI change)
    1.60 +#  2.0.14-stable--    2.0        6:3:1 (No ABI change)
    1.61 +#  2.0.15-stable--    2.0        6:3:1 (Forgot to update :( )
    1.62 +#  2.0.16-stable--    2.0        6:4:1 (No ABI change)
    1.63 +#  2.0.17-stable--    2.0        6:5:1 (No ABI change)
    1.64 +#  2.0.18-stable--    2.0        6:6:1 (No ABI change)
    1.65 +#  2.0.19-stable--    2.0        6:7:1 (No ABI change)
    1.66 +#  2.0.20-stable--    2.0        6:8:1 (No ABI change)
    1.67 +#  2.0.21-stable--    2.0        6:9:1 (No ABI change)
    1.68 +#
    1.69 +# For Libevent 2.1:
    1.70 +#  2.1.1-alpha --     2.1        1:0:0
    1.71 +
    1.72 +
    1.73 +# ABI version history for this package effectively restarts every time
    1.74 +# we change RELEASE.  Version 1.4.x had RELEASE of 1.4.
    1.75 +#
    1.76 +# Ideally, we would not be using RELEASE at all; instead we could just
    1.77 +# use the VERSION_INFO field to label our backward-incompatible ABI
    1.78 +# changes, and those would be few and far between.  Unfortunately,
    1.79 +# Libevent still exposes far too many volatile structures in its
    1.80 +# headers, so we pretty much have to assume that most development
    1.81 +# series will break ABI compatibility.  For now, it's simplest just to
    1.82 +# keep incrementing the RELEASE between series and resetting VERSION_INFO.
    1.83 +#
    1.84 +# Eventually, when we get to the point where the structures in the
    1.85 +# headers are all non-changing (or not there at all!), we can shift to
    1.86 +# a more normal worldview where backward-incompatible ABI changes are
    1.87 +# nice and rare.  For the next couple of years, though, 'struct event'
    1.88 +# is user-visible, and so we can pretty much guarantee that release
    1.89 +# series won't be binary-compatible.
    1.90 +
    1.91 +if INSTALL_LIBEVENT
    1.92 +dist_bin_SCRIPTS = event_rpcgen.py
    1.93 +endif
    1.94 +
    1.95 +pkgconfigdir=$(libdir)/pkgconfig
    1.96 +LIBEVENT_PKGCONFIG=libevent.pc
    1.97 +
    1.98 +# These sources are conditionally added by configure.in or conditionally
    1.99 +# included from other files.
   1.100 +PLATFORM_DEPENDENT_SRC = \
   1.101 +	epoll_sub.c \
   1.102 +	arc4random.c
   1.103 +
   1.104 +EXTRA_DIST = \
   1.105 +	LICENSE \
   1.106 +	autogen.sh \
   1.107 +	event_rpcgen.py \
   1.108 +	libevent.pc.in \
   1.109 +	make-event-config.sed \
   1.110 +	Doxyfile \
   1.111 +	whatsnew-2.0.txt \
   1.112 +	Makefile.nmake test/Makefile.nmake \
   1.113 +	$(PLATFORM_DEPENDENT_SRC)
   1.114 +
   1.115 +LIBEVENT_LIBS_LA = libevent.la libevent_core.la libevent_extra.la
   1.116 +if PTHREADS
   1.117 +LIBEVENT_LIBS_LA += libevent_pthreads.la
   1.118 +LIBEVENT_PKGCONFIG += libevent_pthreads.pc
   1.119 +endif
   1.120 +if OPENSSL
   1.121 +LIBEVENT_LIBS_LA += libevent_openssl.la
   1.122 +LIBEVENT_PKGCONFIG += libevent_openssl.pc
   1.123 +endif
   1.124 +
   1.125 +if INSTALL_LIBEVENT
   1.126 +lib_LTLIBRARIES = $(LIBEVENT_LIBS_LA)
   1.127 +pkgconfig_DATA = $(LIBEVENT_PKGCONFIG)
   1.128 +else
   1.129 +noinst_LTLIBRARIES =  $(LIBEVENT_LIBS_LA)
   1.130 +endif
   1.131 +
   1.132 +SUBDIRS = . include sample test
   1.133 +
   1.134 +if BUILD_WIN32
   1.135 +
   1.136 +SYS_LIBS = -lws2_32 -lshell32 -ladvapi32
   1.137 +SYS_SRC = win32select.c evthread_win32.c buffer_iocp.c event_iocp.c \
   1.138 +	bufferevent_async.c
   1.139 +SYS_INCLUDES = -IWIN32-Code
   1.140 +
   1.141 +else
   1.142 +
   1.143 +SYS_LIBS =
   1.144 +SYS_SRC =
   1.145 +SYS_INCLUDES =
   1.146 +
   1.147 +endif
   1.148 +
   1.149 +if SELECT_BACKEND
   1.150 +SYS_SRC += select.c
   1.151 +endif
   1.152 +if POLL_BACKEND
   1.153 +SYS_SRC += poll.c
   1.154 +endif
   1.155 +if DEVPOLL_BACKEND
   1.156 +SYS_SRC += devpoll.c
   1.157 +endif
   1.158 +if KQUEUE_BACKEND
   1.159 +SYS_SRC += kqueue.c
   1.160 +endif
   1.161 +if EPOLL_BACKEND
   1.162 +SYS_SRC += epoll.c
   1.163 +endif
   1.164 +if EVPORT_BACKEND
   1.165 +SYS_SRC += evport.c
   1.166 +endif
   1.167 +if SIGNAL_SUPPORT
   1.168 +SYS_SRC += signal.c
   1.169 +endif
   1.170 +
   1.171 +BUILT_SOURCES = include/event2/event-config.h
   1.172 +
   1.173 +include/event2/event-config.h: config.h make-event-config.sed
   1.174 +	test -d include/event2 || $(MKDIR_P) include/event2
   1.175 +	$(SED) -f $(srcdir)/make-event-config.sed < config.h > $@T
   1.176 +	mv -f $@T $@
   1.177 +
   1.178 +CORE_SRC = event.c evthread.c buffer.c \
   1.179 +	bufferevent.c bufferevent_sock.c bufferevent_filter.c \
   1.180 +	bufferevent_pair.c listener.c bufferevent_ratelim.c \
   1.181 +	evmap.c	log.c evutil.c evutil_rand.c strlcpy.c $(SYS_SRC)
   1.182 +EXTRA_SRC = event_tagging.c http.c evdns.c evrpc.c
   1.183 +
   1.184 +if BUILD_WITH_NO_UNDEFINED
   1.185 +NO_UNDEFINED = -no-undefined
   1.186 +MAYBE_CORE = libevent_core.la
   1.187 +else
   1.188 +NO_UNDEFINED =
   1.189 +MAYBE_CORE =
   1.190 +endif
   1.191 +
   1.192 +GENERIC_LDFLAGS = -version-info $(VERSION_INFO) $(RELEASE) $(NO_UNDEFINED)
   1.193 +
   1.194 +libevent_la_SOURCES = $(CORE_SRC) $(EXTRA_SRC)
   1.195 +libevent_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
   1.196 +libevent_la_LDFLAGS = $(GENERIC_LDFLAGS)
   1.197 +
   1.198 +libevent_core_la_SOURCES = $(CORE_SRC)
   1.199 +libevent_core_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
   1.200 +libevent_core_la_LDFLAGS = $(GENERIC_LDFLAGS)
   1.201 +
   1.202 +if PTHREADS
   1.203 +libevent_pthreads_la_SOURCES = evthread_pthread.c
   1.204 +libevent_pthreads_la_LIBADD = $(MAYBE_CORE)
   1.205 +libevent_pthreads_la_LDFLAGS = $(GENERIC_LDFLAGS)
   1.206 +endif
   1.207 +
   1.208 +libevent_extra_la_SOURCES = $(EXTRA_SRC)
   1.209 +libevent_extra_la_LIBADD = $(MAYBE_CORE) $(SYS_LIBS)
   1.210 +libevent_extra_la_LDFLAGS = $(GENERIC_LDFLAGS)
   1.211 +
   1.212 +if OPENSSL
   1.213 +libevent_openssl_la_SOURCES = bufferevent_openssl.c
   1.214 +libevent_openssl_la_LIBADD = $(MAYBE_CORE) $(OPENSSL_LIBS)
   1.215 +libevent_openssl_la_LDFLAGS = $(GENERIC_LDFLAGS)
   1.216 +endif
   1.217 +
   1.218 +noinst_HEADERS = util-internal.h mm-internal.h ipv6-internal.h \
   1.219 +	evrpc-internal.h strlcpy-internal.h evbuffer-internal.h \
   1.220 +	bufferevent-internal.h http-internal.h event-internal.h \
   1.221 +	evthread-internal.h ht-internal.h defer-internal.h \
   1.222 +	minheap-internal.h log-internal.h evsignal-internal.h evmap-internal.h \
   1.223 +	changelist-internal.h iocp-internal.h \
   1.224 +	ratelim-internal.h \
   1.225 +	WIN32-Code/event2/event-config.h \
   1.226 +	WIN32-Code/tree.h \
   1.227 +	compat/sys/queue.h
   1.228 +
   1.229 +EVENT1_HDRS = event.h evhttp.h evdns.h evrpc.h evutil.h
   1.230 +
   1.231 +if INSTALL_LIBEVENT
   1.232 +include_HEADERS = $(EVENT1_HDRS)
   1.233 +else
   1.234 +noinst_HEADERS += $(EVENT1_HDRS)
   1.235 +endif
   1.236 +
   1.237 +AM_CPPFLAGS = -I$(srcdir)/compat -I$(srcdir)/include -I./include $(SYS_INCLUDES)
   1.238 +
   1.239 +verify: check
   1.240 +
   1.241 +doxygen: FORCE
   1.242 +	doxygen $(srcdir)/Doxyfile
   1.243 +FORCE:
   1.244 +
   1.245 +DISTCLEANFILES = *~ libevent.pc ./include/event2/event-config.h
   1.246 +

mercurial