dristibute single shared shared library: libmessage-port.so
authorAmarnath Valluri <amarnath.valluri@linux.intel.com>
Tue, 15 Oct 2013 16:56:24 +0000 (19:56 +0300)
committerAmarnath Valluri <amarnath.valluri@linux.intel.com>
Tue, 15 Oct 2013 16:56:24 +0000 (19:56 +0300)
common/Makefile.am
daemon/Makefile.am
lib/Makefile.am

index 82f0fea..0af6258 100644 (file)
@@ -1,4 +1,4 @@
-lib_LTLIBRARIES = libmessageport-dbus-glue.la 
+noinst_LTLIBRARIES = libmessageport-dbus-glue.la  libmessageport-common.la
 NULL = 
 
 dbus-manager-glue.c dbus-maanager-glue.h : org.tizen.messageport.Manager.xml
@@ -15,20 +15,43 @@ dbus-service-glue.c dbus-service-glue.h : org.tizen.messageport.Service.xml
         --generate-c-code  dbus-service-glue     \
         $<
 
-nodist_libmessageport_dbus_glue_la_SOURCES = \
+#
+# libmessageport-dbus-glue.la
+#
+libmessageport_dbus_glue_la_SOURCES = \
     dbus-manager-glue.h \
     dbus-manager-glue.c \
     dubs-service-glue.h \
     dbus-service-glue.c \
-    dbus-error.h \
-    dbus-error.c \
     $(NULL)
     
 libmessageport_dbus_glue_la_CPPFLAGS = \
     -I$(top_builddir) \
-    $(GLIB_CFLAGS) $(GIO_CFLAGS) $(GIOUNIX_CFLAGS)
+    $(GLIB_CFLAGS) $(GIO_CFLAGS) $(GIOUNIX_CFLAGS) \
+    $(NULL)
 
 libmessageport_dbus_glue_la_LIBADD = \
-    $(GLIB_LIBS) $(GIO_LIBS) $(GIOUNIX_LIBS)
+    $(GLIB_LIBS) $(GIO_LIBS) $(GIOUNIX_LIBS) \
+    $(NULL)
+
+
+#
+# libmessageport-common.la
+#
+libmessageport_common_la_SOURCES = \
+    -I$(top_builddir) \
+    dbus-error.h \
+    dbus-error.c \
+    $(NULL)
+
+libmessageport_common_la_CPPFLAGS = \
+    -I$(top_builddir) \
+    $(GLIB_CFLAGS) $(GIO_CFLAGS) $(GIOUNIX_CFLAGS) \
+    $(NULL)
+
+libmessageport_common_la_LIBADD = \
+    ./libmessageport-dbus-glue.la \
+    $(GLIB_LIBS) $(GIO_LIBS) $(GIOUNIX_LIBS) \
+    $(NULL)
 
 CLEANFILES = 
index 1cb6548..b14d22b 100644 (file)
@@ -19,7 +19,7 @@ messageportd_CPPFLAGS = \
     $(NULL)
 
 messageportd_LDADD = \
-    ../common/libmessageport-dbus-glue.la \
+    ../common/libmessageport-common.la \
     $(GLIB_LIBS) $(GIO_LIBS) $(AUL_LIBS) $(PKGMGRINFO_LIBS) \
     $(NULL)
 
index 85fa812..a6d937b 100644 (file)
@@ -24,7 +24,7 @@ libmessage_port_la_CPPFLAGS = \
     $(NULL)
 
 libmessage_port_la_LIBADD = \
-    ../common/libmessageport-dbus-glue.la \
+    ../common/libmessageport-common.la \
     $(GLIB_LIBS) $(GIO_LIBS) $(BUNDLE_LIBS)