File: rules

package info (click to toggle)
udns 0.6-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 420 kB
  • sloc: ansic: 4,248; makefile: 166; sh: 131
file content (21 lines) | stat: -rwxr-xr-x 422 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

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@


override_dh_auto_configure:
	CFLAGS="$${CFLAGS} $${CPPFLAGS}" LDFLAGS="$${LDFLAGS}" \
	    ./configure --enable-ipv6

override_dh_auto_build:
	$(MAKE) staticlib sharedlib rblcheck_s dnsget_s
	ln -sf libudns.so.0 libudns.so
	ln -f dnsget_s dnsget
	ln -f rblcheck_s rblcheck

clean:
	[ ! -f Makefile ] || $(MAKE) distclean
	dh_clean libudns.so