mirror of
https://git.jff.email/cgit/dmidecode.git
synced 2026-08-07 15:50:51 +00:00
25 lines
565 B
Makefile
Executable File
25 lines
565 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
export DEB_CFLAGS_MAINT_APPEND = -fPIE
|
|
export DEB_LDFLAGS_MAINT_APPEND = -fPIE -pie
|
|
|
|
|
|
include /usr/share/dpkg/architecture.mk
|
|
ifeq ($(origin CC),default)
|
|
CC = $(DEB_HOST_GNU_TYPE)-gcc
|
|
endif
|
|
|
|
%:
|
|
dh ${@}
|
|
|
|
override_dh_auto_build:
|
|
dh_auto_build -- CC=$(CC) CFLAGS="$(CFLAGS) $(CPPFLAGS) -Os" LDFLAGS="$(LDFLAGS)"
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install -- prefix=/usr
|
|
|
|
# remove useless files
|
|
rm -f debian/tmp/usr/share/doc/dmidecode/CHANGELOG
|
|
rm -f debian/tmp/usr/share/doc/dmidecode/README
|