blob: 5862009bf32a1b9a85cf1d270a87e2ce2f07bf5b [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
Matthew Barthce3490e2016-10-18 14:25:10 -05006sbin_PROGRAMS = phosphor-read-eeprom
7
8phosphor_read_eeprom_SOURCES = readeeprom.cpp argument.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 \
20 writefrudata.cpp \
21 extra-properties-gen.cpp
22libwritefrudata_la_LDFLAGS = $(SYSTEMD_LIBS) \
23 $(libmapper_LIBS) \
24 $(SDBUSPLUS_LIBS) \
25 $(PHOSPHOR_LOGGING_LIBS) \
26 -version-info 1:0:0 -shared
27libwritefrudata_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
28 $(libmapper_CFLAGS) \
29 $(SDBUSPLUS_CFLAGS) \
30 $(PHOSPHOR_LOGGING_CFLAGS)
Matthew Barthce3490e2016-10-18 14:25:10 -050031
Toma2ca1002016-09-06 18:21:42 +053032libstrgfnhandlerdir = ${libdir}/ipmid-providers
Matthew Barthce3490e2016-10-18 14:25:10 -050033libstrgfnhandler_LTLIBRARIES = libstrgfnhandler.la
34libstrgfnhandler_la_SOURCES = strgfnhandler.cpp
Patrick Ventured57cd012018-10-16 19:46:24 -070035libstrgfnhandler_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
36 -version-info 1:0:0 -shared
Matthew Barthce3490e2016-10-18 14:25:10 -050037libstrgfnhandler_la_LIBADD = libwritefrudata.la
Patrick Ventured57cd012018-10-16 19:46:24 -070038libstrgfnhandler_la_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Toma2ca1002016-09-06 18:21:42 +053039
Ratan Gupta6eed4032017-02-10 15:59:31 +053040fru-gen.cpp:
41 $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp
Deepak Kodihallie8c4ffd2017-02-20 01:20:08 -060042extra-properties-gen.cpp:
43 $(AM_V_GEN)@PROPGEN@