| 1 |
#!/usr/bin/make -f |
| 2 |
# Sample debian/rules that uses debhelper. |
| 3 |
# GNU copyright 1997 to 1999 by Joey Hess. |
| 4 |
|
| 5 |
# Uncomment this to turn on verbose mode. |
| 6 |
#export DH_VERBOSE=1 |
| 7 |
|
| 8 |
# Enable hardening build flags |
| 9 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 10 |
|
| 11 |
include /usr/share/dpkg/architecture.mk |
| 12 |
|
| 13 |
# LFS support |
| 14 |
ifeq ($(shell grep '^[[:space:]]*Linux Large File Support (LFS)' /usr/lib/*/hdf5/*/libhdf5.settings | sed 's/^[[:space:]]*Linux Large File Support (LFS):[[:space:]]*//'),yes) |
| 15 |
CPPFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_SOURCE -D_BSD_SOURCE |
| 16 |
endif |
| 17 |
|
| 18 |
ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial/libhdf5.so),) |
| 19 |
CPPFLAGS += -I/usr/include/hdf5/serial |
| 20 |
LDFLAGS += -Wl,-L/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial |
| 21 |
endif |
| 22 |
|
| 23 |
%: |
| 24 |
dh $@ |
| 25 |
|
| 26 |
override_dh_auto_configure: |
| 27 |
dh_auto_configure -- --with-hdf4 |