1# Makefile.am for the traffic/iocore/eventsystem 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	-I$(abs_top_srcdir)/include \
21	-I$(abs_top_srcdir)/lib \
22	$(TS_INCLUDES)
23
24TESTS = $(check_PROGRAMS)
25
26noinst_LIBRARIES = libinkevent.a
27
28libinkevent_a_SOURCES = \
29	EventSystem.cc \
30	IOBuffer.cc \
31	I_Action.h \
32	I_Continuation.h \
33	I_EThread.h \
34	I_Event.h \
35	I_EventProcessor.h \
36	I_EventSystem.h \
37	I_IOBuffer.h \
38	I_Lock.h \
39	I_PriorityEventQueue.h \
40	I_Processor.h \
41	I_ProtectedQueue.h \
42	I_ProxyAllocator.h \
43	I_SocketManager.h \
44	I_Tasks.h \
45	I_Thread.h \
46	I_VConnection.h \
47	I_VIO.h \
48	Inline.cc \
49	Lock.cc \
50	PQ-List.cc \
51	P_EventSystem.h \
52	P_Freer.h \
53	P_IOBuffer.h \
54	P_ProtectedQueue.h \
55	P_Thread.h \
56	P_UnixEThread.h \
57	P_UnixEvent.h \
58	P_UnixEventProcessor.h \
59	P_UnixSocketManager.h \
60	P_VConnection.h \
61	P_VIO.h \
62	Processor.cc \
63	ProtectedQueue.cc \
64	ProxyAllocator.cc \
65	SocketManager.cc \
66	Tasks.cc \
67	Thread.cc \
68	UnixEThread.cc \
69	UnixEvent.cc \
70	UnixEventProcessor.cc
71
72check_PROGRAMS = test_Buffer test_Event \
73	test_MIOBufferWriter
74
75test_LD_FLAGS = \
76	@AM_LDFLAGS@ \
77	@OPENSSL_LDFLAGS@
78
79test_CPP_FLAGS = \
80	$(AM_CPPFLAGS) \
81	$(iocore_include_dirs) \
82	-I$(abs_top_srcdir)/proxy \
83	-I$(abs_top_srcdir)/proxy/hdrs \
84	-I$(abs_top_srcdir)/proxy/http \
85	-I$(abs_top_srcdir)/proxy/logging \
86	-I$(abs_top_srcdir)/mgmt \
87	-I$(abs_top_srcdir)/mgmt/utils \
88	@OPENSSL_INCLUDES@
89
90test_LD_ADD = \
91	libinkevent.a \
92	$(top_builddir)/lib/records/librecords_p.a \
93	$(top_builddir)/mgmt/libmgmt_p.la \
94	$(top_builddir)/iocore/eventsystem/libinkevent.a \
95	$(top_builddir)/src/tscore/libtscore.la $(top_builddir)/src/tscpp/util/libtscpputil.la \
96	$(top_builddir)/proxy/shared/libUglyLogStubs.a \
97	@HWLOC_LIBS@
98
99test_Buffer_SOURCES = \
100	test_Buffer.cc
101
102test_Event_SOURCES = \
103	test_Event.cc
104
105test_Buffer_CPPFLAGS = $(test_CPP_FLAGS)
106test_Event_CPPFLAGS = $(test_CPP_FLAGS)
107
108test_Buffer_LDFLAGS = $(test_LD_FLAGS)
109test_Event_LDFLAGS = $(test_LD_FLAGS)
110
111test_Buffer_LDADD = $(test_LD_ADD)
112test_Event_LDADD = $(test_LD_ADD)
113
114
115test_MIOBufferWriter_SOURCES = unit_tests/test_MIOBufferWriter.cc
116
117test_MIOBufferWriter_CPPFLAGS = $(test_CPP_FLAGS) -I$(abs_top_srcdir)/tests/include
118test_MIOBufferWriter_LDFLAGS = $(test_LD_FLAGS)
119test_MIOBufferWriter_LDADD = $(test_LD_ADD)
120
121include $(top_srcdir)/build/tidy.mk
122
123clang-tidy-local: $(DIST_SOURCES)
124	$(CXX_Clang_Tidy)
125