File: rules

package info (click to toggle)
netpipes 4.2-8
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 804 kB
  • ctags: 587
  • sloc: ansic: 8,599; makefile: 353
file content (22 lines) | stat: -rwxr-xr-x 454 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
22
#!/usr/bin/make -f

CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)

export CPPFLAGS CFLAGS LDFLAGS

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CDEBUGFLAGS += -g -O0 -Wall
else
	CDEBUGFLAGS += -g -O2 -Wall
endif

%:
	dh $@

override_dh_auto_build:
	$(MAKE) CDEBUGFLAGS="$(CDEBUGFLAGS)"

override_dh_installchangelogs:
	dh_installchangelogs README