blob: f5b78c5fe6826ab01fb5f9324e232818ca66bc01 [file] [log] [blame]
# ngtcp2
# Copyright (c) 2017 ngtcp2 contributors
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
AM_CFLAGS = $(WARNCFLAGS) $(DEBUGCFLAGS)
AM_CXXFLAGS = $(WARNCXXFLAGS) $(DEBUGCFLAGS)
AM_CPPFLAGS = \
-I$(top_srcdir)/lib/includes \
-I$(top_builddir)/lib/includes \
-I$(top_srcdir)/crypto/includes \
-I$(top_srcdir)/third-party \
@OPENSSL_CFLAGS@ \
@LIBEV_CFLAGS@ \
@LIBNGHTTP3_CFLAGS@ \
@DEFS@
AM_LDFLAGS = -no-install \
@LIBTOOL_LDFLAGS@ \
-pthread
LDADD = $(top_builddir)/crypto/openssl/libngtcp2_crypto_openssl.la \
$(top_builddir)/lib/libngtcp2.la \
$(top_builddir)/third-party/libhttp-parser.la \
@JEMALLOC_LIBS@ \
@OPENSSL_LIBS@ \
@LIBEV_LIBS@ \
@LIBNGHTTP3_LIBS@ \
-lbpf
noinst_PROGRAMS = client server h09client h09server
client_SOURCES = client.cc client.h \
template.h \
debug.cc debug.h \
util.cc util.h \
keylog.cc keylog.h \
shared.cc shared.h
server_SOURCES = server.cc server.h \
template.h \
debug.cc debug.h \
util.cc util.h \
keylog.cc keylog.h \
shared.cc shared.h \
http.cc http.h
h09client_SOURCES = h09client.cc h09client.h \
template.h \
debug.cc debug.h \
util.cc util.h \
keylog.cc keylog.h \
shared.cc shared.h
h09server_SOURCES = h09server.cc h09server.h \
template.h \
debug.cc debug.h \
util.cc util.h \
keylog.cc keylog.h \
shared.cc shared.h \
http.cc http.h
if HAVE_CUNIT
check_PROGRAMS = examplestest
examplestest_SOURCES = examplestest.cc \
util_test.cc util_test.h util.cc util.h
examplestest_LDADD = ${LDADD} @CUNIT_LIBS@
TESTS = examplestest
endif # HAVE_CUNIT