Allow -Wl,-z,defs to work - create a liblxpanel.so.0.0.0
[lxde/lxpanel.git] / debian / rules
1 #!/usr/bin/make -f
2
3 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
4 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
5
6 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
7
8 %:
9         dh ${@} --parallel --with autoreconf
10
11 override_dh_autoreconf:
12         dh_autoreconf ./autogen.sh -- 
13
14 override_dh_auto_configure:
15 ifeq ($(DEB_HOST_ARCH_OS),linux)
16         dh_auto_configure -- --enable-man --with-plugins=all --disable-silent-rules
17 else
18         # omit netstat plugin on non-linux, requires wireless-tools
19         dh_auto_configure -- --enable-man --with-plugins=all,-netstat --disable-silent-rules
20 endif
21
22 override_dh_strip:
23         dh_strip --dbg-package=lxpanel-dbg
24
25 override_dh_auto_install:
26         dh_auto_install
27         rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/lxpanel/*.la
28
29 override_dh_install:
30         dh_install --fail-missing
31
32 override_dh_makeshlibs:
33         # plugins are not shared libs so disable processing for them
34         dh_makeshlibs -X/plugins/