File: rules

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (28 lines) | stat: -rwxr-xr-x 729 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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

CFLAGS += -I.

# Upstream GNUmakefile completely ignores the existence of CPPFLAGS. Directly
# pass them into CFLAGS instead.
CFLAGS += $(CPPFLAGS)

%:
	dh $@

override_dh_auto_build:
	$(MAKE) -f $(CURDIR)/GNUmakefile CCC=$(CC) CFLAGS="$(CFLAGS) -fPIC" CFLAGS_OPT="$(CFLAGS)" DIET='' libowfat.so
	$(MAKE) -f $(CURDIR)/GNUmakefile clean
	$(MAKE) -f $(CURDIR)/GNUmakefile CCC=$(CC) CFLAGS_OPT="$(CFLAGS)" DIET=''
	rm entities.h

override_dh_installchangelogs:
	dh_installchangelogs CHANGES

override_dh_auto_install:

# Buggy upstream tests on anything different than amd64
override_dh_auto_test: