1# Makefile.am for Logging 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 19include $(top_srcdir)/build/tidy.mk 20 21AM_CPPFLAGS += \ 22 $(iocore_include_dirs) \ 23 -I$(abs_top_srcdir)/include \ 24 -I$(abs_top_srcdir)/lib \ 25 -I$(abs_top_srcdir)/proxy \ 26 -I$(abs_top_srcdir)/proxy/http \ 27 -I$(abs_top_srcdir)/proxy/http/remap \ 28 -I$(abs_top_srcdir)/proxy/hdrs \ 29 -I$(abs_top_srcdir)/proxy/shared \ 30 -I$(abs_top_srcdir)/mgmt \ 31 -I$(abs_top_srcdir)/mgmt/utils \ 32 $(TS_INCLUDES) \ 33 @YAMLCPP_INCLUDES@ 34 35EXTRA_DIST = LogStandalone.cc 36 37noinst_LIBRARIES = liblogging.a 38 39liblogging_a_SOURCES = \ 40 Log.cc \ 41 Log.h \ 42 LogAccess.cc \ 43 LogAccess.h \ 44 LogBuffer.cc \ 45 LogBuffer.h \ 46 LogBufferSink.h \ 47 LogConfig.cc \ 48 LogConfig.h \ 49 LogField.cc \ 50 LogField.h \ 51 LogFieldAliasMap.cc \ 52 LogFieldAliasMap.h \ 53 LogFile.cc \ 54 LogFile.h \ 55 LogFilter.cc \ 56 LogFilter.h \ 57 LogFormat.cc \ 58 LogFormat.h \ 59 LogLimits.h \ 60 LogObject.cc \ 61 LogObject.h \ 62 LogUtils.cc \ 63 LogUtils.h \ 64 RolledLogDeleter.cc \ 65 RolledLogDeleter.h \ 66 YamlLogConfig.cc \ 67 YamlLogConfigDecoders.cc \ 68 YamlLogConfig.h 69 70check_PROGRAMS = \ 71 test_LogUtils \ 72 test_RolledLogDeleter 73 74TESTS = $(check_PROGRAMS) 75 76test_LogUtils_CPPFLAGS = \ 77 $(AM_CPPFLAGS) \ 78 -DTEST_LOG_UTILS \ 79 -I$(abs_top_srcdir)/tests/include 80 81test_LogUtils_SOURCES = \ 82 LogUtils.cc \ 83 unit-tests/test_LogUtils.cc 84 85test_LogUtils_LDADD = \ 86 $(top_builddir)/src/tscore/libtscore.la \ 87 $(top_builddir)/src/tscpp/util/libtscpputil.la \ 88 $(top_builddir)/iocore/eventsystem/libinkevent.a 89 90test_RolledLogDeleter_CPPFLAGS = \ 91 $(AM_CPPFLAGS) \ 92 -DTEST_LOG_UTILS \ 93 -I$(abs_top_srcdir)/tests/include 94 95test_RolledLogDeleter_SOURCES = \ 96 RolledLogDeleter.cc \ 97 LogUtils.cc \ 98 unit-tests/test_RolledLogDeleter.cc 99 100test_RolledLogDeleter_LDADD = \ 101 $(top_builddir)/src/tscore/libtscore.la \ 102 $(top_builddir)/src/tscpp/util/libtscpputil.la \ 103 $(top_builddir)/iocore/eventsystem/libinkevent.a 104 105clang-tidy-local: $(liblogging_a_SOURCES) $(EXTRA_DIST) 106 $(CXX_Clang_Tidy) 107