File: rules

package info (click to toggle)
icmake 13.02.00-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,104 kB
  • sloc: cpp: 11,641; makefile: 854; fortran: 803; sh: 558; pascal: 342
file content (42 lines) | stat: -rwxr-xr-x 1,025 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
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/make -f

# Uncommented to turn on verbose mode.
export DH_VERBOSE=1

export DEB_BUILD_HARDENING=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export ICMAKE_CPPSTD = --std=c++26

export CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS)
export CXXFLAGS += ${ICMAKE_CPPSTD}  -Wall -D_FORTIFY_SOURCE=2

export LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
# export LDFLAGS += -Wl,bindnow
export LDFLAGS += -Wl,-z,now

export CXX = g++

%:
	dh $@

override_dh_auto_clean:
	rm -rf tmp
	find . -type f -name '*.ih.gch' -delete
	dh_auto_clean

override_dh_auto_build:
	# compile the package.
	./prepare   /
	./buildlib  /
	./build     all
	dh_auto_build

override_dh_auto_install:
	# Add here commands to install the package into debian/icmake
	./install   all debian/icmake
	dh_auto_install
	# Do not ship the bobcat.tgz in the icmake binary package.
	# The inclusion of the tarball in src:icmake is temporary until
	# the bobcat-source package is in the archive.
	rm -fv debian/icmake/usr/share/icmake/bobcat.tgz