blob: 8d4b79b676f3e6e5e86563974b57ff584fbd7255 [file] [log] [blame]
BUILT_SOURCES=fru-gen.cpp
AM_DEFAULT_SOURCE_EXT = .cpp
CLEANFILES=$(BUILT_SOURCES)
sbin_PROGRAMS = phosphor-read-eeprom
phosphor_read_eeprom_SOURCES = readeeprom.cpp argument.cpp
phosphor_read_eeprom_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS)
phosphor_read_eeprom_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS)
phosphor_read_eeprom_LDADD = libwritefrudata.la
lib_LTLIBRARIES = libwritefrudata.la
libwritefrudata_la_SOURCES = frup.cpp fru-gen.cpp writefrudata.cpp
libwritefrudata_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(SDBUSPLUS_LIBS) -version-info 1:0:0 -shared
libwritefrudata_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) $(SDBUSPLUS_CFLAGS)
libstrgfnhandlerdir = ${libdir}/ipmid-providers
libstrgfnhandler_LTLIBRARIES = libstrgfnhandler.la
libstrgfnhandler_la_SOURCES = strgfnhandler.cpp
libstrgfnhandler_la_LDFLAGS = -version-info 1:0:0 -shared
libstrgfnhandler_la_LIBADD = libwritefrudata.la
fru-gen.cpp:
$(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp