| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
DPKG_EXPORT_BUILDFLAGS := 1 |
| 4 |
DEB_BUILD_MAINT_OPTIONS := hardening=+all |
| 5 |
DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined \ |
| 6 |
-Wl,--no-copy-dt-needed-entries -Wl,--no-allow-shlib-undefined |
| 7 |
include /usr/share/dpkg/buildflags.mk |
| 8 |
include /usr/share/ada/packaging.mk |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ |
| 12 |
|
| 13 |
project := -Pxmlezout.gpr |
| 14 |
static := -XLIBRARY_TYPE=static |
| 15 |
shared := -XLIBRARY_TYPE=relocatable \ |
| 16 |
-XSONAME=libxmlezout.so.$(xmlezout_SO_VERSION) |
| 17 |
|
| 18 |
.PHONY: override_dh_auto_build |
| 19 |
override_dh_auto_build: |
| 20 |
gprbuild $(project) $(static) $(GPRBUILDFLAGS) |
| 21 |
gprbuild $(project) $(shared) $(GPRBUILDFLAGS) |
| 22 |
|
| 23 |
.PHONY: override_dh_auto_install |
| 24 |
override_dh_auto_install: |
| 25 |
gprinstall $(project) $(static) $(static_GPRINSTALLFLAGS) |
| 26 |
gprinstall $(project) $(shared) $(call shared_GPRINSTALLFLAGS,xmlezout) |