blob: 2288a3b532ca9018416d242091425fba7c05a42a [file] [log] [blame]
Deepak Kodihallie8c4ffd2017-02-20 01:20:08 -06001BUILT_SOURCES=fru-gen.cpp extra-properties-gen.cpp
Matthew Barthce3490e2016-10-18 14:25:10 -05002AM_DEFAULT_SOURCE_EXT = .cpp
3
Deepak Kodihalli92cea962017-01-25 10:50:23 -06004CLEANFILES=$(BUILT_SOURCES)
5
Patrick Venture7d740a62019-03-28 11:05:35 -07006bin_PROGRAMS = phosphor-read-eeprom
Matthew Barthce3490e2016-10-18 14:25:10 -05007
Patrick Ventured847f502019-03-26 11:12:39 -07008phosphor_read_eeprom_SOURCES = readeeprom.cpp
Patrick Ventured57cd012018-10-16 19:46:24 -07009phosphor_read_eeprom_LDFLAGS = $(SYSTEMD_LIBS) \
10 $(libmapper_LIBS) \
11 $(PHOSPHOR_LOGGING_LIBS)
12phosphor_read_eeprom_CXXFLAGS = $(SYSTEMD_CFLAGS) \
13 $(libmapper_CFLAGS) \
14 $(PHOSPHOR_LOGGING_CFLAGS)
Matthew Barthce3490e2016-10-18 14:25:10 -050015phosphor_read_eeprom_LDADD = libwritefrudata.la
16
Matthew Barthd51dd1c2017-02-16 10:03:13 -060017lib_LTLIBRARIES = libwritefrudata.la
Patrick Ventured57cd012018-10-16 19:46:24 -070018libwritefrudata_la_SOURCES = frup.cpp \
19 fru-gen.cpp \
Patrick Venturea19bd0c2018-10-20 20:09:42 -070020 fru_area.cpp \
Patrick Ventured57cd012018-10-16 19:46:24 -070021 writefrudata.cpp \
22 extra-properties-gen.cpp
23libwritefrudata_la_LDFLAGS = $(SYSTEMD_LIBS) \
24 $(libmapper_LIBS) \
25 $(SDBUSPLUS_LIBS) \
26 $(PHOSPHOR_LOGGING_LIBS) \
27 -version-info 1:0:0 -shared
28libwritefrudata_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
29 $(libmapper_CFLAGS) \
30 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III8ab57842019-02-12 12:49:51 -080031 $(PHOSPHOR_LOGGING_CFLAGS) \
32 $(LIBIPMID_CFLAGS)
Matthew Barthce3490e2016-10-18 14:25:10 -050033
Toma2ca1002016-09-06 18:21:42 +053034libstrgfnhandlerdir = ${libdir}/ipmid-providers
Matthew Barthce3490e2016-10-18 14:25:10 -050035libstrgfnhandler_LTLIBRARIES = libstrgfnhandler.la
36libstrgfnhandler_la_SOURCES = strgfnhandler.cpp
Patrick Ventured57cd012018-10-16 19:46:24 -070037libstrgfnhandler_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
William A. Kennington III8ab57842019-02-12 12:49:51 -080038 $(LIBIPMID_LIBS) \
Patrick Ventured57cd012018-10-16 19:46:24 -070039 -version-info 1:0:0 -shared
Matthew Barthce3490e2016-10-18 14:25:10 -050040libstrgfnhandler_la_LIBADD = libwritefrudata.la
William A. Kennington III8ab57842019-02-12 12:49:51 -080041libstrgfnhandler_la_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) \
42 $(LIBIPMID_CFLAGS)
Toma2ca1002016-09-06 18:21:42 +053043
Ratan Gupta6eed4032017-02-10 15:59:31 +053044fru-gen.cpp:
45 $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp
Deepak Kodihallie8c4ffd2017-02-20 01:20:08 -060046extra-properties-gen.cpp:
47 $(AM_V_GEN)@PROPGEN@