1#
2# Makefile.am for the Enterprise Management module.
3#
4#  Licensed to the Apache Software Foundation (ASF) under one
5#  or more contributor license agreements.  See the NOTICE file
6#  distributed with this work for additional information
7#  regarding copyright ownership.  The ASF licenses this file
8#  to you under the Apache License, Version 2.0 (the
9#  "License"); you may not use this file except in compliance
10#  with the License.  You may obtain a copy of the License at
11#
12#      http://www.apache.org/licenses/LICENSE-2.0
13#
14#  Unless required by applicable law or agreed to in writing, software
15#  distributed under the License is distributed on an "AS IS" BASIS,
16#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17#  See the License for the specific language governing permissions and
18#  limitations under the License.
19
20SUBDIRS = utils api
21
22# Decoder ring:
23# 	libmgmt_c.la 	Configuration records (defaults).
24# 	libmgmt_lm.la	libmgmt for Local Manager applications (traffic_manager)
25# 	libmgmt_p.la	libmgmt for Process Manager applications (everything else)
26noinst_LTLIBRARIES = libmgmt_c.la libmgmt_p.la libmgmt_lm.la
27
28AM_CPPFLAGS += \
29	$(iocore_include_dirs) \
30	-I$(abs_top_srcdir)/include \
31	-I$(abs_top_srcdir)/lib \
32	-I$(abs_top_srcdir)/mgmt/api/include \
33	-I$(abs_top_srcdir)/mgmt/utils \
34	-I$(abs_top_srcdir)/proxy \
35	-I$(abs_top_srcdir)/proxy/http \
36	-I$(abs_top_srcdir)/proxy/hdrs \
37	$(TS_INCLUDES)
38
39libmgmt_c_la_SOURCES = \
40	RecordsConfig.cc \
41	RecordsConfig.h
42
43libmgmt_COMMON = \
44	BaseManager.cc \
45	BaseManager.h \
46	MgmtDefs.h \
47	RecordsConfigUtils.cc
48
49libmgmt_p_la_SOURCES = \
50	$(libmgmt_COMMON) \
51	ProcessManager.cc \
52	ProcessManager.h \
53	ProxyConfig.cc \
54	ProxyConfig.h
55
56libmgmt_lm_la_SOURCES = \
57	$(libmgmt_COMMON) \
58	Alarms.cc \
59	Alarms.h \
60	DerivativeMetrics.cc \
61	DerivativeMetrics.h \
62	FileManager.cc \
63	FileManager.h \
64	LocalManager.cc \
65	LocalManager.h \
66	ConfigManager.cc \
67	ConfigManager.h \
68	WebMgmtUtils.cc \
69	WebMgmtUtils.h
70
71libmgmt_lm_la_LIBADD = \
72	libmgmt_c.la \
73	$(top_builddir)/mgmt/utils/libutils_lm.la
74
75libmgmt_p_la_LIBADD = \
76	libmgmt_c.la \
77	$(top_builddir)/mgmt/utils/libutils_p.la
78
79include $(top_srcdir)/build/tidy.mk
80
81clang-tidy-local: $(DIST_SOURCES)
82	$(CXX_Clang_Tidy)
83