File: rules

package info (click to toggle)
scantool 1.21+dfsg-7
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,956 kB
  • sloc: ansic: 12,279; sh: 828; makefile: 345; asm: 86; perl: 29
file content (28 lines) | stat: -rwxr-xr-x 668 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
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

%:
	dh $@

override_dh_auto_configure:
	chmod a+x debian/dzcomm-autoreconf.sh
	dh_autoreconf debian/dzcomm-autoreconf.sh
	dh_auto_configure --sourcedirectory=dzcomm

override_dh_auto_build:
	cd dzcomm && \
		$(MAKE) depend && \
		$(MAKE) lib
	$(MAKE) CFLAGS="$(CPPFLAGS) $(CFLAGS) -Idzcomm/include -DDZCOMM_DJGPP=1" LDFLAGS="$(LDFLAGS) -Ldzcomm/lib/unix"
	$(MAKE) -C debian/codes

override_dh_clean:
	$(MAKE) -C debian/codes clean
	cd dzcomm && if [ -f makefile ]; then make clean; fi
	dh_autoreconf_clean
	dh_clean