File: rules

package info (click to toggle)
safecat 1.13-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 640 kB
  • ctags: 243
  • sloc: ansic: 2,042; makefile: 663; sh: 270
file content (19 lines) | stat: -rwxr-xr-x 387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

CFLAGS += -D_LARGEFILE64_SOURCE

%:
	dh $@

override_dh_auto_configure:
	sed -i -e "s@^cc \(.*\)@cc ${CFLAGS}@" conf-cc
	sed -i -e "s@^cc \(.*\)@cc ${LDFLAGS}@" conf-ld

# Skip running make check, as it isn't useful for us
override_dh_auto_test:
	true

override_dh_auto_clean:
	sed -i -e "s@^cc .*@cc -O2@" conf-cc
	sed -i -e "s@^cc .*@cc -s@" conf-ld
	dh_auto_clean