File: rules

package info (click to toggle)
libnet 1.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,808 kB
  • sloc: ansic: 19,531; makefile: 290; sh: 94; ruby: 8
file content (21 lines) | stat: -rwxr-xr-x 601 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

#DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,-z,defs,--as-needed"

# Don't enable -Werror as the package may FTBFS when a new gcc is introduced
# Use it for testing though
# -Werror
export DEB_CFLAGS_MAINT_APPEND = -Wno-uninitialized -Wno-unused-but-set-variable

DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
  DEB_CONFIGURE_EXTRA_FLAGS += --enable-doxygen-html
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)