3 # Uncomment this to turn on verbose mode.
7 # These are used for cross-compiling and for saving the configure script
8 # from having to guess our platform (since we know it already)
9 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17 LDFLAGS += -Wl,--as-needed
19 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
26 BT_CHIP_CFLAGS=-D__BROADCOM_PATCH__
27 CHIP_OPTIONS=--disable-bccmd
29 configure: configure.ac
33 automake --add-missing
36 config.status: configure
39 # Add here commands to configure the package.
40 CFLAGS="$(CFLAGS) -D__TIZEN_PATCH__ -D__BROADCOM_PATCH__ $(BT_CHIP_CFLAGS)" \
41 LDFLAGS="$(LDFLAGS) -Wl,--warn-unresolved-symbols" \
42 ./configure --prefix=$(PREFIX) \
43 --sysconfdir=$(PREFIX)/etc \
44 --localstatedir=$(DATADIR)/var \
55 --enable-gstreamer=no \
61 --with-telephony=tizen
65 build-stamp: config.status
68 # Add here commands to compile the package.
70 #docbook-to-man debian/ncurses.sgml > ncurses.1
72 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
73 cat $$f > $${f%.in}; \
74 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
75 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
85 # Add here commands to clean up after the build process.
88 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
100 # Add here commands to install the package into debian/tmp.
101 install -D -m 0644 $(CURDIR)/audio/audio.conf $(CURDIR)/debian/tmp/usr/etc/bluetooth/audio.conf
102 install -D -m 0644 $(CURDIR)/network/network.conf $(CURDIR)/debian/tmp/usr/etc/bluetooth/network.conf
104 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
107 # Build architecture-independent files here.
108 binary-indep: build install
109 # We have nothing to do by default.
111 # Build architecture-dependent files here.
112 binary-arch: build install
118 dh_install --sourcedir=debian/tmp
121 dh_strip --dbg-package=bluez-dbg
132 binary: binary-indep binary-arch
133 .PHONY: build clean binary-indep binary-arch binary install