File: rules

package info (click to toggle)
xcb 2.4-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 220 kB
  • sloc: ansic: 2,071; makefile: 16
file content (24 lines) | stat: -rwxr-xr-x 580 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
22
23
24
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

override_dh_auto_configure:
	xmkmf -a

override_dh_auto_build:
	# CCOPTIONS is used to pass CFLAGS, CPPFLAGS when compiling .c files,
	# EXTRA_LOAD_FLAGS when linking the program.
	dh_auto_build -- \
		CCOPTIONS="$(CFLAGS) $(CPPFLAGS)" \
		EXTRA_LOAD_FLAGS="-I. $(CFLAGS) $(LDFLAGS)"
	cp xcb.man debian/xcb.1

override_dh_clean:
	[ ! -f Makefile ] && xmkmf -a || :
	[ ! -f Makefile ] || $(MAKE) clean
	dh_clean

%:
	dh $@