build: autotools files for libopenpower_dbus.so
Use the interface YAML files present to generate the server.cpp
and server.hpp files, build them into a shared library, and
install.
Change-Id: I87217ba299c04b3eb3fac819463707a103a287b5
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..6e63e81
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,15 @@
+AM_DEFAULT_SOURCE_EXT = .cpp
+
+nobase_include_HEADERS = ## These get filled in by Makefile.interfaces
+
+libopenpower_dbusdir = ${libdir}
+libopenpower_dbus_LTLIBRARIES = libopenpower_dbus.la
+libopenpower_dbus_la_LDFLAGS = $(SDBUSPLUS_LIBS) -version-info 0:0:0 -shared
+libopenpower_dbus_la_CXXFLAGS = $(SDBUSPLUS_CFLAGS)
+
+BUILT_SOURCES = libopenpower_dbus.cpp
+CLEANFILES = libopenpower_dbus.cpp
+
+clean-local: clean-dbus
+
+-include Makefile.interfaces