Add channel-gen.cpp to compilation units

The commit c01edf283dca792d1eecedd5c03b69b7eebb6f23 in
phosphor-host-ipmid had introduced a breaking change. This
commit would fix that.

Change-Id: Id3aa18bcc3b7f054b8c659916896de146064d8bb
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/.gitignore b/.gitignore
index 7a36e8c..8e4dc30 100644
--- a/.gitignore
+++ b/.gitignore
@@ -63,3 +63,4 @@
 /inventory-sensor-gen.cpp
 /fru-read-gen.cpp
 /app/*.lo
+/channel-gen.cpp
diff --git a/Makefile.am b/Makefile.am
index 8190320..d519ba7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,12 +11,16 @@
 	utils.cpp
 nodist_ipmid_SOURCES = ipmiwhitelist.cpp
 
+libapphandler_BUILT_LIST = \
+	sensor-gen.cpp \
+	inventory-sensor-gen.cpp \
+	fru-read-gen.cpp \
+	channel-gen.cpp
+
 BUILT_SOURCES = \
                ipmiwhitelist.cpp \
-               sensor-gen.cpp \
-               inventory-sensor-gen.cpp \
-               fru-read-gen.cpp \
-               channel-gen.cpp
+               $(libapphandler_BUILT_LIST)
+
 
 CLEANFILES = $(BUILT_SOURCES)
 
@@ -66,14 +70,12 @@
 	transporthandler.cpp \
 	globalhandler.cpp \
 	groupext.cpp \
-	sensor-gen.cpp \
 	utils.cpp \
-	inventory-sensor-gen.cpp \
-	fru-read-gen.cpp \
 	selutility.cpp \
 	ipmi_fru_info_area.cpp \
 	read_fru_data.cpp \
-	sensordatahandler.cpp
+	sensordatahandler.cpp \
+	$(libapphandler_BUILT_LIST)
 
 libapphandler_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(PHOSPHOR_LOGGING_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) -lstdc++fs -version-info 0:0:0 -shared
 libapphandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)