File: rules

package info (click to toggle)
scantool 1.21%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,604 kB
  • sloc: ansic: 12,174; sh: 829; makefile: 320; asm: 86; perl: 29
file content (25 lines) | stat: -rwxr-xr-x 539 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
#!/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

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

override_dh_clean:
	cd dzcomm && make clean
	dh_autoreconf_clean
	dh_clean