Debian Codegraph @

debian/rules

raw
1 #! /usr/bin/make -f
2
3 export DEB_CPPFLAGS_MAINT_APPEND := -Wconversion
4
5 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
6
7 ifeq ($(DEB_BUILD_ARCH),i386)
8 export DEB_CXXFLAGS_MAINT_APPEND=-ffloat-store
9 export DEB_CFLAGS_MAINT_APPEND=-ffloat-store
10 endif
11
12 ARCH = $(shell dpkg-architecture -qDEB_TARGET_MULTIARCH)
13
14 CMAKE_FLAGS = \
15 -DBUILD_TESTING:BOOL=ON \
16 -DLIBMINC_BUILD_EZMINC_EXAMPLES:BOOL=ON \
17 -DLIBMINC_BUILD_SHARED_LIBS:BOOL=ON \
18 -DLIBMINC_MINC1_SUPPORT:BOOL=ON \
19 -DLIBMINC_USE_SYSTEM_NIFTI:BOOL=ON
20
21 %:
22 dh $@
23
24 override_dh_auto_configure:
25 rm -f cmake-modules/*HDF5*
26 dh_auto_configure -- $(CMAKE_FLAGS)
27
28 override_dh_auto_test:
29 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
30 dh_auto_test --no-parallel
31 endif