| 1 | #!/usr/bin/make -f |
| 2 | # See debhelper(7) (uncomment to enable) |
| 3 | # output every command that modifies files on the build system. |
| 4 | #export DH_VERBOSE = 1 |
| 5 | |
| 6 | |
| 7 | # see FEATURE AREAS in dpkg-buildflags(1) |
| 8 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 9 | |
| 10 | # see ENVIRONMENT in dpkg-buildflags(1) |
| 11 | # package maintainers to append CFLAGS |
| 12 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 13 | # package maintainers to append LDFLAGS |
| 14 | |
| 15 | include /usr/share/dpkg/default.mk |
| 16 | |
| 17 | %: |
| 18 | dh $@ |
| 19 | |
| 20 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
| 21 | CFLAGS += -O0 |
| 22 | endif |
| 23 | |
| 24 | override_dh_auto_configure: |
| 25 | dh_auto_configure -- LDFLAGS="$(LDFLAGS) -Wl,--as-needed"\ |
| 26 | --disable-static \ |
| 27 | --disable-sdl |
| 28 | |
| 29 | override_dh_makeshlibs: |
| 30 | dh_makeshlibs -- -v$(DEB_VERSION_UPSTREAM) |
| 31 | |
| 32 | override_dh_missing: |
| 33 | dh_missing --fail-missing |