File: rules

package info (click to toggle)
libxmlezout 1.06.2-17
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 172 kB
  • sloc: ada: 789; makefile: 20; sh: 18
file content (26 lines) | stat: -rwxr-xr-x 780 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS := 1
DEB_BUILD_MAINT_OPTIONS := hardening=+all
DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined \
  -Wl,--no-copy-dt-needed-entries -Wl,--no-allow-shlib-undefined
include /usr/share/dpkg/buildflags.mk
include /usr/share/ada/packaging.mk

%:
	dh $@

project := -Pxmlezout.gpr
static := -XLIBRARY_TYPE=static
shared := -XLIBRARY_TYPE=relocatable \
  -XSONAME=libxmlezout.so.$(xmlezout_SO_VERSION)

.PHONY: override_dh_auto_build
override_dh_auto_build:
	gprbuild $(project) $(static) $(GPRBUILDFLAGS)
	gprbuild $(project) $(shared) $(GPRBUILDFLAGS)

.PHONY: override_dh_auto_install
override_dh_auto_install:
	gprinstall $(project) $(static) $(static_GPRINSTALLFLAGS)
	gprinstall $(project) $(shared) $(call shared_GPRINSTALLFLAGS,xmlezout)