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 | |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 17 | # Be sure to build elog-gen.hpp before compiling |
| 18 | BUILT_SOURCES = elog-gen.hpp |
| 19 | |
| 20 | CLEANFILES=elog-gen.hpp |
| 21 | |
Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 22 | # systemd required for journal interfaces |
| 23 | logging_test_LDFLAGS = $(SYSTEMD_LIBS) |
Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame] | 24 | phosphor_log_manager_LDFLAGS = $(SYSTEMD_LIBS) |
Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 25 | |
Andrew Geissler | f1f2cfa | 2016-11-21 15:16:45 -0600 | [diff] [blame] | 26 | ELOG_YAML ?= xyz/openbmc_project/Example/Elog.errors.yaml |
| 27 | ELOG_MAKO ?= elog-gen-template.mako.hpp |
| 28 | ELOG_YAML_DIR ?= tools/example/ |
| 29 | ELOG_TEMPLATE_DIR ?= tools/phosphor-logging/templates/ |
| 30 | REQ_FILES_TO_GEN ?= ${abs_srcdir}/tools/elog-gen.py\ |
| 31 | ${abs_srcdir}/$(ELOG_YAML_DIR)/$(ELOG_YAML)\ |
| 32 | ${abs_srcdir}/${ELOG_TEMPLATE_DIR}/$(ELOG_MAKO) |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 33 | |
| 34 | # Be sure to package up the required script, yaml, and mako template to |
| 35 | # generate the header file |
| 36 | EXTRA_DIST = $(REQ_FILES_TO_GEN) |
| 37 | |
| 38 | elog-gen.hpp: $(REQ_FILES_TO_GEN) |
Andrew Geissler | f1f2cfa | 2016-11-21 15:16:45 -0600 | [diff] [blame] | 39 | $(AM_V_at)${abs_srcdir}/tools/elog-gen.py -r ${abs_srcdir}/${ELOG_YAML_DIR} -t ${abs_srcdir}/${ELOG_TEMPLATE_DIR} -e $(ELOG_YAML) -m $(ELOG_MAKO) -o ${abs_srcdir}/elog-gen.hpp |
Andrew Geissler | 184690d | 2016-11-03 08:06:31 -0500 | [diff] [blame] | 40 | |
Andrew Geissler | f1f2cfa | 2016-11-21 15:16:45 -0600 | [diff] [blame] | 41 | SUBDIRS = test |