File: rules

package info (click to toggle)
ccbuild 2.0.7%2Bgit20160227.c1179286-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,692 kB
  • sloc: cpp: 5,211; ansic: 1,913; sh: 260; makefile: 26
file content (21 lines) | stat: -rwxr-xr-x 518 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
#!/usr/bin/make -f

PACKAGE	 = ccbuild

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

override_dh_auto_build:
	# For some reason, the only way to pass flags is in CXX
	@echo "# environment: CXX $(CXX) CFLAGS $(CFLAGS) CXXFLAGS $(CXXFLAGS)"
	cmake .
	$(MAKE) CXX="g++ $(CXXFLAGS)" DESTDIR=$(CURDIR)/debian/ccbuild install

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

%:
	dh  $@

# End of file