• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# nghttp2 - HTTP/2 C Library
2
3# Copyright (c) 2012 Tatsuhiro Tsujikawa
4
5# Permission is hereby granted, free of charge, to any person obtaining
6# a copy of this software and associated documentation files (the
7# "Software"), to deal in the Software without restriction, including
8# without limitation the rights to use, copy, modify, merge, publish,
9# distribute, sublicense, and/or sell copies of the Software, and to
10# permit persons to whom the Software is furnished to do so, subject to
11# the following conditions:
12
13# The above copyright notice and this permission notice shall be
14# included in all copies or substantial portions of the Software.
15
16# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24EXTRA_DIST = CMakeLists.txt
25
26if ENABLE_EXAMPLES
27
28AM_CFLAGS = $(WARNCFLAGS)
29AM_CXXFLAGS = $(WARNCXXFLAGS) $(CXX1XCXXFLAGS)
30AM_CPPFLAGS = \
31	-I$(top_srcdir)/lib/includes \
32	-I$(top_builddir)/lib/includes \
33	-I$(top_srcdir)/src/includes \
34	-I$(top_srcdir)/third-party \
35	@LIBEVENT_OPENSSL_CFLAGS@ \
36	@OPENSSL_CFLAGS@ \
37	@DEFS@
38LDADD = $(top_builddir)/lib/libnghttp2.la \
39	$(top_builddir)/third-party/liburl-parser.la \
40	@LIBEVENT_OPENSSL_LIBS@ \
41	@OPENSSL_LIBS@ \
42	@APPLDFLAGS@
43
44noinst_PROGRAMS = client libevent-client libevent-server deflate
45
46client_SOURCES = client.c
47
48libevent_client_SOURCES = libevent-client.c
49
50libevent_server_SOURCES = libevent-server.c
51
52deflate_SOURCES = deflate.c
53
54if ENABLE_ASIO_LIB
55
56noinst_PROGRAMS += asio-sv asio-sv2 asio-cl asio-cl2
57
58# AM_CPPFLAGS must be placed first, so that header file (e.g.,
59# nghttp2/nghttp2.h) in this package is used rather than installed
60# one.
61ASIOCPPFLAGS = ${AM_CPPFLAGS} ${BOOST_CPPFLAGS}
62ASIOLDADD = $(top_builddir)/lib/libnghttp2.la \
63	$(top_builddir)/src/libnghttp2_asio.la @JEMALLOC_LIBS@ \
64	$(top_builddir)/third-party/liburl-parser.la \
65	@OPENSSL_LIBS@ \
66	${BOOST_LDFLAGS} \
67	${BOOST_ASIO_LIB} \
68	${BOOST_THREAD_LIB} \
69	${BOOST_SYSTEM_LIB} \
70	@APPLDFLAGS@
71
72asio_sv_SOURCES = asio-sv.cc
73asio_sv_CPPFLAGS = ${ASIOCPPFLAGS}
74asio_sv_LDADD = ${ASIOLDADD}
75
76asio_sv2_SOURCES = asio-sv2.cc
77asio_sv2_CPPFLAGS = ${ASIOCPPFLAGS}
78asio_sv2_LDADD = ${ASIOLDADD}
79
80asio_cl_SOURCES = asio-cl.cc
81asio_cl_CPPFLAGS = ${ASIOCPPFLAGS}
82asio_cl_LDADD = ${ASIOLDADD}
83
84asio_cl2_SOURCES = asio-cl2.cc
85asio_cl2_CPPFLAGS = ${ASIOCPPFLAGS}
86asio_cl2_LDADD = ${ASIOLDADD}
87
88endif # ENABLE_ASIO_LIB
89
90endif # ENABLE_EXAMPLES
91