File: rules

package info (click to toggle)
cbp2make 147%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,068 kB
  • sloc: cpp: 13,020; makefile: 12; sh: 3
file content (26 lines) | stat: -rwxr-xr-x 540 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Set default flags with dpkg-buildflags
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
CFLAGS += $(CPPFLAGS)

%:
	dh $@ --buildsystem=makefile

override_dh_auto_build-arch:
	ln -sf cbp2make.cbp.mak.unix Makefile
	dh_auto_build -- release 'LD=$$(CXX)'

#build-indep:
#	ln -sf cbp2make.cbp.mak.unix Makefile
#	$(MAKE) doxygen

override_dh_clean:
	rm -f Makefile
	dh_clean