Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ] build: Fix out-of-tree builds
@ 2012-09-28 19:43 Anderson Lizardo
  2012-10-01  6:38 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Anderson Lizardo @ 2012-09-28 19:43 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Anderson Lizardo

This commit makes a few changes that mostly affect "out-of-tree" builds:

* Fix symlink creation for profiles/sap/sap.c (should use build
  directory, not source tree).
* Remove useless -I$(builddir)/{tools,health} directives (these
  build directories do not contain any headers).
* Add -I$(srcdir)/profiles/sap (necessary because sap.c is a symlink
  into the build directory, and refers to headers in the source tree).

Tested with:

./bootstrap
mkdir build
cd build
../configure [...]
---
 Makefile.am |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index c27eb01..257c18a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -405,10 +405,10 @@ AM_CFLAGS += @DBUS_CFLAGS@ @GLIB_CFLAGS@
 INCLUDES = -I$(builddir)/lib -I$(builddir)/src -I$(srcdir)/src \
 			-I$(srcdir)/audio -I$(srcdir)/sbc -I$(srcdir)/gdbus \
 			-I$(srcdir)/attrib -I$(srcdir)/btio -I$(srcdir)/tools \
-			-I$(builddir)/tools -I$(srcdir)/monitor
+			-I$(srcdir)/monitor
 
-if MCAP
-INCLUDES += -I$(builddir)/health
+if SAPPLUGIN
+INCLUDES += -I$(srcdir)/profiles/sap
 endif
 
 unit_objects =
@@ -447,7 +447,7 @@ audio/telephony.c: audio/@TELEPHONY_DRIVER@
 	$(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
 
 profiles/sap/sap.c: profiles/sap/@SAP_DRIVER@
-	$(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
+	$(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
 
 profiles/input/suspend.c: profiles/input/@HOG_SUSPEND_DRIVER@
 	$(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-01 14:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-28 19:43 [PATCH BlueZ] build: Fix out-of-tree builds Anderson Lizardo
2012-10-01  6:38 ` Marcel Holtmann
2012-10-01 10:50   ` Anderson Lizardo
2012-10-01 14:53     ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox