Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 # Debian debhelper package build rules for libwebsockets
8
9 # Aim for the top, adapt if anything should break on the buildds.
10 #DEB_BUILD_MAINT_OPTIONS= hardening=+all future=+lfs
11 #export DEB_BUILD_MAINT_OPTIONS
12
13 arch?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
14
15 %:
16 dh $@
17
18 override_dh_auto_configure:
19 dh_auto_configure -- -DCMAKE_LIBRARY_ARCHITECTURE=${arch} \
20 -DLIB_SUFFIX=/${arch} -DLWS_WITHOUT_DAEMONIZE=OFF \
21 -DLWS_WITH_LIBEV=ON -DLWS_WITH_LIBUV=ON \
22 -DLWS_UNIX_SOCK=ON -DLWS_IPV6=ON \
23 -DLWS_WITH_ZLIB=ON -DLWS_WITH_EXTERNAL_POLL=ON \
24 -DLWS_WITHOUT_EXTENSIONS=OFF \
25 -DLWS_WITH_GLIB=ON
26
27 override_dh_install-arch:
28 $(RM) $(CURDIR)/debian/tmp/usr/lib/${arch}/pkgconfig/libwebsockets_static.pc
29 dh_install -a
30
31 .PHONY: override_dh_auto_configure override_dh_install-arch