Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 include /usr/share/dpkg/architecture.mk
7
8 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9
10 export DEB_CFLAGS_MAINT_STRIP = -O2
11 export DEB_CXXFLAGS_MAINT_STRIP = -O2
12 export DEB_CFLAGS_MAINT_APPEND = -O3
13 export DEB_CXXFLAGS_MAINT_APPEND = -O3
14
15 # Build tests by default but honor "nocheck" setting
16
17 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
18 CONFIGURE_OPTS := -DKISSFFT_TEST=ON
19 else
20 CONFIGURE_OPTS := -DKISSFFT_TEST=OFF
21 endif
22
23 %:
24 dh $@ --buildsystem=cmake
25
26 override_dh_auto_configure:
27 dh_auto_configure -- \
28 -DCMAKE_BUILD_TYPE=ReleaseWithDebInfo \
29 -DBUILD_SHARED_LIBS=ON \
30 ${CONFIGURE_OPTS} \
31 -DUSE_LTO=1