File: rules

package info (click to toggle)
zip 3.0-11
  • links: PTS
  • area: main
  • in suites: buster, sid
  • size: 5,820 kB
  • ctags: 6,308
  • sloc: ansic: 50,445; asm: 3,907; makefile: 858; sh: 42
file content (27 lines) | stat: -rwxr-xr-x 610 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
#!/usr/bin/make -f

CC = gcc
CFLAGS := `dpkg-buildflags --get CFLAGS` -Wall -I. -DUNIX
LDFLAGS := `dpkg-buildflags --get LDFLAGS`
CPPFLAGS := `dpkg-buildflags --get CPPFLAGS`

%:
	dh $@

override_dh_auto_clean:
	$(MAKE) -f unix/Makefile clean

override_dh_auto_configure:
	LDFLAGS="$(LDFLAGS)" sh unix/configure "$(CC)" "$(CFLAGS) $(CPPFLAGS)"

override_dh_auto_build:
	$(MAKE) -f unix/Makefile generic

override_dh_auto_install:
	$(MAKE) -f unix/Makefile install prefix=`pwd`/debian/tmp/usr

override_dh_installchangelogs:
	dh_installchangelogs -XCHANGES

override_dh_compress:
	dh_compress -XTODO -XWHATSNEW