Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # Copyright (c) 2003-2014 Ludovic Brenta <[email protected]>
4 # Copyright (c) 2014-2022 Nicolas Boulenguez <[email protected]>
5
6 # This build script is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as
8 # published by the Free Software Foundation; either version 3 of the
9 # License, or (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 # On Debian systems, the full text of the GPL is in the file
20 # /usr/share/common-licenses/GPL-3.
21
22 ######################
23 # Set some variables #
24 ######################
25
26 DPKG_EXPORT_BUILDFLAGSscip-debian debian libflorist 2025.1.0-2 libflorist/rules/DPKG_EXPORT_BUILDFLAGS. := 1
27 DEB_CFLAGS_MAINT_APPENDscip-debian debian libflorist 2025.1.0-2 libflorist/rules/DEB_CFLAGS_MAINT_APPEND. := -w
28 DEB_ADAFLAGS_MAINT_APPENDscip-debian debian libflorist 2025.1.0-2 libflorist/rules/DEB_ADAFLAGS_MAINT_APPEND. := -gnatVa -gnatafno
29 DEB_LDFLAGS_MAINT_APPENDscip-debian debian libflorist 2025.1.0-2 libflorist/rules/DEB_LDFLAGS_MAINT_APPEND. := \
30 -Wl,--no-allow-shlib-undefined \
31 -Wl,--no-copy-dt-needed-entries \
32 -Wl,--no-undefined
33 DEB_BUILD_MAINT_OPTIONSscip-debian debian libflorist 2025.1.0-2 libflorist/rules/DEB_BUILD_MAINT_OPTIONS. := hardening=+all
34 include /usr/share/dpkg/buildflags.mk
35 include /usr/share/ada/packaging.mk
36
37 export florist_shared_object_versionscip-debian debian libflorist 2025.1.0-2 libflorist/rules/florist_shared_object_version. := $(florist_SO_VERSIONscip-debian debian libflorist 2025.1.0-2 libflorist/rules/florist_SO_VERSION.)
38
39 %scip-debian debian libflorist 2025.1.0-2 libflorist/rules/`%`().:
40 dh $@
41
42 # Disable autoheader, upstream maintains the macros manually.
43 .PHONYscip-debian debian libflorist 2025.1.0-2 libflorist/rules/`.PHONY`().: override_dh_autoreconf
44 override_dh_autoreconfscip-debian debian libflorist 2025.1.0-2 libflorist/rules/override_dh_autoreconf().:
45 AUTOHEADER=true dh_autoreconfscip-debian debian debhelper . dh_autoreconf().
46
47 .PHONYscip-debian debian libflorist 2025.1.0-2 libflorist/rules/`.PHONY`().: $(addprefixscip-debian debian libflorist 2025.1.0-2 libflorist/rules/addprefix. override_dh_auto_, configure build test install)
48 # dh_auto_clean is OK.
49
50 override_dh_auto_configurescip-debian debian libflorist 2025.1.0-2 libflorist/rules/override_dh_auto_configure().:
51 dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -- CC=gcc-$(DEB_GNAT_VERSIONscip-debian debian libflorist 2025.1.0-2 libflorist/rules/DEB_GNAT_VERSION.) --enable-shared
52
53 override_dh_auto_buildscip-debian debian libflorist 2025.1.0-2 libflorist/rules/override_dh_auto_build().:
54 # dh_auto_build would pass -jN and interfer with gprbuild
55 $(MAKE) 'GPRBUILD=gprbuild $(GPRBUILDFLAGS)'
56
57 override_dh_auto_installscip-debian debian libflorist 2025.1.0-2 libflorist/rules/override_dh_auto_install().:
58 gprinstall florist.gpr -XLIBRARY_TYPE=static $(static_GPRINSTALLFLAGSscip-debian debian libflorist 2025.1.0-2 libflorist/rules/static_GPRINSTALLFLAGS.)
59 gprinstall florist.gpr -XLIBRARY_TYPE=relocatable \
60 $(call shared_GPRINSTALLFLAGS,florist)