summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-06-13 13:42:09 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-06-13 13:42:09 +0200
commitdd4307edd0a9f22590daf5706d9d47b191f569a4 (patch)
tree50b4b34ccff772617384a81bab95af09e0389f36
parent0c2a91b816124d209e8ee45114a127b2f2703bd5 (diff)
downloadlibmbim-dd4307edd0a9f22590daf5706d9d47b191f569a4.tar.gz
build: fix builds with srcdir!=builddir
-rw-r--r--cli/Makefile.am1
-rw-r--r--docs/reference/libmbim-glib/Makefile.am2
-rw-r--r--libmbim-glib/Makefile.am1
-rw-r--r--libmbim-glib/generated/Makefile.am1
-rw-r--r--libmbim-glib/test/Makefile.am6
5 files changed, 11 insertions, 0 deletions
diff --git a/cli/Makefile.am b/cli/Makefile.am
index 7485732..3685e93 100644
--- a/cli/Makefile.am
+++ b/cli/Makefile.am
@@ -5,6 +5,7 @@ mbimcli_CPPFLAGS = \
$(MBIMCLI_CFLAGS) \
-I$(top_srcdir) \
-I$(top_srcdir)/libmbim-glib \
+ -I$(top_builddir)/libmbim-glib \
-I$(top_srcdir)/libmbim-glib/generated \
-I$(top_builddir)/libmbim-glib/generated
diff --git a/docs/reference/libmbim-glib/Makefile.am b/docs/reference/libmbim-glib/Makefile.am
index e4afc06..94c874e 100644
--- a/docs/reference/libmbim-glib/Makefile.am
+++ b/docs/reference/libmbim-glib/Makefile.am
@@ -24,11 +24,13 @@ SCAN_OPTIONS = --rebuild-types
# The directory containing the source code.
DOC_SOURCE_DIR = \
$(top_srcdir)/libmbim-glib \
+ $(top_builddir)/libmbim-glib \
$(top_builddir)/libmbim-glib/generated
# Used for dependencies
HFILE_GLOB = \
$(top_srcdir)/libmbim-glib/*.h \
+ $(top_builddir)/libmbim-glib/*.h \
$(top_builddir)/libmbim-glib/generated/*.h
CFILE_GLOB = \
$(top_srcdir)/libmbim-glib/*.c \
diff --git a/libmbim-glib/Makefile.am b/libmbim-glib/Makefile.am
index ff53cc5..01ccc76 100644
--- a/libmbim-glib/Makefile.am
+++ b/libmbim-glib/Makefile.am
@@ -9,6 +9,7 @@ libmbim_glib_la_CPPFLAGS = \
-I$(top_builddir) \
-I$(top_srcdir)/libmbim-glib \
-I$(top_srcdir)/libmbim-glib/generated \
+ -I$(top_builddir)/libmbim-glib \
-I$(top_builddir)/libmbim-glib/generated \
-DLIBMBIM_GLIB_COMPILATION \
-DG_LOG_DOMAIN=\"Mbim\"
diff --git a/libmbim-glib/generated/Makefile.am b/libmbim-glib/generated/Makefile.am
index c2c869b..bd87fef 100644
--- a/libmbim-glib/generated/Makefile.am
+++ b/libmbim-glib/generated/Makefile.am
@@ -72,6 +72,7 @@ libmbim_glib_generated_la_CPPFLAGS = \
$(LIBMBIM_GLIB_CFLAGS) \
-I$(top_srcdir) \
-I$(top_srcdir)/libmbim-glib \
+ -I$(top_builddir)/libmbim-glib \
-DLIBMBIM_GLIB_COMPILATION \
-DG_LOG_DOMAIN=\"Mbim\" \
-Wno-unused-function
diff --git a/libmbim-glib/test/Makefile.am b/libmbim-glib/test/Makefile.am
index dfb2356..321fda7 100644
--- a/libmbim-glib/test/Makefile.am
+++ b/libmbim-glib/test/Makefile.am
@@ -12,6 +12,7 @@ test_uuid_CPPFLAGS = \
$(LIBMBIM_GLIB_CFLAGS) \
-I$(top_srcdir) \
-I$(top_srcdir)/libmbim-glib \
+ -I$(top_builddir)/libmbim-glib \
-DLIBMBIM_GLIB_COMPILATION
test_uuid_LDADD = \
$(top_builddir)/libmbim-glib/libmbim-glib.la \
@@ -23,6 +24,7 @@ test_cid_CPPFLAGS = \
$(LIBMBIM_GLIB_CFLAGS) \
-I$(top_srcdir) \
-I$(top_srcdir)/libmbim-glib \
+ -I$(top_builddir)/libmbim-glib \
-DLIBMBIM_GLIB_COMPILATION
test_cid_LDADD = \
$(top_builddir)/libmbim-glib/libmbim-glib.la \
@@ -34,6 +36,7 @@ test_message_CPPFLAGS = \
$(LIBMBIM_GLIB_CFLAGS) \
-I$(top_srcdir) \
-I$(top_srcdir)/libmbim-glib \
+ -I$(top_builddir)/libmbim-glib \
-DLIBMBIM_GLIB_COMPILATION
test_message_LDADD = \
$(top_builddir)/libmbim-glib/libmbim-glib.la \
@@ -45,6 +48,7 @@ test_fragment_CPPFLAGS = \
$(LIBMBIM_GLIB_CFLAGS) \
-I$(top_srcdir) \
-I$(top_srcdir)/libmbim-glib \
+ -I$(top_builddir)/libmbim-glib \
-DLIBMBIM_GLIB_COMPILATION
test_fragment_LDADD = \
$(top_builddir)/libmbim-glib/libmbim-glib.la \
@@ -56,6 +60,7 @@ test_message_contents_CPPFLAGS = \
$(LIBMBIM_GLIB_CFLAGS) \
-I$(top_srcdir) \
-I$(top_srcdir)/libmbim-glib \
+ -I$(top_builddir)/libmbim-glib \
-I$(top_builddir)/libmbim-glib/generated \
-DLIBMBIM_GLIB_COMPILATION
test_message_contents_LDADD = \
@@ -68,6 +73,7 @@ test_message_command_builder_CPPFLAGS = \
$(LIBMBIM_GLIB_CFLAGS) \
-I$(top_srcdir) \
-I$(top_srcdir)/libmbim-glib \
+ -I$(top_builddir)/libmbim-glib \
-I$(top_builddir)/libmbim-glib/generated \
-DLIBMBIM_GLIB_COMPILATION
test_message_command_builder_LDADD = \