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 20AM_CPPFLAGS += \ 21 -I$(abs_top_srcdir)/iocore/utils \ 22 -I$(abs_top_srcdir)/mgmt \ 23 -I$(abs_top_srcdir)/mgmt/api \ 24 -I$(abs_top_srcdir)/mgmt/api/include \ 25 -I$(abs_top_srcdir)/proxy \ 26 -I$(abs_top_srcdir)/include \ 27 -I$(abs_top_srcdir)/lib \ 28 $(TS_INCLUDES) \ 29 @OPENSSL_INCLUDES@ 30 31# header files used by other libraries 32EXTRA_DIST = MgmtSocket.h 33 34noinst_LTLIBRARIES = libutils_lm.la libutils_p.la 35check_PROGRAMS = test_mgmt_utils 36 37TESTS = $(check_PROGRAMS) 38 39libutils_COMMON = \ 40 MgmtMarshall.cc \ 41 MgmtMarshall.h \ 42 MgmtSocket.cc \ 43 MgmtSocket.h \ 44 MgmtUtils.cc \ 45 MgmtUtils.h 46 47libutils_lm_la_SOURCES = \ 48 $(libutils_COMMON) \ 49 ExpandingArray.cc \ 50 ExpandingArray.h \ 51 MgmtLocalCleanup.cc 52 53libutils_p_la_SOURCES = \ 54 $(libutils_COMMON) \ 55 MgmtProcessCleanup.cc 56 57test_mgmt_utils_CPPFLAGS = $(AM_CPPFLAGS) -I$(abs_top_srcdir)/tests/include 58 59test_mgmt_utils_LDFLAGS = \ 60 @AM_LDFLAGS@ \ 61 @OPENSSL_LDFLAGS@ 62 63test_mgmt_utils_SOURCES = \ 64 unit_tests/unit_test_main.cc \ 65 unit_tests/test_marshall.cc 66 67test_mgmt_utils_LDADD = \ 68 libutils_p.la \ 69 $(top_builddir)/src/tscore/libtscore.la 70 71include $(top_srcdir)/build/tidy.mk 72 73clang-tidy-local: $(DIST_SOURCES) 74 $(CXX_Clang_Tidy) 75