File: rules

package info (click to toggle)
usb-modeswitch 2.6.1-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 380 kB
  • sloc: ansic: 1,839; tcl: 792; sh: 224; makefile: 136
file content (20 lines) | stat: -rwxr-xr-x 536 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export DEB_CFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk
ifeq ($(origin CC),default)
CC = $(DEB_HOST_GNU_TYPE)-gcc
endif
export PKG_CONFIG = $(DEB_HOST_GNU_TYPE)-pkg-config

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- CC=$(CC) all-with-dynlink-dispatcher

# This allows to select what I want instead of deleting what I don't
override_dh_auto_install:
	DESTDIR=debian/tmp/ make CC=$(CC) install-dynlink