Andrew Geissler | 328889d | 2016-10-10 12:43:48 -0500 | [diff] [blame] | 1 | # export these headers |
Saqib Khan | 2bb1519 | 2017-02-13 13:19:55 -0600 | [diff] [blame] | 2 | nobase_include_HEADERS = \ |
| 3 | phosphor-logging/log.hpp \ |
Tom Joseph | 7a33ee4 | 2017-07-25 00:04:20 +0530 | [diff] [blame] | 4 | phosphor-logging/elog.hpp |
Andrew Geissler | 328889d | 2016-10-10 12:43:48 -0500 | [diff] [blame] | 5 | |
Adriana Kobylak | 3773430 | 2017-03-01 12:47:38 -0600 | [diff] [blame] | 6 | nobase_nodist_include_HEADERS = \ |
Adriana Kobylak | ebd59fa | 2017-02-06 20:55:39 -0600 | [diff] [blame] | 7 | phosphor-logging/elog-errors.hpp \ |
Adriana Kobylak | 1a7508b | 2017-02-13 22:51:40 -0600 | [diff] [blame] | 8 | xyz/openbmc_project/Logging/Internal/Manager/server.hpp |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 9 | |
Adriana Kobylak | c20dae8 | 2017-02-15 13:44:16 -0600 | [diff] [blame] | 10 | libphosphor_logging_FILES = \ |
Deepak Kodihalli | 682326a | 2017-03-06 05:26:53 -0600 | [diff] [blame] | 11 | elog.cpp elog_meta.cpp |
Adriana Kobylak | c20dae8 | 2017-02-15 13:44:16 -0600 | [diff] [blame] | 12 | libphosphor_loggingdir = ${libdir} |
| 13 | libphosphor_logging_LTLIBRARIES = libphosphor_logging.la |
| 14 | libphosphor_logging_la_SOURCES = $(libphosphor_logging_FILES) |
| 15 | libphosphor_logging_la_LDFLAGS = \ |
| 16 | $(SYSTEMD_LIBS) \ |
| 17 | $(SDBUSPLUS_LIBS) \ |
| 18 | -version-info 1:0:0 -shared |
| 19 | libphosphor_logging_la_CXXFLAGS = \ |
| 20 | $(SDBUSPLUS_CFLAGS) |
| 21 | |
Andrew Geissler | 328889d | 2016-10-10 12:43:48 -0500 | [diff] [blame] | 22 | # Application test which runs in obmc env (qemu, real hardware) |
Deepak Kodihalli | 739e925 | 2017-03-05 23:23:50 -0600 | [diff] [blame] | 23 | bin_PROGRAMS = logging-test callout-test |
Andrew Geissler | 328889d | 2016-10-10 12:43:48 -0500 | [diff] [blame] | 24 | logging_test_SOURCES = logging_test.cpp |
Michael Tritz | e0eb1dd | 2017-02-19 20:57:46 -0600 | [diff] [blame] | 25 | logging_test_LDADD = libphosphor_logging.la |
Deepak Kodihalli | 739e925 | 2017-03-05 23:23:50 -0600 | [diff] [blame] | 26 | callout_test_SOURCES = callouts/callout_test.cpp |
Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 27 | |
Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame] | 28 | sbin_PROGRAMS = phosphor-log-manager |
Adriana Kobylak | 88d7cf8 | 2017-01-24 12:30:15 -0600 | [diff] [blame] | 29 | |
Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame] | 30 | phosphor_log_manager_SOURCES = \ |
Adriana Kobylak | 1a7508b | 2017-02-13 22:51:40 -0600 | [diff] [blame] | 31 | xyz/openbmc_project/Logging/Internal/Manager/server.cpp \ |
Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame] | 32 | log_manager.cpp \ |
Adriana Kobylak | 88d7cf8 | 2017-01-24 12:30:15 -0600 | [diff] [blame] | 33 | log_manager_main.cpp \ |
Adriana Kobylak | d722b3a | 2017-02-28 12:10:44 -0600 | [diff] [blame] | 34 | elog-lookup.cpp \ |
Deepak Kodihalli | b388da6 | 2017-02-27 00:47:12 -0600 | [diff] [blame] | 35 | elog_entry.cpp \ |
Deepak Kodihalli | 88826f8 | 2017-02-28 02:47:07 -0600 | [diff] [blame] | 36 | org.openbmc.Associations.cpp \ |
Deepak Kodihalli | 682326a | 2017-03-06 05:26:53 -0600 | [diff] [blame] | 37 | elog-process-metadata.cpp \ |
Deepak Kodihalli | 72654f1 | 2017-06-12 04:33:29 -0500 | [diff] [blame] | 38 | elog_meta.cpp \ |
| 39 | elog_serialize.cpp |
Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame] | 40 | |
Adriana Kobylak | 7298dc2 | 2017-01-24 12:21:50 -0600 | [diff] [blame] | 41 | # Be sure to build needed files before compiling |
Adriana Kobylak | 1a7508b | 2017-02-13 22:51:40 -0600 | [diff] [blame] | 42 | BUILT_SOURCES = \ |
Adriana Kobylak | ebd59fa | 2017-02-06 20:55:39 -0600 | [diff] [blame] | 43 | phosphor-logging/elog-errors.hpp \ |
Adriana Kobylak | 1a7508b | 2017-02-13 22:51:40 -0600 | [diff] [blame] | 44 | elog-lookup.cpp \ |
Deepak Kodihalli | 88826f8 | 2017-02-28 02:47:07 -0600 | [diff] [blame] | 45 | elog-process-metadata.cpp \ |
Adriana Kobylak | 1a7508b | 2017-02-13 22:51:40 -0600 | [diff] [blame] | 46 | xyz/openbmc_project/Logging/Internal/Manager/server.cpp \ |
Deepak Kodihalli | a3db077 | 2017-03-02 09:15:51 -0600 | [diff] [blame] | 47 | xyz/openbmc_project/Logging/Internal/Manager/server.hpp \ |
| 48 | callouts-gen.hpp |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 49 | |
Adriana Kobylak | 7298dc2 | 2017-01-24 12:21:50 -0600 | [diff] [blame] | 50 | CLEANFILES = \ |
Adriana Kobylak | ebd59fa | 2017-02-06 20:55:39 -0600 | [diff] [blame] | 51 | phosphor-logging/elog-errors.hpp \ |
Adriana Kobylak | 1a7508b | 2017-02-13 22:51:40 -0600 | [diff] [blame] | 52 | elog-lookup.cpp \ |
Deepak Kodihalli | 88826f8 | 2017-02-28 02:47:07 -0600 | [diff] [blame] | 53 | elog-process-metadata.cpp \ |
Adriana Kobylak | 1a7508b | 2017-02-13 22:51:40 -0600 | [diff] [blame] | 54 | xyz/openbmc_project/Logging/Internal/Manager/server.cpp \ |
Deepak Kodihalli | a3db077 | 2017-03-02 09:15:51 -0600 | [diff] [blame] | 55 | xyz/openbmc_project/Logging/Internal/Manager/server.hpp \ |
| 56 | callouts-gen.hpp |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 57 | |
Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 58 | # systemd required for journal interfaces |
Adriana Kobylak | 7d0692a | 2016-12-06 15:13:23 -0600 | [diff] [blame] | 59 | logging_test_LDFLAGS = $(SYSTEMD_LIBS) $(SDBUSPLUS_LIBS) |
| 60 | logging_test_CXXFLAGS = $(SYSTEMD_CFLAGS) $(SDBUSPLUS_CFLAGS) |
Deepak Kodihalli | 739e925 | 2017-03-05 23:23:50 -0600 | [diff] [blame] | 61 | callout_test_LDADD = libphosphor_logging.la |
| 62 | callout_test_LDFLAGS = $(SDBUSPLUS_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 63 | callout_test_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Adriana Kobylak | 8692ac9 | 2017-02-09 13:54:59 -0600 | [diff] [blame] | 64 | phosphor_log_manager_LDFLAGS = \ |
| 65 | $(SYSTEMD_LIBS) \ |
| 66 | $(SDBUSPLUS_LIBS) \ |
Deepak Kodihalli | 72654f1 | 2017-06-12 04:33:29 -0500 | [diff] [blame] | 67 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 68 | -lstdc++fs |
Adriana Kobylak | 8692ac9 | 2017-02-09 13:54:59 -0600 | [diff] [blame] | 69 | phosphor_log_manager_CXXFLAGS = \ |
| 70 | $(SYSTEMD_CFLAGS) \ |
| 71 | $(SDBUSPLUS_CFLAGS) \ |
| 72 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 73 | |
Adriana Kobylak | 1a7508b | 2017-02-13 22:51:40 -0600 | [diff] [blame] | 74 | xyz/openbmc_project/Logging/Internal/Manager/server.cpp: xyz/openbmc_project/Logging/Internal/Manager.interface.yaml xyz/openbmc_project/Logging/Internal/Manager/server.hpp |
| 75 | @mkdir -p `dirname $@` |
| 76 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Logging.Internal.Manager > $@ |
| 77 | |
| 78 | xyz/openbmc_project/Logging/Internal/Manager/server.hpp: xyz/openbmc_project/Logging/Internal/Manager.interface.yaml |
| 79 | @mkdir -p `dirname $@` |
| 80 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Logging.Internal.Manager > $@ |
| 81 | |
Andrew Geissler | f1f2cfa | 2016-11-21 15:16:45 -0600 | [diff] [blame] | 82 | ELOG_MAKO ?= elog-gen-template.mako.hpp |
Adriana Kobylak | 7298dc2 | 2017-01-24 12:21:50 -0600 | [diff] [blame] | 83 | LOOKUP_MAKO ?= elog-lookup-template.mako.cpp |
Deepak Kodihalli | 88826f8 | 2017-02-28 02:47:07 -0600 | [diff] [blame] | 84 | META_MAKO ?= elog-process-metadata.mako.cpp |
Deepak Kodihalli | a3db077 | 2017-03-02 09:15:51 -0600 | [diff] [blame] | 85 | CALLOUTS_MAKO ?= callouts-gen.mako.hpp |
Adriana Kobylak | f469073 | 2017-02-19 09:53:34 -0600 | [diff] [blame] | 86 | ELOG_TEMPLATE_DIR ?= ${abs_srcdir}/tools/phosphor-logging/templates/ |
Andrew Geissler | f1f2cfa | 2016-11-21 15:16:45 -0600 | [diff] [blame] | 87 | REQ_FILES_TO_GEN ?= ${abs_srcdir}/tools/elog-gen.py\ |
Deepak Kodihalli | 88826f8 | 2017-02-28 02:47:07 -0600 | [diff] [blame] | 88 | ${ELOG_TEMPLATE_DIR}/$(ELOG_MAKO)\ |
Deepak Kodihalli | a3db077 | 2017-03-02 09:15:51 -0600 | [diff] [blame] | 89 | ${ELOG_TEMPLATE_DIR}/$(META_MAKO)\ |
| 90 | ${abs_srcdir}/callouts/callouts.py\ |
| 91 | ${abs_srcdir}/callouts/$(CALLOUTS_MAKO) |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 92 | |
| 93 | # Be sure to package up the required script, yaml, and mako template to |
| 94 | # generate the header file |
| 95 | EXTRA_DIST = $(REQ_FILES_TO_GEN) |
| 96 | |
Adriana Kobylak | ebd59fa | 2017-02-06 20:55:39 -0600 | [diff] [blame] | 97 | phosphor-logging/elog-errors.hpp: $(REQ_FILES_TO_GEN) |
| 98 | @mkdir -p `dirname $@` |
| 99 | $(AM_V_at)$(PYTHON) ${abs_srcdir}/tools/elog-gen.py -y ${YAML_DIR} -u ${YAML_DIR_TEST} -t ${ELOG_TEMPLATE_DIR} -m $(ELOG_MAKO) -o $@ |
Adriana Kobylak | 7298dc2 | 2017-01-24 12:21:50 -0600 | [diff] [blame] | 100 | elog-lookup.cpp: $(REQ_FILES_TO_GEN) |
Adriana Kobylak | ebd59fa | 2017-02-06 20:55:39 -0600 | [diff] [blame] | 101 | $(AM_V_at)$(PYTHON) ${abs_srcdir}/tools/elog-gen.py -y ${YAML_DIR} -u ${YAML_DIR_TEST} -t ${ELOG_TEMPLATE_DIR} -m $(LOOKUP_MAKO) -o $@ |
Deepak Kodihalli | 88826f8 | 2017-02-28 02:47:07 -0600 | [diff] [blame] | 102 | elog-process-metadata.cpp: $(REQ_FILES_TO_GEN) |
| 103 | $(AM_V_at)$(PYTHON) ${abs_srcdir}/tools/elog-gen.py -y ${YAML_DIR} -u ${YAML_DIR_TEST} -t ${ELOG_TEMPLATE_DIR} -m $(META_MAKO) -o $@ |
Deepak Kodihalli | a3db077 | 2017-03-02 09:15:51 -0600 | [diff] [blame] | 104 | callouts-gen.hpp: $(REQ_FILES_TO_GEN) |
| 105 | $(AM_V_at)$(PYTHON) ${abs_srcdir}/callouts/callouts.py -i ${CALLOUTS_YAML} |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 106 | |
Brad Bishop | 9316b9a | 2017-02-10 14:21:37 -0500 | [diff] [blame] | 107 | pkgconfiglibdir = ${libdir}/pkgconfig |
| 108 | pkgconfiglib_DATA = phosphor-logging.pc |
| 109 | |
Andrew Geissler | f1f2cfa | 2016-11-21 15:16:45 -0600 | [diff] [blame] | 110 | SUBDIRS = test |