summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2016-10-18 14:25:10 -0500
committerMatthew Barth <msbarth@us.ibm.com>2016-10-19 17:02:30 -0500
commitce3490e71f9f91bd20dbb9ac037079de4a3580a8 (patch)
tree780ce3cc71df419a5788000d3b1344101fe69496 /Makefile.am
parent155c34fbb61071f5b51240c4a50b49391e0877c1 (diff)
downloadipmi-fru-parser-ce3490e71f9f91bd20dbb9ac037079de4a3580a8.zip
ipmi-fru-parser-ce3490e71f9f91bd20dbb9ac037079de4a3580a8.tar.gz
Convert build process to autotools
Replaced the use of a manual Makefile with the use of autotools to automatically verify and generate the necessary build files. Follow the steps outlined within the README.md file to build the package. Change-Id: Iaef09f17006ee51ac45f84c6c59826dcc567e279 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..71a3593
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,20 @@
+AM_DEFAULT_SOURCE_EXT = .cpp
+
+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
+
+libwritefrudatadir = ${libdir}
+libwritefrudata_LTLIBRARIES = libwritefrudata.la
+libwritefrudata_la_SOURCES = frup.c writefrudata.cpp
+libwritefrudata_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 1:0:0 -shared
+libwritefrudata_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS)
+
+libstrgfnhandlerdir = ${libdir}/host-ipmid
+libstrgfnhandler_LTLIBRARIES = libstrgfnhandler.la
+libstrgfnhandler_la_SOURCES = strgfnhandler.cpp
+libstrgfnhandler_la_LDFLAGS = -version-info 1:0:0 -shared
+libstrgfnhandler_la_LIBADD = libwritefrudata.la
OpenPOWER on IntegriCloud