blob: 41daebbfd2fef229f2b3ea3b26fb66d2f71f6dff [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 \
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) \
31 $(PHOSPHOR_LOGGING_CFLAGS)
Matthew Barthce3490e2016-10-18 14:25:10 -050032
Toma2ca1002016-09-06 18:21:42 +053033libstrgfnhandlerdir = ${libdir}/ipmid-providers
Matthew Barthce3490e2016-10-18 14:25:10 -050034libstrgfnhandler_LTLIBRARIES = libstrgfnhandler.la
35libstrgfnhandler_la_SOURCES = strgfnhandler.cpp
Patrick Ventured57cd012018-10-16 19:46:24 -070036libstrgfnhandler_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
37 -version-info 1:0:0 -shared
Matthew Barthce3490e2016-10-18 14:25:10 -050038libstrgfnhandler_la_LIBADD = libwritefrudata.la
Patrick Ventured57cd012018-10-16 19:46:24 -070039libstrgfnhandler_la_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Toma2ca1002016-09-06 18:21:42 +053040
Ratan Gupta6eed4032017-02-10 15:59:31 +053041fru-gen.cpp:
42 $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp
Deepak Kodihallie8c4ffd2017-02-20 01:20:08 -060043extra-properties-gen.cpp:
44 $(AM_V_GEN)@PROPGEN@