File: rules

package info (click to toggle)
zoo 2.10-28
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,444 kB
  • ctags: 2,007
  • sloc: ansic: 18,494; asm: 793; makefile: 698
file content (27 lines) | stat: -rwxr-xr-x 583 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
24
25
26
27
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

TARGET = linux
BITS   = $(shell dpkg-architecture -qDEB_BUILD_ARCH_BITS)

ifeq ($(BITS),64)
    TARGET = linux64
endif

override_dh_auto_build:
	cp --archive makefile makefile.orig
	makedepend
	$(MAKE) CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" $(TARGET)
	# Restore original; changed by makedepend
	mv makefile.orig makefile

override_dh_auto_install:
	# Skip. See debian/install

%:
	dh $@

# End of file