blob: c7e4d9c9371bf23af07dcb18e3579ed787ddbc76 [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 \
10 types.hpp \
11 utils.hpp
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060012
Alpana Kumari26a74af2019-09-10 23:53:58 -050013if IBM_PARSER
14bin_PROGRAMS = ibm-read-vpd
15ibm_read_vpd_SOURCES = \
16 ipz_app.cpp \
17 parser.cpp \
18 impl.cpp \
19 utils.cpp
20
21ibm_read_vpd_LDFLAGS = $(SDBUSPLUS_LIBS) $(PHOSPHOR_LOGGING_LIBS)
22ibm_read_vpd_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS)
23
24else
Deepak Kodihallic7b2a712017-02-17 00:58:39 -060025# Be sure to build these before compiling
26BUILT_SOURCES = \
27 writefru.hpp \
28 extra-properties-gen.hpp
29CLEANFILES = \
30 writefru.hpp \
31 extra-properties-gen.hpp
32
33FRU_GEN_SCRIPT ?= \
34 ${abs_srcdir}/writefru.py
35FRU_GEN_SCRIPT_FILES ?= \
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060036 ${abs_srcdir}/writefru.yaml \
37 ${abs_srcdir}/writefru.mako.hpp
Deepak Kodihallic7b2a712017-02-17 00:58:39 -060038
39PROP_GEN_SCRIPT ?= \
40 ${abs_srcdir}/extra-properties.py
41PROP_GEN_SCRIPT_FILES ?= \
42 ${abs_srcdir}/extra-properties-example.yaml \
43 ${abs_srcdir}/extra-properties.mako.hpp
44
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060045EXTRA_DIST = \
Deepak Kodihallic7b2a712017-02-17 00:58:39 -060046 $(FRU_GEN_SCRIPT) \
47 $(FRU_GEN_SCRIPT_FILES) \
48 $(PROP_GEN_SCRIPT) \
49 $(PROP_GEN_SCRIPT_FILES)
50
51writefru.hpp: ${FRU_GEN_SCRIPT} ${FRU_GEN_SCRIPT_FILES}
Deepak Kodihallicd6d2412017-02-06 07:35:32 -060052 $(AM_V_GEN)@FRUGEN@
Deepak Kodihallic7b2a712017-02-17 00:58:39 -060053extra-properties-gen.hpp: ${PROP_GEN_SCRIPT} ${PROP_GEN_SCRIPT_FILES}
54 $(AM_V_GEN)@PROPGEN@
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060055
Patrick Ventureeb67ba12019-03-28 12:37:28 -070056bin_PROGRAMS = openpower-read-vpd
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060057openpower_read_vpd_SOURCES = \
58 app.cpp \
59 args.cpp \
60 impl.cpp \
61 parser.cpp \
Deepak Kodihalli76794492017-02-16 23:48:18 -060062 write.cpp \
63 utils.cpp
Deepak Kodihallic6e551b2017-02-17 07:39:50 -060064openpower_read_vpd_LDFLAGS = $(SDBUSPLUS_LIBS) $(PHOSPHOR_LOGGING_LIBS)
65openpower_read_vpd_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS)
Alpana Kumari26a74af2019-09-10 23:53:58 -050066endif
Deepak Kodihalli901c5d92016-11-30 05:19:45 -060067
68SUBDIRS = test