File: rules

package info (click to toggle)
dumpet 2.1-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 172 kB
  • sloc: ansic: 908; makefile: 105
file content (21 lines) | stat: -rwxr-xr-x 567 bytes parent folder | download | duplicates (2)
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
%:
	dh $@

DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
CROSS :=
else
CROSS := \
	CC=$(DEB_HOST_GNU_TYPE)-gcc \
	PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config
endif

export DEB_BUILD_MAINT_OPTIONS := hardening=+all
include /usr/share/dpkg/buildflags.mk
cflags := $(CPPFLAGS) $(CFLAGS) -Wall -D_FILE_OFFSET_BITS=64

override_dh_auto_build:
	dh_auto_build -- $(CROSS) CFLAGS='$(cflags)' LFLAGS='$(LDFLAGS)'