3 # Uncomment this to turn on verbose mode.
12 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18 LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs
20 configure: configure-stamp
23 # Add here commands to configure the package.
24 CFLAGS="$(CFLAGS) -fpie" LDFLAGS="$(LDFLAGS) -pie" \
25 cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX) -DPLUGIN_INSTALL_PREFIX=$(PLUGIN_PREFIX)
31 build-stamp: configure-stamp
34 # Add here commands to compile the package.
37 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
38 cat $$f > $${f%.in}; \
39 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
40 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
41 sed -i -e "s#@PLUGIN_PREFIX@#$(PLUGIN_PREFIX)#g" $${f%.in}; \
49 rm -f build-stamp configure-stamp
51 # Add here commands to clean up after the build process.
55 for f in `find $(CURDIR)/ -name "CMakeCache.txt"`; do \
58 for f in `find $(CURDIR)/ -name "CMakeFiles"`; do \
61 for f in `find $(CURDIR)/ -name "cmake_install.cmake"`; do \
64 for f in `find $(CURDIR)/ -name "Makefile"`; do \
67 for f in `find $(CURDIR)/ -name "install_manifest.txt"`; do \
71 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
75 rm -f scripts/BCM_FIRMWARE*.hcd
76 rm -f scripts/bt-dev-end.sh
77 rm -f scripts/bt-dev-start.sh
78 rm -f scripts/bt-set-addr.sh
88 # Add here commands to install the package into debian/wavplayer.
89 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
92 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
93 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc3.d
94 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc5.d
95 ln -s ../init.d/bluetooth-address $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/S60bluetooth-address
96 ln -s ../init.d/bluetooth-address $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/S60bluetooth-address
98 # Build architecture-independent files here.
99 binary-indep: build install
100 # We have nothing to do by default.
102 # Build architecture-dependent files here.
103 binary-arch: build install
109 dh_install --sourcedir=debian/tmp
112 # dh_installlogrotate
122 dh_strip --dbg-package=bt-firmware-43xx-dbg
133 binary: binary-indep binary-arch
134 .PHONY: build clean binary-indep binary-arch binary install configure