3 # Uncomment this to turn on verbose mode.
11 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17 LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs
19 configure: configure-stamp
22 # Add here commands to configure the package.
23 CFLAGS="$(CFLAGS) -fpie" LDFLAGS="$(LDFLAGS) -pie" \
24 cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX)
30 build-stamp: configure-stamp
33 # Add here commands to compile the package.
36 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
37 cat $$f > $${f%.in}; \
38 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
39 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
47 rm -f build-stamp configure-stamp
49 # Add here commands to clean up after the build process.
52 for f in `find $(CURDIR)/ -name "CMakeCache.txt"`; do \
55 for f in `find $(CURDIR)/ -name "CMakeFiles"`; do \
58 for f in `find $(CURDIR)/ -name "cmake_install.cmake"`; do \
61 # for f in `find $(CURDIR)/ -name "Makefile"`; do \
64 for f in `find $(CURDIR)/ -name "install_manifest.txt"`; do \
67 for f in `find $(CURDIR)/ -name "*.edj"`; do \
70 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
76 rm -f bluetooth-frwk-agent/Makefile
77 rm -f bluetooth-pb-agent/Makefile
78 rm -f bluetooth-map-agent/Makefile
79 rm -f bluetooth-frwk-agent/po/Makefile
80 rm -f lib/test/Makefile
85 rm -f lib/obex-agent-glue.h
87 rm -f bluetooth-frwk-agent/marshal.c
88 rm -f bluetooth-frwk-agent/marshal.h
89 rm -f bluetooth-telephony/marshal.c
90 rm -f bluetooth-telephony/marshal.h
92 rm -f bluetooth-frwk-agent/sc_core_agent_glue.h
93 rm -f bluetooth-frwk-agent/bluetooth_obex_agent_glue.h
94 rm -f bluetooth-pb-agent/bluetooth_pb_agent_glue.h
95 rm -f bluetooth-map-agent/bluetooth_map_agent_glue.h
96 rm -f bluetooth-telephony/bluetooth-telephony-glue.h
98 rm -f bluetooth-media-control/Makefile
99 rm -f bluetooth-media-control/bluetooth-media-control.pc
100 rm -f bluetooth-media-control/test/Makefile
110 # Add here commands to install the package into debian/wavplayer.
111 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
114 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/
115 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/
116 ln -s ../init.d/bluetooth-frwk-agent $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/S80bluetooth-frwk-agent
117 ln -s ../init.d/bluetooth-frwk-agent $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/S80bluetooth-frwk-agent
119 # Build architecture-independent files here.
120 binary-indep: build install
121 # We have nothing to do by default.
123 # Build architecture-dependent files here.
124 binary-arch: build install
130 dh_install --sourcedir=debian/tmp
133 # dh_installlogrotate
143 dh_strip --dbg-package=bluetooth-frwk-dbg
154 binary: binary-indep binary-arch
155 .PHONY: build clean binary-indep binary-arch binary install configure