Add internal interface to create BMC Dump based on the type.

Change-Id: I098e8b29834fd726574126ec589a883ba952b298
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/Makefile.am b/Makefile.am
index 212a10f..6ff8965 100755
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,12 +4,16 @@
 noinst_HEADERS = \
 	dump_entry.hpp
 
+nobase_nodist_include_HEADERS = \
+	xyz/openbmc_project/Dump/Internal/Create/server.hpp
+
 sbin_PROGRAMS = \
 	phosphor-dump-manager
 
 phosphor_dump_manager_SOURCES = \
 	dump_manager_main.cpp \
-	dump_entry.cpp
+	dump_entry.cpp \
+	xyz/openbmc_project/Dump/Internal/Create/server.cpp
 
 phosphor_dump_manager_CXXFLAGS = \
 	$(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
@@ -18,3 +22,25 @@
 phosphor_dump_manager_LDADD = \
 	$(PHOSPHOR_DBUS_INTERFACES_LIBS) \
 	$(SDBUSPLUS_LIBS)
+
+# Be sure to build needed files before compiling
+BUILT_SOURCES = \
+        xyz/openbmc_project/Dump/Internal/Create/server.cpp \
+        xyz/openbmc_project/Dump/Internal/Create/server.hpp
+
+CLEANFILES = \
+        xyz/openbmc_project/Dump/Internal/Create/server.cpp \
+        xyz/openbmc_project/Dump/Internal/Create/server.hpp
+
+xyz/openbmc_project/Dump/Internal/Create/server.cpp: \
+xyz/openbmc_project/Dump/Internal/Create.interface.yaml \
+xyz/openbmc_project/Dump/Internal/Create/server.hpp
+	@mkdir -p `dirname $@`
+	$(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp \
+xyz.openbmc_project.Dump.Internal.Create > $@
+
+xyz/openbmc_project/Dump/Internal/Create/server.hpp: \
+xyz/openbmc_project/Dump/Internal/Create.interface.yaml
+	@mkdir -p `dirname $@`
+	$(SDBUSPLUSPLUS) -r $(srcdir) interface server-header \
+xyz.openbmc_project.Dump.Internal.Create > $@