Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118164
4 include /usr/share/dpkg/architecture.mk
5 ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf))
6 DEB_ADAFLAGS_MAINT_APPEND := -fno-stack-check
7 endif
8
9 DEB_BUILD_MAINT_OPTIONS := hardening=+all
10 DEB_LDFLAGS_MAINT_APPEND := \
11 -Wl,--no-undefined \
12 -Wl,--no-copy-dt-needed-entries \
13 -Wl,--no-allow-shlib-undefined
14 DPKG_EXPORT_BUILDFLAGS := 1
15 include /usr/share/dpkg/buildflags.mk
16 include /usr/share/ada/packaging.mk
17
18 %:
19 dh $@
20
21 project := -Pada_bar_codes.gpr
22 static := $(project) -XABC_Build_Mode=static
23 shared := $(project) -XABC_Build_Mode=relocatable \
24 -XABC_Library_Version=libada_bar_codes.so.$(ada_bar_codes_SO_VERSION)
25
26 override_dh_auto_build:
27 gprbuild $(GPRBUILDFLAGS) $(static)
28 gprbuild $(GPRBUILDFLAGS) $(shared)
29
30 override_dh_auto_test:
31 # Build the library a third time, with distinct options, demo and test.
32 gprbuild $(GPRBUILDFLAGS) $(project) -XABC_Build_Mode=Debug
33 # Write the output in the build directory.
34 cd obj && ../bar_codes_demo
35 cd obj && ../bar_codes_test
36
37 override_dh_auto_install:
38 gprinstall $(static) $(static_GPRINSTALLFLAGS)
39 gprinstall $(shared) $(call shared_GPRINSTALLFLAGS,ada_bar_codes)