1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS := hardening=+all
DH_AUTO_OPTIONS := -v -Smakefile --parallel
DESTDIR := $(CURDIR)/debian/$(shell dh_listpackages)
DEB_BUILD_MAINT_OPTIONS := hardening=+all
DEB_CFLAGS_MAINT_APPEND := $(shell getconf LFS_CFLAGS) -Wall -Wextra
DPKG_EXPORT_BUILDFLAGS := 1
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/architecture.mk
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
CC := $(DEB_HOST_GNU_TYPE)-gcc
else
CC := gcc
endif
%:
dh "$@"
override_dh_auto_build:
dh_auto_build $(DH_AUTO_OPTIONS) -- \
STRIP=: CFLAGS="$(CFLAGS)" CC=$(CC)
override_dh_auto_clean:
dh_auto_clean $(DH_AUTO_OPTIONS)
override_dh_auto_install:
dh_auto_install $(DH_AUTO_OPTIONS) --destdir="$(DESTDIR)" -- \
STRIP=: CFLAGS="$(CFLAGS)" CC=$(CC)
|