Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 include /usr/share/dpkg/architecture.mk
3 export AUTOPOINT = true
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5 export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
6 export CFLAGS_FOR_BUILD = $(shell dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dpkg-buildflags --get CFLAGS)
7 export LDFLAGS_FOR_BUILD = $(shell dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dpkg-buildflags --get LDFLAGS)
8
9 %:
10 dh $@
11
12 override_dh_auto_configure:
13 touch po/libgpg-error.pot
14 dh_auto_configure --builddirectory=build -- \
15 --enable-static \
16 --disable-rpath \
17 --infodir=\$${prefix}/share/info \
18 --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
19
20 override_dh_auto_build-arch:
21 dh_auto_build --builddirectory=build
22 ifeq ($(DEB_HOST_MULTIARCH),$(DEB_BUILD_MULTIARCH))
23 tail -vn+0 build/src/lock-obj-pub.native.h
24 endif
25
26 override_dh_auto_test-arch:
27 dh_auto_test --builddirectory=build
28
29 override_dh_auto_install-arch:
30 dh_auto_install --builddirectory=build
31
32 override_dh_installchangelogs:
33 dh_installchangelogs -A NEWS
34
35 override_dh_installdocs:
36 dh_installdocs -A README
37
38 ### "arch-independent" Windows builds: ###
39
40 WIN_FLAGS=LDFLAGS="-Xlinker --no-insert-timestamp" CFLAGS="-g -Os -fdebug-prefix-map=$(shell pwd)=." CPPFLAGS=
41
42 override_dh_auto_build-indep:
43 for cpu in i686 x86_64; do \
44 mkdir -p build-$$cpu-w64-mingw32 && \
45 cd build-$$cpu-w64-mingw32 && $(WIN_FLAGS) ../configure \
46 --prefix=/usr/$$cpu-w64-mingw32 \
47 --enable-static \
48 --host $$cpu-w64-mingw32 && \
49 $(WIN_FLAGS) $(MAKE) \
50 || exit 1 ; \
51 cd .. ; \
52 done
53
54 override_dh_auto_install-indep:
55 for cpu in i686 x86_64; do \
56 cd build-$$cpu-w64-mingw32 && \
57 $(MAKE) install DESTDIR=$(shell pwd)/debian/tmp \
58 || exit 1 ; \
59 cd .. ; \
60 done