Andrew Geissler | 328889d | 2016-10-10 12:43:48 -0500 | [diff] [blame] | 1 | # export these headers |
| 2 | include_HEADERS = log.hpp elog.hpp |
| 3 | |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 4 | # Generate this header, don't export in a distro |
| 5 | nodist_include_HEADERS = elog-gen.hpp |
| 6 | |
Andrew Geissler | 328889d | 2016-10-10 12:43:48 -0500 | [diff] [blame] | 7 | # Application test which runs in obmc env (qemu, real hardware) |
Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 8 | bin_PROGRAMS = logging-test |
Andrew Geissler | 328889d | 2016-10-10 12:43:48 -0500 | [diff] [blame] | 9 | logging_test_SOURCES = logging_test.cpp |
Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 10 | |
Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame] | 11 | sbin_PROGRAMS = phosphor-log-manager |
| 12 | phosphor_log_manager_SOURCES = \ |
| 13 | xyz.openbmc_project.Logging.Internal.Manager.cpp \ |
| 14 | log_manager.cpp \ |
| 15 | log_manager_main.cpp |
| 16 | |
Adriana Kobylak | 7298dc2 | 2017-01-24 12:21:50 -0600 | [diff] [blame^] | 17 | # Be sure to build needed files before compiling |
| 18 | BUILT_SOURCES = elog-gen.hpp elog-lookup.cpp |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 19 | |
Adriana Kobylak | 7298dc2 | 2017-01-24 12:21:50 -0600 | [diff] [blame^] | 20 | CLEANFILES = \ |
| 21 | elog-gen.hpp \ |
| 22 | elog-lookup.cpp |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 23 | |
Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 24 | # systemd required for journal interfaces |
Adriana Kobylak | 7d0692a | 2016-12-06 15:13:23 -0600 | [diff] [blame] | 25 | logging_test_LDFLAGS = $(SYSTEMD_LIBS) $(SDBUSPLUS_LIBS) |
| 26 | logging_test_CXXFLAGS = $(SYSTEMD_CFLAGS) $(SDBUSPLUS_CFLAGS) |
| 27 | phosphor_log_manager_LDFLAGS = $(SYSTEMD_LIBS) $(SDBUSPLUS_LIBS) |
| 28 | phosphor_log_manager_CXXFLAGS = $(SYSTEMD_CFLAGS) $(SDBUSPLUS_CFLAGS) |
Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 29 | |
Andrew Geissler | f1f2cfa | 2016-11-21 15:16:45 -0600 | [diff] [blame] | 30 | ELOG_MAKO ?= elog-gen-template.mako.hpp |
Adriana Kobylak | 7298dc2 | 2017-01-24 12:21:50 -0600 | [diff] [blame^] | 31 | LOOKUP_MAKO ?= elog-lookup-template.mako.cpp |
Deepak Kodihalli | 160d3e0 | 2017-01-17 04:25:22 -0600 | [diff] [blame] | 32 | ELOG_YAML_DIR ?= tools/example/xyz/openbmc_project/Example/ |
Andrew Geissler | f1f2cfa | 2016-11-21 15:16:45 -0600 | [diff] [blame] | 33 | ELOG_TEMPLATE_DIR ?= tools/phosphor-logging/templates/ |
| 34 | REQ_FILES_TO_GEN ?= ${abs_srcdir}/tools/elog-gen.py\ |
| 35 | ${abs_srcdir}/$(ELOG_YAML_DIR)/$(ELOG_YAML)\ |
| 36 | ${abs_srcdir}/${ELOG_TEMPLATE_DIR}/$(ELOG_MAKO) |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 37 | |
| 38 | # Be sure to package up the required script, yaml, and mako template to |
| 39 | # generate the header file |
| 40 | EXTRA_DIST = $(REQ_FILES_TO_GEN) |
| 41 | |
| 42 | elog-gen.hpp: $(REQ_FILES_TO_GEN) |
Adriana Kobylak | 7298dc2 | 2017-01-24 12:21:50 -0600 | [diff] [blame^] | 43 | $(AM_V_at)$(PYTHON) ${abs_srcdir}/tools/elog-gen.py -y ${abs_srcdir}/${ELOG_YAML_DIR} -t ${abs_srcdir}/${ELOG_TEMPLATE_DIR} -m $(ELOG_MAKO) -o ${abs_srcdir}/elog-gen.hpp |
| 44 | elog-lookup.cpp: $(REQ_FILES_TO_GEN) |
| 45 | $(AM_V_at)$(PYTHON) ${abs_srcdir}/tools/elog-gen.py -y ${abs_srcdir}/${ELOG_YAML_DIR} -t ${abs_srcdir}/${ELOG_TEMPLATE_DIR} -m $(LOOKUP_MAKO) -o ${abs_srcdir}/elog-lookup.cpp |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 46 | |
Andrew Geissler | f1f2cfa | 2016-11-21 15:16:45 -0600 | [diff] [blame] | 47 | SUBDIRS = test |