Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 CC = gcc
5 DESTDIR=$(CURDIR)/debian/tmp
6 PKG_LIB = debian/libbg2
7 PKG_DEV = debian/libbg-dev
8
9 %:
10 dh $@
11
12 override_dh_dwz:
13 : Skipping dwz, compression not beneficial on bglibs binaries
14
15 override_dh_auto_configure:
16 echo $(CC) $(CFLAGS) $(CPPFLAGS) > conf-cc
17 echo $(CC) $(LDFLAGS) > conf-ld
18 echo $(DESTDIR)/usr/share/man > conf-man
19 echo $(DESTDIR)/usr/bin > conf-bin
20 echo $(CURDIR)/$(PKG_DEV)/usr/include > conf-include
21 echo $(CURDIR)/$(PKG_LIB)/usr/lib > conf-lib
22
23 override_dh_auto_build:
24 dh_auto_build -- libraries man programs
25 doxygen config.dxy
26
27 override_dh_auto_test:
28 dh_auto_test -- selftests
29
30 override_dh_auto_install:
31 $(MAKE) install
32 rm $(PKG_LIB)/usr/lib/*.la
33 # Static linking is part of development suite
34 mkdir $(PKG_DEV)/usr/lib
35 mv $(PKG_LIB)/usr/lib/*.a $(PKG_DEV)/usr/lib
36 mv $(PKG_LIB)/usr/lib/libbg.so $(PKG_DEV)/usr/lib
37
38 override_dh_gencontrol:
39 dh_gencontrol -- -Vmisc:Built-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version})' -W libc-dev-bin)"