File: rules

package info (click to toggle)
libinih 61-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 496 kB
  • sloc: ansic: 745; cpp: 228; makefile: 68; sh: 62
file content (23 lines) | stat: -rwxr-xr-x 529 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto

export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND =


%:
	dh $@

execute_after_dh_auto_clean:
	-+$(MAKE) -C tests clean

override_dh_auto_configure:
	dh_auto_configure -- \
		-Ddefault_library=both \
		-Dwith_INIReader=true \
		-Ddistro_install=true

override_dh_auto_test:
	+$(MAKE) -C tests test CFLAGS+=-I.. LDFLAGS+="-Wl,-rpath,../obj-$(DEB_HOST_GNU_TYPE) -L../obj-$(DEB_HOST_GNU_TYPE)"