3 # Uncomment this to turn on verbose mode.
6 # These are used for cross-compiling and for saving the configure script
7 # from having to guess our platform (since we know it already)
8 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
19 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
23 configure: configure-stamp
30 build-stamp: configure-stamp
33 cd build;cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/opt/AGL/UNICENS-agent -DCMAKE_INSTALL_LIBDIR:PATH=lib/$(DEB_HOST_MULTIARCH);$(MAKE)
40 rm -f configure-stamp build-stamp
41 [ ! -f Makefile ] || $(MAKE) distclean
49 # Add here commands to install the package into debian/tmp
50 mkdir -p debian/tmp/opt/AGL/UNICENS-agent;cd build;make populate;cp -r package/* ../debian/tmp/opt/AGL/UNICENS-agent/
51 mkdir -p debian/tmp/etc/profile.d
52 echo '#---------- AGL UNICENS-agent options Start ---------" ' > debian/tmp/etc/profile.d/AGL_UNICENS-agent.sh
53 echo '# Object: AGL cmake option for binder/bindings' >> debian/tmp/etc/profile.d/AGL_UNICENS-agent.sh
54 echo 'export LD_LIBRARY_PATH=/opt/AGL/UNICENS-agent/lib/$(DEB_HOST_MULTIARCH):$$LD_LIBRARY_PATH' >> debian/tmp/etc/profile.d/AGL_UNICENS-agent.sh
55 echo 'export LIBRARY_PATH=/opt/AGL/UNICENS-agent/lib/$(DEB_HOST_MULTIARCH):$$LIBRARY_PATH' >> debian/tmp/etc/profile.d/AGL_UNICENS-agent.sh
56 echo 'export PATH=/opt/AGL/UNICENS-agent/bin:$$PATH' >> debian/tmp/etc/profile.d/AGL_UNICENS-agent.sh
57 echo '#---------- AGL options End ---------' >> debian/tmp/etc/profile.d/AGL_UNICENS-agent.sh
58 # Move all files in their corresponding package
59 dh_install --list-missing -s --sourcedir=debian/tmp
60 # empty dependency_libs in .la files
61 #sed -i "/dependency_libs/ s/'.*'/''/" `find debian/ -name '*.la'`
63 # Build architecture-independent files here.
64 binary-indep: build install
65 # We have nothing to do by default.
67 # Build architecture-dependent files here.
68 binary-arch: build install
81 dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
86 binary: binary-indep binary-arch
87 .PHONY: build clean binary-indep binary-arch binary install