blob: 7759ee3a7cece31c368bdccd75f978312f83f185 [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
Deepak Kodihallic7b2a712017-02-17 00:58:39 -060013# Be sure to build these before compiling
14BUILT_SOURCES = \
15 writefru.hpp \
16 extra-properties-gen.hpp
17CLEANFILES = \
18 writefru.hpp \
19 extra-properties-gen.hpp
20
21FRU_GEN_SCRIPT ?= \
22 ${abs_srcdir}/writefru.py
23FRU_GEN_SCRIPT_FILES ?= \
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060024 ${abs_srcdir}/writefru.yaml \
25 ${abs_srcdir}/writefru.mako.hpp
Deepak Kodihallic7b2a712017-02-17 00:58:39 -060026
27PROP_GEN_SCRIPT ?= \
28 ${abs_srcdir}/extra-properties.py
29PROP_GEN_SCRIPT_FILES ?= \
30 ${abs_srcdir}/extra-properties-example.yaml \
31 ${abs_srcdir}/extra-properties.mako.hpp
32
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060033EXTRA_DIST = \
Deepak Kodihallic7b2a712017-02-17 00:58:39 -060034 $(FRU_GEN_SCRIPT) \
35 $(FRU_GEN_SCRIPT_FILES) \
36 $(PROP_GEN_SCRIPT) \
37 $(PROP_GEN_SCRIPT_FILES)
38
39writefru.hpp: ${FRU_GEN_SCRIPT} ${FRU_GEN_SCRIPT_FILES}
Deepak Kodihallicd6d2412017-02-06 07:35:32 -060040 $(AM_V_GEN)@FRUGEN@
Deepak Kodihallic7b2a712017-02-17 00:58:39 -060041extra-properties-gen.hpp: ${PROP_GEN_SCRIPT} ${PROP_GEN_SCRIPT_FILES}
42 $(AM_V_GEN)@PROPGEN@
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060043
Patrick Ventureeb67ba12019-03-28 12:37:28 -070044bin_PROGRAMS = openpower-read-vpd
Deepak Kodihalli2bba75d2016-11-30 00:46:49 -060045openpower_read_vpd_SOURCES = \
46 app.cpp \
47 args.cpp \
48 impl.cpp \
49 parser.cpp \
Deepak Kodihalli76794492017-02-16 23:48:18 -060050 write.cpp \
51 utils.cpp
Deepak Kodihallic6e551b2017-02-17 07:39:50 -060052openpower_read_vpd_LDFLAGS = $(SDBUSPLUS_LIBS) $(PHOSPHOR_LOGGING_LIBS)
53openpower_read_vpd_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS)
Deepak Kodihalli901c5d92016-11-30 05:19:45 -060054
55SUBDIRS = test