aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-02-27 16:35:42 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-16 14:53:16 +0100
commitc55b5d097e8bfcfbcc956f45ac18e8c795100195 (patch)
treee12724dadad23f2d5bf4cfe9411480b9dbf4321b
parentf42eb8684bd1d3d46f93de24c5ac98f18880f7d4 (diff)
marshallers: integrate them into the daemon compilation
-rw-r--r--.gitignore2
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac1
-rw-r--r--marshallers/Makefile.am21
-rw-r--r--marshallers/mm-marshal-main.c2
-rw-r--r--src/Makefile.am28
-rw-r--r--src/mm-marshal.list (renamed from marshallers/mm-marshal.list)0
7 files changed, 23 insertions, 33 deletions
diff --git a/.gitignore b/.gitignore
index 5158dbb7..373f86a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,7 +28,6 @@ libtool
org.freedesktop.ModemManager.service
org.freedesktop.ModemManager.conf
ModemManager.pc
-marshallers/mm-marshal.[ch]
callouts/mm-modem-probe
test/lsudev
@@ -37,6 +36,7 @@ src/mm-daemon-enums-types.c
src/mm-daemon-enums-types.h
src/mm-serial-enums-types.c
src/mm-serial-enums-types.h
+src/mm-marshal.[ch]
src/tests/test-modem-helpers
src/tests/test-charsets
src/tests/test-qcdm-serial-port
diff --git a/Makefile.am b/Makefile.am
index 474b78cf..7994917a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,5 @@
-SUBDIRS = . marshallers build-aux data include libmm-common libqcdm libwmc src plugins introspection libmm-glib cli po test docs
+SUBDIRS = . build-aux data include libmm-common libqcdm libwmc src plugins introspection libmm-glib cli po test docs
DISTCHECK_CONFIGURE_FLAGS = \
--with-udev-base-dir="$$dc_install_base" \
diff --git a/configure.ac b/configure.ac
index 576c9213..d36a7ad5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -180,7 +180,6 @@ AM_CONDITIONAL(WMC_STANDALONE, test "yes" = "no")
AC_CONFIG_FILES([
Makefile
-marshallers/Makefile
data/Makefile
include/Makefile
build-aux/Makefile
diff --git a/marshallers/Makefile.am b/marshallers/Makefile.am
deleted file mode 100644
index 0d8d8f74..00000000
--- a/marshallers/Makefile.am
+++ /dev/null
@@ -1,21 +0,0 @@
-noinst_LTLIBRARIES = libmarshallers.la
-
-BUILT_SOURCES = \
- mm-marshal.h \
- mm-marshal.c
-
-libmarshallers_la_SOURCES = mm-marshal-main.c
-
-EXTRA_DIST = mm-marshal.list
-CLEANFILES = $(BUILT_SOURCES)
-
-libmarshallers_la_CPPFLAGS = $(MM_CFLAGS)
-libmarshallers_la_LIBADD = $(MM_LIBS)
-
-mm-marshal.h: mm-marshal.list
- $(AM_V_GEN) $(GLIB_GENMARSHAL) $< --prefix=mm_marshal --header > $@
-
-mm-marshal.c: mm-marshal.list
- $(AM_V_GEN) $(GLIB_GENMARSHAL) $< --prefix=mm_marshal --body > $@
-
-mm-marshal-main.c: mm-marshal.c mm-marshal.h
diff --git a/marshallers/mm-marshal-main.c b/marshallers/mm-marshal-main.c
deleted file mode 100644
index 01e9c815..00000000
--- a/marshallers/mm-marshal-main.c
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "mm-marshal.h"
-#include "mm-marshal.c"
diff --git a/src/Makefile.am b/src/Makefile.am
index eb44c951..f2348572 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,9 +7,6 @@ udevrules_DATA = \
77-mm-platform-serial-whitelist.rules \
80-mm-candidate.rules
-EXTRA_DIST = \
- $(udevrules_DATA)
-
noinst_LTLIBRARIES = libmodem-helpers.la libserial.la
libmodem_helpers_la_CPPFLAGS = \
@@ -89,6 +86,15 @@ mm-daemon-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-template.c
--template $(top_srcdir)/build-aux/mm-enums-template.c \
$(DAEMON_ENUMS) > $@
+# Marshallers
+
+mm-marshal.h: mm-marshal.list
+ $(AM_V_GEN) $(GLIB_GENMARSHAL) $< --prefix=mm_marshal --header > $@
+
+mm-marshal.c: mm-marshal.list mm-marshal.h
+ $(AM_V_GEN) echo "#include \"mm-marshal.h\"" > $@ && \
+ $(GLIB_GENMARSHAL) $< --prefix=mm_marshal --body >> $@
+
sbin_PROGRAMS = modem-manager
modem_manager_CPPFLAGS = \
@@ -99,7 +105,6 @@ modem_manager_CPPFLAGS = \
-I$(top_builddir)/include \
-I$(top_srcdir)/libmm-common \
-I$(top_builddir)/libmm-common \
- -I${top_builddir}/marshallers \
-DPLUGINDIR=\"$(pkglibdir)\"
if WITH_POLKIT
@@ -109,7 +114,6 @@ endif
modem_manager_LDADD = \
$(MM_LIBS) \
$(GUDEV_LIBS) \
- $(top_builddir)/marshallers/libmarshallers.la \
$(builddir)/libmodem-helpers.la \
$(builddir)/libserial.la \
$(top_builddir)/libqcdm/src/libqcdm.la
@@ -120,6 +124,8 @@ endif
modem_manager_SOURCES = \
main.c \
+ mm-marshal.h \
+ mm-marshal.c \
mm-log.c \
mm-log.h \
mm-daemon-enums-types.h \
@@ -187,6 +193,14 @@ modem_manager_SOURCES += \
mm-auth-provider-polkit.h
endif
+EXTRA_DIST = \
+ $(udevrules_DATA) \
+ mm-marshal.list
+
CLEANFILES = \
- mm-private-enums-types.h \
- mm-private-enums-types.c
+ mm-marshal.h \
+ mm-marshal.c \
+ mm-daemon-enums-types.h \
+ mm-daemon-enums-types.c \
+ mm-serial-enums-types.h \
+ mm-serial-enums-types.c
diff --git a/marshallers/mm-marshal.list b/src/mm-marshal.list
index b056823f..b056823f 100644
--- a/marshallers/mm-marshal.list
+++ b/src/mm-marshal.list