blob: 683ec0fb45c5cad284bc1319719a10b3bff67180 [file] [log] [blame]
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -06001# Build these headers, don't install them
2noinst_HEADERS = \
3 defines.hpp \
4 store.hpp \
5 parser.hpp \
6 types.hpp \
7 write.hpp \
8 impl.hpp \
Deepak Kodihalli76794492017-02-16 23:48:18 -06009 args.hpp \
PriyangaRamasamyabb87ed2019-11-19 17:25:35 +053010 utils.hpp \
11 keyword_vpd_parser.hpp \
PriyangaRamasamy1f0b1e62020-02-20 20:48:25 +053012 ibm_vpd_type_check.hpp \
13 vpd_tool_impl.hpp
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060014
Alpana Kumari26a74af2019-09-10 23:53:58 -050015if IBM_PARSER
Alpana Kumaric0aeac32019-11-28 05:20:10 -060016noinst_HEADERS += \
17 vpdecc/vpdecc.h\
18 vpdecc/vpdecc_support.h
19
Alpana Kumari26a74af2019-09-10 23:53:58 -050020bin_PROGRAMS = ibm-read-vpd
21ibm_read_vpd_SOURCES = \
PriyangaRamasamyabb87ed2019-11-19 17:25:35 +053022 ibm_vpd_app.cpp \
23 ibm_vpd_type_check.cpp \
Alpana Kumari26a74af2019-09-10 23:53:58 -050024 parser.cpp \
Alpana Kumaric0aeac32019-11-28 05:20:10 -060025 vpdecc/vpdecc.c \
26 vpdecc/vpdecc_support.c\
Alpana Kumari26a74af2019-09-10 23:53:58 -050027 impl.cpp \
PriyangaRamasamyabb87ed2019-11-19 17:25:35 +053028 utils.cpp \
29 keyword_vpd_parser.cpp
Alpana Kumari26a74af2019-09-10 23:53:58 -050030
31ibm_read_vpd_LDFLAGS = $(SDBUSPLUS_LIBS) $(PHOSPHOR_LOGGING_LIBS)
32ibm_read_vpd_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS)
33
PriyangaRamasamy1f0b1e62020-02-20 20:48:25 +053034bin_PROGRAMS += vpd-tool
35vpd_tool_SOURCES = \
36 vpd_tool.cpp \
37 vpd_tool_impl.cpp
38
39vpd_tool_LDFLAGS = $(SDBUSPLUS_LIBS)
40vpd_tool_CXXFLAGS = $(SDBUSPLUS_CFLAGS)
41
Alpana Kumari26a74af2019-09-10 23:53:58 -050042else
Deepak Kodihallic7b2a712017-02-17 00:58:39 -060043# Be sure to build these before compiling
44BUILT_SOURCES = \
45 writefru.hpp \
46 extra-properties-gen.hpp
47CLEANFILES = \
48 writefru.hpp \
49 extra-properties-gen.hpp
50
51FRU_GEN_SCRIPT ?= \
52 ${abs_srcdir}/writefru.py
53FRU_GEN_SCRIPT_FILES ?= \
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060054 ${abs_srcdir}/writefru.yaml \
55 ${abs_srcdir}/writefru.mako.hpp
Deepak Kodihallic7b2a712017-02-17 00:58:39 -060056
57PROP_GEN_SCRIPT ?= \
58 ${abs_srcdir}/extra-properties.py
59PROP_GEN_SCRIPT_FILES ?= \
60 ${abs_srcdir}/extra-properties-example.yaml \
61 ${abs_srcdir}/extra-properties.mako.hpp
62
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060063EXTRA_DIST = \
Deepak Kodihallic7b2a712017-02-17 00:58:39 -060064 $(FRU_GEN_SCRIPT) \
65 $(FRU_GEN_SCRIPT_FILES) \
66 $(PROP_GEN_SCRIPT) \
67 $(PROP_GEN_SCRIPT_FILES)
68
69writefru.hpp: ${FRU_GEN_SCRIPT} ${FRU_GEN_SCRIPT_FILES}
Deepak Kodihallicd6d2412017-02-06 07:35:32 -060070 $(AM_V_GEN)@FRUGEN@
Deepak Kodihallic7b2a712017-02-17 00:58:39 -060071extra-properties-gen.hpp: ${PROP_GEN_SCRIPT} ${PROP_GEN_SCRIPT_FILES}
72 $(AM_V_GEN)@PROPGEN@
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060073
Patrick Ventureeb67ba12019-03-28 12:37:28 -070074bin_PROGRAMS = openpower-read-vpd
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060075openpower_read_vpd_SOURCES = \
76 app.cpp \
77 args.cpp \
78 impl.cpp \
79 parser.cpp \
Deepak Kodihalli76794492017-02-16 23:48:18 -060080 write.cpp \
81 utils.cpp
Deepak Kodihallic6e551b2017-02-17 07:39:50 -060082openpower_read_vpd_LDFLAGS = $(SDBUSPLUS_LIBS) $(PHOSPHOR_LOGGING_LIBS)
83openpower_read_vpd_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS)
Alpana Kumari26a74af2019-09-10 23:53:58 -050084endif
Deepak Kodihalli901c5d92016-11-30 05:19:45 -060085
86SUBDIRS = test