File: rules

package info (click to toggle)
qliss3d 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 780 kB
  • ctags: 293
  • sloc: cpp: 1,310; sh: 153; makefile: 129; ansic: 10
file content (32 lines) | stat: -rwxr-xr-x 773 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
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

CXXFLAGS:=	$(shell dpkg-buildflags --get CXXFLAGS)
CPPFLAGS:=	$(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS:=	$(shell dpkg-buildflags --get LDFLAGS)

CXXFLAGS+=	-Wall -W
LDFLAGS+=	-Wl,--as-needed

ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
	CXXFLAGS+=	-Werror
endif

include /usr/share/hardening-includes/hardening.make
ifeq (,$(filter nohardening,$(DEB_BUILD_OPTIONS)))
CXXFLAGS+=	$(HARDENING_CFLAGS)
LDFLAGS+=	$(HARDENING_LDFLAGS)
endif

export CXXFLAGS CPPFLAGS LDFLAGS

override_dh_auto_configure:
	lrelease qliss3d.pro
	dh_auto_configure

override_dh_fixperms:
	chmod 644 $(CURDIR)/debian/qliss3d/usr/share/qliss3d/qliss3d.cy.qm
	chmod 644 $(CURDIR)/debian/qliss3d/usr/share/qliss3d/qliss3d.de.qm
	dh_fixperms

%:
	dh $@ --with autotools-dev