xref: /trafficserver/iocore/hostdb/Makefile.am (revision 63ea263f)
1# Makefile.am for the traffic/iocore/hostdb hierarchy
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#      http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing, software
14#  distributed under the License is distributed on an "AS IS" BASIS,
15#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16#  See the License for the specific language governing permissions and
17#  limitations under the License.
18
19AM_CPPFLAGS += \
20	$(iocore_include_dirs) \
21	-I$(abs_top_srcdir)/include \
22	-I$(abs_top_srcdir)/lib \
23	-I$(abs_top_srcdir)/proxy \
24	-I$(abs_top_srcdir)/proxy/hdrs \
25	-I$(abs_top_srcdir)/proxy/http \
26	-I$(abs_top_srcdir)/mgmt \
27	-I$(abs_top_srcdir)/mgmt/utils \
28	$(TS_INCLUDES)
29
30EXTRA_DIST = I_HostDB.h
31
32noinst_LIBRARIES = libinkhostdb.a
33
34libinkhostdb_a_SOURCES = \
35	HostDB.cc \
36	I_HostDB.h \
37	I_HostDBProcessor.h \
38	Inline.cc \
39	P_HostDB.h \
40	P_HostDBProcessor.h \
41	P_RefCountCache.h \
42	P_RefCountCacheSerializer.h \
43	RefCountCache.cc
44
45TESTS = $(check_PROGRAMS)
46check_PROGRAMS = test_RefCountCache
47
48test_RefCountCache_SOURCES = \
49	test_RefCountCache.cc
50
51#test_UNUSED_SOURCES = \
52#  test_I_HostDB.cc \
53#  test_P_HostDB.cc
54
55test_LD_FLAGS = \
56	@AM_LDFLAGS@ \
57	@OPENSSL_LDFLAGS@
58
59test_CPP_FLAGS = \
60	$(AM_CPPFLAGS) \
61	$(iocore_include_dirs) \
62	-I$(abs_top_srcdir)/proxy \
63	-I$(abs_top_srcdir)/proxy/hdrs \
64	-I$(abs_top_srcdir)/proxy/http \
65	-I$(abs_top_srcdir)/proxy/logging \
66	-I$(abs_top_srcdir)/mgmt \
67	-I$(abs_top_srcdir)/mgmt/utils \
68	@OPENSSL_INCLUDES@
69
70test_LD_ADD = \
71	$(top_builddir)/lib/records/librecords_p.a \
72	$(top_builddir)/mgmt/libmgmt_p.la \
73	$(top_builddir)/iocore/eventsystem/libinkevent.a \
74	$(top_builddir)/src/tscore/libtscore.la \
75	$(top_builddir)/src/tscpp/util/libtscpputil.la \
76	$(top_builddir)/proxy/shared/libUglyLogStubs.a \
77	@HWLOC_LIBS@
78
79test_RefCountCache_CPPFLAGS = $(test_CPP_FLAGS)
80
81test_RefCountCache_LDFLAGS = $(test_LD_FLAGS)
82
83test_RefCountCache_LDADD = $(test_LD_ADD)
84
85include $(top_srcdir)/build/tidy.mk
86
87clang-tidy-local: $(DIST_SOURCES)
88	$(CXX_Clang_Tidy)
89